Browse Source

【网格实体化运作】-【列表添加部门筛选条件】-(王童)-2020/12/8

feature/dangjian
Jackwang 5 years ago
parent
commit
b13973ae23
  1. 1
      esua-epdc/epdc-module/epdc-kpi/epdc-kpi-server/src/main/java/com/elink/esua/epdc/service/impl/SubPositionCheckInfoServiceImpl.java
  2. 3
      esua-epdc/epdc-module/epdc-kpi/epdc-kpi-server/src/main/resources/mapper/SubPositionCheckInfoDao.xml

1
esua-epdc/epdc-module/epdc-kpi/epdc-kpi-server/src/main/java/com/elink/esua/epdc/service/impl/SubPositionCheckInfoServiceImpl.java

@ -68,6 +68,7 @@ public class SubPositionCheckInfoServiceImpl extends BaseServiceImpl<SubPosition
String userId = SecurityUser.getUser().getId().toString();
IPage<SubPositionCheckInfoDTO> page = getPage(params);
List<SubPositionCheckInfoDTO> list = baseDao.getSubPositionList(params);
//设置删除按钮展示权限:自己只能删自己的,状态为已提交的
for(SubPositionCheckInfoDTO spc : list){
if (StringUtils.isNotBlank(spc.getCreatedBy()) && spc.getCreatedBy().equals(userId) && "1".equals(spc.getStatus())){
spc.setDelShow(true);

3
esua-epdc/epdc-module/epdc-kpi/epdc-kpi-server/src/main/resources/mapper/SubPositionCheckInfoDao.xml

@ -45,6 +45,9 @@
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
and date_format(SUBMIT_TIME,'%Y-%m-%d') BETWEEN #{startTime} AND #{endTime}
</if>
<if test="deptId != null and deptId != ''">
and find_in_set(#{deptId},ALL_DEPT_IDS)
</if>
order by CREATED_TIME desc
</select>

Loading…
Cancel
Save