kangwei :解决权限问题
正在显示
4 个修改的文件
包含
35 行增加
和
14 行删除
... | @@ -105,15 +105,7 @@ public class DangerInspectionRecordController { | ... | @@ -105,15 +105,7 @@ public class DangerInspectionRecordController { |
105 | return result; | 105 | return result; |
106 | } | 106 | } |
107 | 107 | ||
108 | /** | 108 | |
109 | * <pre> | ||
110 | * 添加 | ||
111 | * </pre> | ||
112 | * @param dangerInspectionRecord | ||
113 | * @return | ||
114 | * @author 开发者姓名, 开发时间 | ||
115 | * @Description: TODO(这里描述这个方法的需求变更情况) | ||
116 | */ | ||
117 | @AutoLog(value = "巡检记录-添加") | 109 | @AutoLog(value = "巡检记录-添加") |
118 | @ApiOperation(value="巡检记录-添加", notes="巡检记录-添加") | 110 | @ApiOperation(value="巡检记录-添加", notes="巡检记录-添加") |
119 | @PostMapping(value = "/add") | 111 | @PostMapping(value = "/add") | ... | ... |
... | @@ -82,9 +82,7 @@ public class APPDangerInspectionRecordController { | ... | @@ -82,9 +82,7 @@ public class APPDangerInspectionRecordController { |
82 | if(StringUtils.isNotBlank(dangerInspectionRecord.getStatus())){ | 82 | if(StringUtils.isNotBlank(dangerInspectionRecord.getStatus())){ |
83 | queryWrapper.eq("status", dangerInspectionRecord.getStatus() ) ; | 83 | queryWrapper.eq("status", dangerInspectionRecord.getStatus() ) ; |
84 | } | 84 | } |
85 | if(StringUtils.isNotBlank(dangerInspectionRecord.getStartTime())){ | 85 | |
86 | queryWrapper.ge("report_date", dangerInspectionRecord.getStartTime() ) ; | ||
87 | } | ||
88 | // queryWrapper.eq("report_user", BaseContextHandler.getUserId()); | 86 | // queryWrapper.eq("report_user", BaseContextHandler.getUserId()); |
89 | IPage<DangerInspectionRecord> pageList = dangerInspectionRecordService.page(page, queryWrapper); | 87 | IPage<DangerInspectionRecord> pageList = dangerInspectionRecordService.page(page, queryWrapper); |
90 | result.setSuccess(true); | 88 | result.setSuccess(true); |
... | @@ -130,4 +128,4 @@ public class APPDangerInspectionRecordController { | ... | @@ -130,4 +128,4 @@ public class APPDangerInspectionRecordController { |
130 | result.setSuccess(true); | 128 | result.setSuccess(true); |
131 | return result; | 129 | return result; |
132 | } | 130 | } |
133 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
131 | } | ... | ... |
... | @@ -10,6 +10,7 @@ import io.swagger.annotations.ApiModelProperty; | ... | @@ -10,6 +10,7 @@ import io.swagger.annotations.ApiModelProperty; |
10 | import lombok.Data; | 10 | import lombok.Data; |
11 | import lombok.EqualsAndHashCode; | 11 | import lombok.EqualsAndHashCode; |
12 | import lombok.experimental.Accessors; | 12 | import lombok.experimental.Accessors; |
13 | import org.apache.commons.lang3.StringUtils; | ||
13 | import org.jeecgframework.poi.excel.annotation.Excel; | 14 | import org.jeecgframework.poi.excel.annotation.Excel; |
14 | 15 | ||
15 | import java.util.List; | 16 | import java.util.List; |
... | @@ -56,6 +57,19 @@ public class DangerInspectionRecordVO { | ... | @@ -56,6 +57,19 @@ public class DangerInspectionRecordVO { |
56 | @ApiModelProperty(value = "条件:结束时间") | 57 | @ApiModelProperty(value = "条件:结束时间") |
57 | private String endTime; | 58 | private String endTime; |
58 | 59 | ||
60 | public String getStartTime() { | ||
61 | if(StringUtils.isNotEmpty(startTime)){ | ||
62 | startTime = startTime+" 00:00:00"; | ||
63 | } | ||
64 | return startTime; | ||
65 | } | ||
66 | |||
67 | public String getEndTime() { | ||
68 | if(StringUtils.isNotEmpty(endTime)){ | ||
69 | endTime = endTime+" 23:59:59"; | ||
70 | } | ||
71 | return endTime; | ||
72 | } | ||
59 | 73 | ||
60 | @TableField(exist=false) | 74 | @TableField(exist=false) |
61 | @ApiModelProperty(value = "巡检对象集合") | 75 | @ApiModelProperty(value = "巡检对象集合") | ... | ... |
... | @@ -87,6 +87,11 @@ public class MybatisInterceptor implements Interceptor { | ... | @@ -87,6 +87,11 @@ public class MybatisInterceptor implements Interceptor { |
87 | //用户试卷 | 87 | //用户试卷 |
88 | add("edu_user_paper"); | 88 | add("edu_user_paper"); |
89 | add("edu_paper"); | 89 | add("edu_paper"); |
90 | //采购药剂物料 | ||
91 | add("erp_purchase_plan_item"); | ||
92 | add("erp_purchase_material"); | ||
93 | add("erp_distribut_material"); | ||
94 | |||
90 | 95 | ||
91 | }}; | 96 | }}; |
92 | 97 | ||
... | @@ -111,6 +116,7 @@ public class MybatisInterceptor implements Interceptor { | ... | @@ -111,6 +116,7 @@ public class MybatisInterceptor implements Interceptor { |
111 | if ("1".equals(BaseContextHandler.get("userType"))) { | 116 | if ("1".equals(BaseContextHandler.get("userType"))) { |
112 | return invocation.proceed(); | 117 | return invocation.proceed(); |
113 | } | 118 | } |
119 | System.out.println("********************************sqlId*************************** : "+sqlId); | ||
114 | //这些方法不涉及权限 | 120 | //这些方法不涉及权限 |
115 | if ("com.skua.modules.system.mapper.SysDepartMapper.getDepartTreeByJt".equalsIgnoreCase(sqlId) | 121 | if ("com.skua.modules.system.mapper.SysDepartMapper.getDepartTreeByJt".equalsIgnoreCase(sqlId) |
116 | || "com.skua.modules.system.mapper.SysDepartMapper.getDepartTree".equalsIgnoreCase(sqlId) | 122 | || "com.skua.modules.system.mapper.SysDepartMapper.getDepartTree".equalsIgnoreCase(sqlId) |
... | @@ -126,7 +132,18 @@ public class MybatisInterceptor implements Interceptor { | ... | @@ -126,7 +132,18 @@ public class MybatisInterceptor implements Interceptor { |
126 | || "com.skua.modules.system.mapper.SysDepartMapper.queryUserDeparts".equalsIgnoreCase(sqlId) | 132 | || "com.skua.modules.system.mapper.SysDepartMapper.queryUserDeparts".equalsIgnoreCase(sqlId) |
127 | || "com.skua.modules.system.mapper.SysAnnouncementMapper.querySysCementListByUserId".equals(sqlId) | 133 | || "com.skua.modules.system.mapper.SysAnnouncementMapper.querySysCementListByUserId".equals(sqlId) |
128 | || "com.skua.modules.supplies.mapper.EquipmentSparepartSuppliesMapper.selectPageByOut".equals(sqlId) | 134 | || "com.skua.modules.supplies.mapper.EquipmentSparepartSuppliesMapper.selectPageByOut".equals(sqlId) |
129 | || "com.skua.modules.product.equipRemoteControl.mapper.RemoteControlMapper.queryEquipListDetail".equals(sqlId)) { | 135 | || "com.skua.modules.product.equipRemoteControl.mapper.RemoteControlMapper.queryEquipListDetail".equals(sqlId) |
136 | |||
137 | || "com.skua.modules.erp.mapper.PurchasePlanMapper.statisticsPage".equals(sqlId) //采购计划统计 | ||
138 | || "com.skua.modules.erp.mapper.PurchaseMaterialMapper.queryMaterialByGoodCode".equals(sqlId) //采购合同根据code查询 | ||
139 | || "com.skua.modules.erp.mapper.PurchasePlanItemMapper.queryListByPlanId".equals(sqlId) //采购计划 | ||
140 | || "com.skua.modules.erp.mapper.PurchaseMaterialMapper.queryListByContractId".equals(sqlId) //采购合同 | ||
141 | || "com.skua.modules.erp.mapper.DistributMaterialMapper.queryListByContractId".equals(sqlId) //采购-分销合同 | ||
142 | /* || "com.skua.modules.erp.mapper.PurchaseMaterialMapper.queryListByContractId".equals(sqlId) //采购合同 | ||
143 | || "com.skua.modules.erp.mapper.PurchaseMaterialMapper.queryListByContractId".equals(sqlId) //采购合同*/ | ||
144 | |||
145 | |||
146 | ) { | ||
130 | return invocation.proceed(); | 147 | return invocation.proceed(); |
131 | } | 148 | } |
132 | Object[] args = invocation.getArgs(); | 149 | Object[] args = invocation.getArgs(); | ... | ... |
-
请 注册 或 登录 后发表评论