From 80b41620b1cf940a9fd9ae67305a76bd64684b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=AF=E8=A3=95?= Date: Fri, 2 Nov 2018 19:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=83=E6=95=B0=E6=8D=AE=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E5=8F=8A=E6=95=B0=E6=8D=AE=E5=BA=93=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/estsh/i3plus/pojo/wms/bean/WmsButton.java | 68 ++++++++++++++++++++++ .../pojo/wms/repository/WmsButtonRepository.java | 14 +++++ .../estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java | 14 +++++ 3 files changed, 96 insertions(+) create mode 100644 modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsButton.java create mode 100644 modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsButtonRepository.java diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsButton.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsButton.java new file mode 100644 index 0000000..22a3e99 --- /dev/null +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsButton.java @@ -0,0 +1,68 @@ +package cn.estsh.i3plus.pojo.wms.bean; + +import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; + +/** + * @Description :元数据按钮信息表 + * @Reference : + * @Author : hansen.ke + * @CreateDate : 2018-11-02 9:33 + * @Modify: + **/ +@Data +@Entity +@Table(name="WMS_BUTTON") +@DynamicInsert +@DynamicUpdate +@Api(value="元数据按钮信息表",description = "元数据按钮信息表") +public class WmsButton extends BaseBean { + + @Column(name = "CODE") + @ApiParam(value = "元数据编码") + private String code; + + @Column(name = "NAME") + @ApiParam(value = "按钮名称") + private String name; + + @Column(name = "ICON") + @ApiParam(value = "图标") + private String icon; + + @Column(name = "UI") + @ApiParam(value = "按钮UI路径") + private String ui; + + @Column(name = "BS") + @ApiParam(value = "按钮BS路径") + private String bs; + + @Column(name = "URL") + @ApiParam(value = "服务端URL") + private String url; + + @Column(name = "ORDER_NUM") + @ApiParam(value = "排序号",example = "1") + private Integer orderNum; + + @Column(name = "GROUP_NUM") + @ApiParam(value = "分组号",example = "1") + private Integer groupNum; + + @Column(name = "IS_BASE") + @ApiParam(value = "是否基础功能",example = "2") + private Integer isBase; + + @Column(name = "IS_HIDE") + @ApiParam(value = "是否删除",example = "2") + private Integer isHide; +} diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsButtonRepository.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsButtonRepository.java new file mode 100644 index 0000000..a8afed4 --- /dev/null +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsButtonRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.wms.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.wms.bean.WmsButton; + +/** + * @Description :对象持久层仓用方法控制(元数据按钮按钮信息) + * @Reference : + * @Author : hansen.ke + * @CreateDate : 2018-11-02 10:22 + * @Modify: + **/ +public interface WmsButtonRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java index 863f641..2892e26 100644 --- a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/sqlpack/WmsHqlPack.java @@ -2,6 +2,7 @@ package cn.estsh.i3plus.pojo.wms.sqlpack; import cn.estsh.i3plus.pojo.base.tool.HqlPack; import cn.estsh.i3plus.pojo.wms.bean.WareHouse; +import cn.estsh.i3plus.pojo.wms.bean.WmsButton; /** * @Description : 仓库管理对象封装 @@ -27,4 +28,17 @@ public class WmsHqlPack { return result.toString(); } + + public static String packHqlWmsButton(WmsButton wmsButton) { + StringBuffer result = new StringBuffer(); + + // 功能名称(name) + HqlPack.getStringLikerPack(wmsButton.getName(),"name", result); + // 前端实现(ui) + HqlPack.getStringLikerPack(wmsButton.getUi(),"ui", result); + // URI权限规则(bs) + HqlPack.getStringLikerPack(wmsButton.getBs(),"bs", result); + + return result.toString(); + } }