Browse Source

1.考核-新增考核部门查询

chenglong
zhenghaoyu 1 year ago
parent
commit
d415d7060a
  1. 1
      blade-service-api/logpm-supervise-api/src/main/java/com/logpm/supervise/dto/ClassifyDTO.java
  2. 2
      blade-service-api/logpm-supervise-api/src/main/java/com/logpm/supervise/dto/IndicatorsDTO.java
  3. 2
      blade-service-api/logpm-supervise-api/src/main/java/com/logpm/supervise/vo/IndicatorsVO.java
  4. 3
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/ClassifyMapper.xml
  5. 8
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsMapper.xml
  6. 5
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/impl/ClassifyServiceImpl.java
  7. 4
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/impl/IndicatorsServiceImpl.java

1
blade-service-api/logpm-supervise-api/src/main/java/com/logpm/supervise/dto/ClassifyDTO.java

@ -11,6 +11,7 @@ import java.util.List;
public class ClassifyDTO extends ClassifyEntity {
private String ids;
private String createDeptName;
private Integer isPid;

2
blade-service-api/logpm-supervise-api/src/main/java/com/logpm/supervise/dto/IndicatorsDTO.java

@ -27,4 +27,6 @@ public class IndicatorsDTO extends IndicatorsEntity {
private Date start;
private Date end;
private String createDeptName;
}

2
blade-service-api/logpm-supervise-api/src/main/java/com/logpm/supervise/vo/IndicatorsVO.java

@ -27,6 +27,8 @@ public class IndicatorsVO extends IndicatorsEntity {
private String parentClassifyName;
private String examineDeptName;
private List<IndicatorsAnnexEntity> pictures = new ArrayList<>();
private List<IndicatorsAnnexEntity> files = new ArrayList<>();

3
blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/ClassifyMapper.xml

@ -37,6 +37,9 @@
<if test="param.name != null and param.name != ''">
and `name` like #{param.name}
</if>
<if test="param.createDept != null and param.createDept != ''">
and create_dept like #{param.createDept}
</if>
</where>
order by create_time desc
</select>

8
blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsMapper.xml

@ -7,6 +7,7 @@
select si.id id,
sc.id classifyId,
sc.name classifyName,
sc.examine_dept_name examineDeptName,
psc.id parentClassifyId,
psc.name parentClassifyName,
psc.id parentClassifyId,
@ -16,7 +17,9 @@
si.remark remark,
si.indicators_status indicatorsStatus,
si.is_objection isObjection,
si.objection_remark objectionRemark
si.objection_remark objectionRemark,
si.create_time createTime,
si.create_dept createDept
from sup_indicators si
left join sup_classify sc on sc.id = si.classify_id
left join sup_classify psc on psc.id = sc.p_id
@ -34,6 +37,9 @@
<if test="param.end != null">
and si.create_time &lt;= #{param.end}
</if>
<if test="param.createDept != null">
and si.create_dept = #{param.createDept}
</if>
</select>

5
blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/impl/ClassifyServiceImpl.java

@ -101,13 +101,18 @@ public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyMapper, Classif
String pId = (String) classify.get("pid");
String name = (String) classify.get("name");
String isPid = (String) classify.get("isPid");
String createDeptName = (String) classify.get("createDeptName");
ClassifyDTO classifyDTO = new ClassifyDTO();
if (StringUtil.isNotBlank(pId)) {
classifyDTO.setPId(Long.parseLong(pId));
}
Long createDept = deptClient.findIdByName(createDeptName);
classifyDTO.setName(name);
classifyDTO.setIsPid(Integer.parseInt(isPid));
classifyDTO.setCreateDept(createDept);
IPage<ClassifyVO> pages = baseMapper.pageList(page, classifyDTO);
List<ClassifyVO> records = pages.getRecords();

4
blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/impl/IndicatorsServiceImpl.java

@ -39,11 +39,15 @@ public class IndicatorsServiceImpl extends BaseServiceImpl<IndicatorsMapper, Ind
String startDateStr = indicatorsDTO.getStartDateStr();
String endDateStr = indicatorsDTO.getEndDateStr();
String createDeptName = indicatorsDTO.getCreateDeptName();
Long createDept = deptClient.findIdByName(createDeptName);
Date start = CommonUtil.getStartByDateStr(startDateStr);
Date end = CommonUtil.getEndByDateStr(endDateStr);
indicatorsDTO.setStart(start);
indicatorsDTO.setEnd(end);
indicatorsDTO.setCreateDept(createDept);
IPage<IndicatorsVO> pages = baseMapper.pageList(page,indicatorsDTO);

Loading…
Cancel
Save