Browse Source

#设备feign接口增加注解

zhongwei
yang_shj 5 months ago
parent
commit
1e8c585539
  1. 2
      hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/EmInfoClient.java
  2. 3
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml
  3. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/UserDeptConfigServiceImpl.java

2
hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/EmInfoClient.java

@ -151,7 +151,7 @@ public class EmInfoClient implements IEmInfoClient {
@Override
@GetMapping(EM_INFO_LIST)
public R<List<EmInfoEntity>> emInfoList(EmInfoEntity req) {
public R<List<EmInfoEntity>> emInfoList(@RequestParam("req") EmInfoEntity req) {
LambdaQueryWrapper<EmInfoEntity> queryWrapper = Condition.getQueryWrapper(EmInfoEntity.class, req);
return R.data(service.list(queryWrapper));
}

3
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml

@ -234,10 +234,11 @@
<select id="getListPageOfTaskRecord" parameterType="com.hnac.hzinfo.inspect.task.vo.TaskListQuery" resultType="com.hnac.hzinfo.inspect.task.entity.TaskEntity">
SELECT t.* from HZ_ST_EX_TASK t
where t.IS_DELETED=0
<include refid="getTaskListSql"></include>
order by t.UPDATE_TIME desc
</select>
<select id="getFinishTaskList" parameterType="com.hnac.hzinfo.inspect.task.vo.TaskListQuery" resultType="com.hnac.hzinfo.inspect.task.vo.TaskVo">
SELECT t.* from HZ_ST_EX_TASK t
LEFT JOIN HZ_ST_EX_TASK_USER u on t.ID=u.TASK_ID

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/UserDeptConfigServiceImpl.java

@ -91,6 +91,7 @@ public class UserDeptConfigServiceImpl extends ServiceImpl<UserDeptConfigMapper,
if(depts.isSuccess() && ObjectUtil.isNotEmpty(depts.getData())){
Optional<Dept> optional = depts.getData().stream().min(Comparator.comparing(Dept::getDeptCategory));
if(optional.isPresent()){
config.setDeptCategory(optional.get().getDeptCategory());
config.setDeptId(optional.get().getId());
config.setDeptName(optional.get().getDeptName());
if(optional.get().getDeptCategory() == 4){

Loading…
Cancel
Save