Browse Source

锦水第二次优化

feature/syp_points
songyunpeng 5 years ago
parent
commit
3d86391984
  1. 7
      esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/ArchivesDeptDTO.java
  2. 7
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/archivesdept/entity/ArchivesDeptEntity.java
  3. 2
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/archivesdept/service/impl/ArchivesDeptServiceImpl.java
  4. 6
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/rocketmq/consumer/OrganizationModifyConsumer.java
  5. 22
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/archives/ArchivesDao.xml
  6. 1
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/archivesdept/ArchivesDeptDao.xml
  7. 7
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActApplyInfoServiceImpl.java

7
esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/ArchivesDeptDTO.java

@ -17,9 +17,10 @@
package com.elink.esua.epdc.dto;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
@ -47,6 +48,10 @@ public class ArchivesDeptDTO implements Serializable {
* 排序
*/
private Integer deptOrder;
/**
* 是否启用
*/
private String enableFlag;
/**
* 归属部门ID

7
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/archivesdept/entity/ArchivesDeptEntity.java

@ -18,13 +18,10 @@
package com.elink.esua.epdc.modules.archivesdept.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 档案部门排序表
*
@ -53,4 +50,8 @@ public class ArchivesDeptEntity extends BaseEpdcEntity {
*/
private Integer deptOrder;
/**
* 是否启用
*/
private String enableFlag;
}

2
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/archivesdept/service/impl/ArchivesDeptServiceImpl.java

@ -110,6 +110,8 @@ public class ArchivesDeptServiceImpl extends BaseServiceImpl<ArchivesDeptDao, Ar
if(archivesDeptEntity==null){
// 没有新增一条
ArchivesDeptEntity archivesDept =new ArchivesDeptEntity();
//默认启用
archivesDept.setEnableFlag("1");
archivesDept.setDept(dept);
archivesDept.setDeptId(deptId);
return insert(archivesDept);

6
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/rocketmq/consumer/OrganizationModifyConsumer.java

@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject;
import com.elink.esua.epdc.commons.tools.constant.RocketMqConstant;
import com.elink.esua.epdc.modules.archives.service.ArchivesService;
import com.elink.esua.epdc.modules.archivesdept.service.ArchivesDeptService;
import com.elink.esua.epdc.modules.dept.service.DeptInfoService;
import com.elink.esua.epdc.modules.reportissue.service.ReportIssueService;
import com.elink.esua.epdc.modules.rocketmq.dto.OrganizationModifyDTO;
import lombok.extern.slf4j.Slf4j;
@ -33,9 +32,6 @@ public class OrganizationModifyConsumer implements RocketMQListener<MessageExt>
@Autowired
private ArchivesDeptService archivesDeptService;
@Autowired
private DeptInfoService deptInfoService;
@Autowired
private ReportIssueService reportIssueService;
@ -50,8 +46,6 @@ public class OrganizationModifyConsumer implements RocketMQListener<MessageExt>
archivesService.modifyOrganizationInfo(dto);
// 档案部门修改组织机构信息
archivesDeptService.modifyOrganizationInfo(dto);
// 部门信息表修改组织机构信息
deptInfoService.modifyOrganizationInfo(dto);
// 我要举报修改组织机构信息
reportIssueService.modifyOrganizationInfo(dto);
log.info("EPDC-CUSTOM-SERVER消费消息END:{topic:{}, msgId:{}, body:{}}", RocketMqConstant.MQ_TOPIC_ORGANIZATION, messageExt.getMsgId(), body);

22
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/archives/ArchivesDao.xml

@ -79,16 +79,18 @@
<select id="selectListArchiveDeptInfo" resultType="com.elink.esua.epdc.dto.result.ArchiveDeptResultDTO">
SELECT
DEPT,
DEPT_ID
FROM
epdc_archives_dept
WHERE
DEL_FLAG = '0'
ORDER BY
DEPT_ORDER ASC
LIMIT #{pageIndex},#{pageSize}
SELECT
ead.DEPT,
ead.DEPT_ID
FROM
epdc_archives_dept ead
left join epdc_archives ea on ead.DEPT_ID = ea.DEPT_ID and ea.DEL_FLAG='0'
WHERE
ead.DEL_FLAG = '0' and ea.ID is not null and ead.ENABLE_FLAG ='1'
group by ead.DEPT_ID
ORDER BY
ead.DEPT_ORDER ASC
LIMIT #{pageIndex},#{pageSize}
</select>
<select id="selectListArchiveInfo" resultType="com.elink.esua.epdc.dto.result.ArchiveResultDTO">

1
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/archivesdept/ArchivesDeptDao.xml

@ -7,6 +7,7 @@
<result property="id" column="ID"/>
<result property="dept" column="DEPT"/>
<result property="deptOrder" column="DEPT_ORDER"/>
<result property="enableFlag" column="ENABLE_FLAG"/>
<result property="deptId" column="DEPT_ID"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>

7
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActApplyInfoServiceImpl.java

@ -83,9 +83,14 @@ public class ActApplyInfoServiceImpl extends BaseServiceImpl<ActApplyInfoDao, Ac
private QueryWrapper<ActApplyInfoEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
String actTitle = (String) params.get("actTitle");
String actContacts = (String) params.get("actContacts");
String actTel = (String) params.get("actTel");
QueryWrapper<ActApplyInfoEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
wrapper.like(StringUtils.isNotBlank(actTitle),"ACT_TITLE",actTitle);
wrapper.like(StringUtils.isNotBlank(actContacts),"ACT_CONTACTS",actContacts);
wrapper.like(StringUtils.isNotBlank(actTel),"ACT_TEL",actTel);
return wrapper;
}

Loading…
Cancel
Save