diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/vo/AllocCanteenTreeVO.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/vo/AllocCanteenTreeVO.java index a9f9156a..a9e397ae 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/vo/AllocCanteenTreeVO.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/allocation/canteen/vo/AllocCanteenTreeVO.java @@ -6,7 +6,7 @@ import com.bonus.canteen.core.common.utils.BaseTreeNode; public class AllocCanteenTreeVO extends BaseTreeNode { private String treeName; private Integer treeType; - private Integer halfSelect; +// private Integer halfSelect; private Integer bizType; public boolean ifCanteen() { @@ -25,9 +25,9 @@ public class AllocCanteenTreeVO extends BaseTreeNode { return this.treeType; } - public Integer getHalfSelect() { - return this.halfSelect; - } +// public Integer getHalfSelect() { +// return this.halfSelect; +// } public Integer getBizType() { return this.bizType; @@ -41,9 +41,9 @@ public class AllocCanteenTreeVO extends BaseTreeNode { this.treeType = treeType; } - public void setHalfSelect(final Integer halfSelect) { - this.halfSelect = halfSelect; - } +// public void setHalfSelect(final Integer halfSelect) { +// this.halfSelect = halfSelect; +// } public void setBizType(final Integer bizType) { this.bizType = bizType; diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/dto/MgrRoleWarehouse.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/dto/MgrRoleWarehouse.java index 1df6778b..90ca2c37 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/dto/MgrRoleWarehouse.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/dto/MgrRoleWarehouse.java @@ -6,7 +6,7 @@ import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; -@TableName("mgr_role_warehouse") +@TableName("sys_role_warehouse") @ApiModel("角色仓库表") public class MgrRoleWarehouse implements Serializable { private static final long serialVersionUID = 1L; diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/entity/MgrRoleCanteen.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/entity/MgrRoleCanteen.java index 0871510c..e51fb07b 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/entity/MgrRoleCanteen.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/entity/MgrRoleCanteen.java @@ -6,7 +6,7 @@ import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; -@TableName("mgr_role_canteen") +@TableName("sys_role_canteen") @ApiModel("角色区域、食堂、档口表") public class MgrRoleCanteen implements Serializable { private static final long serialVersionUID = 1L; @@ -16,8 +16,8 @@ public class MgrRoleCanteen implements Serializable { private Long dataId; @ApiModelProperty("类型:1:区域,2:食堂,3:档口") private Integer type; - @ApiModelProperty("节点状态:1全选;2半选") - private Integer halfSelect; +// @ApiModelProperty("节点状态:1全选;2半选") +// private Integer halfSelect; public Long getRoleId() { return this.roleId; @@ -31,9 +31,9 @@ public class MgrRoleCanteen implements Serializable { return this.type; } - public Integer getHalfSelect() { - return this.halfSelect; - } +// public Integer getHalfSelect() { +// return this.halfSelect; +// } public MgrRoleCanteen setRoleId(final Long roleId) { this.roleId = roleId; @@ -50,9 +50,9 @@ public class MgrRoleCanteen implements Serializable { return this; } - public MgrRoleCanteen setHalfSelect(final Integer halfSelect) { - this.halfSelect = halfSelect; - return this; - } +// public MgrRoleCanteen setHalfSelect(final Integer halfSelect) { +// this.halfSelect = halfSelect; +// return this; +// } } diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/mapper/MgrRoleWarehouseMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/mapper/MgrRoleWarehouseMapper.xml index 00447fc2..ef2314d8 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/mapper/MgrRoleWarehouseMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/role/mapper/MgrRoleWarehouseMapper.xml @@ -2,7 +2,7 @@ - insert into mgr_role_warehouse + insert into sys_role_warehouse values (#{roleId}, #{warehouseId}) @@ -16,7 +16,7 @@ (SELECT r.warehouse_id - FROM mgr_role_warehouse r + FROM sys_role_warehouse r LEFT JOIN sys_role o ON o.role_id = r.role_id LEFT JOIN sys_user_role u ON r.role_id = u.role_id WHERE u.user_id = #{authPO.userId} diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/auth/MgrRoleCanteenMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/auth/MgrRoleCanteenMapper.xml index a81524ad..e4facc0d 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/auth/MgrRoleCanteenMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/auth/MgrRoleCanteenMapper.xml @@ -2,27 +2,28 @@ - insert into mgr_role_canteen + insert into sys_role_canteen values - (#{roleId}, #{canteen.dataId}, #{canteen.type}, #{canteen.halfSelect}) + (#{roleId}, #{canteen.dataId}, #{canteen.type}) SELECT mrc.role_id - FROM mgr_role_canteen mrc + FROM sys_role_canteen mrc WHERE mrc.data_id = #{dataId} - AND mrc.half_select = #{excludeMiddle} +# AND mrc.half_select = #{excludeMiddle} AND mrc.role_id != #{roleId} diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/order/OrdAppInfoMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/order/OrdAppInfoMapper.xml index 165bcaa1..6834e6c4 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/order/OrdAppInfoMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/order/OrdAppInfoMapper.xml @@ -259,12 +259,12 @@ AND EXISTS( SELECT NULL - FROM mgr_role_canteen it1 + FROM sys_role_canteen it1 LEFT JOIN sys_role it2 ON it2.role_id = it1.role_id LEFT JOIN sys_user_role it3 ON it1.role_id = it3.role_id WHERE it2.del_flag = 0 AND it2.role_key = #{authPO.roleCode} - AND it1.half_select = 1 +# AND it1.half_select = 1 AND it3.user_id = #{authPO.userId} AND (oai.stall_id = it1.data_id or oai.canteen_id = it1.data_id) ) diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/order/ReportSumMachineMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/order/ReportSumMachineMapper.xml index 4a15a942..014db263 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/order/ReportSumMachineMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/order/ReportSumMachineMapper.xml @@ -20,23 +20,23 @@ AND ( EXISTS( SELECT NULL - FROM mgr_role_canteen it1 + FROM sys_role_canteen it1 LEFT JOIN sys_role it2 ON it2.role_id = it1.role_id LEFT JOIN sys_user_role it3 ON it1.role_id = it3.role_id WHERE it2.del_flag = 0 AND it2.role_key = #{authPO.roleCode} - AND it1.half_select = 1 +# AND it1.half_select = 1 AND it3.user_id = #{authPO.userId} AND (a.canteen_id = it1.data_id) ) OR EXISTS ( SELECT NULL - FROM mgr_role_canteen it1 + FROM sys_role_canteen it1 LEFT JOIN sys_role it2 ON it2.role_id = it1.role_id LEFT JOIN sys_user_role it3 ON it1.role_id = it3.role_id WHERE it2.del_flag = 0 AND it2.role_key = #{authPO.roleCode} - AND it1.half_select = 1 +# AND it1.half_select = 1 AND it3.user_id = #{authPO.userId} AND (a.stall_id = it1.data_id) ) @@ -128,23 +128,23 @@ AND ( EXISTS( SELECT NULL - FROM mgr_role_canteen it1 + FROM sys_role_canteen it1 LEFT JOIN sys_role it2 ON it2.role_id = it1.role_id LEFT JOIN sys_user_role it3 ON it1.role_id = it3.role_id WHERE it2.del_flag = 0 AND it2.role_key = #{authPO.roleCode} - AND it1.half_select = 1 +# AND it1.half_select = 1 AND it3.user_id = #{authPO.userId} AND (o.canteen_id = it1.data_id) ) OR EXISTS ( SELECT NULL - FROM mgr_role_canteen it1 + FROM sys_role_canteen it1 LEFT JOIN sys_role it2 ON it2.role_id = it1.role_id LEFT JOIN sys_user_role it3 ON it1.role_id = it3.role_id WHERE it2.del_flag = 0 AND it2.role_key = #{authPO.roleCode} - AND it1.half_select = 1 +# AND it1.half_select = 1 AND it3.user_id = #{authPO.userId} AND (o.stall_id = it1.data_id) ) diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/ReportAnalysisDishesSaleMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/ReportAnalysisDishesSaleMapper.xml index d6d03467..a420658c 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/ReportAnalysisDishesSaleMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/ReportAnalysisDishesSaleMapper.xml @@ -7,23 +7,23 @@ AND ( EXISTS( SELECT NULL - FROM mgr_role_canteen it1 + FROM sys_role_canteen it1 LEFT JOIN sys_role it2 ON it2.role_id = it1.role_id LEFT JOIN sys_user_role it3 ON it1.role_id = it3.role_id WHERE it2.del_flag = 0 AND it2.role_key = #{authPO.roleCode} - AND it1.half_select = 1 +# AND it1.half_select = 1 AND it3.user_id = #{authPO.userId} AND (a.stall_id = it1.data_id) ) OR EXISTS ( SELECT NULL - FROM mgr_role_canteen it1 + FROM sys_role_canteen it1 LEFT JOIN sys_role it2 ON it2.role_id = it1.role_id LEFT JOIN sys_user_role it3 ON it1.role_id = it3.role_id WHERE it2.del_flag = 0 AND it2.role_key = #{authPO.roleCode} - AND it1.half_select = 1 +# AND it1.half_select = 1 AND it3.user_id = #{authPO.userId} AND (a.canteen_id = it1.data_id) )