Browse Source

#检修库修改

zhongwei
yang_shj 10 months ago
parent
commit
64d21ea59a
  1. 1
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/tabulate/service/impl/AlarmTabulateServiceImpl.java
  2. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/service/impl/OperAccessLibraryServiceImpl.java
  3. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/vo/OperAccessLibraryVO.java
  4. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/wrapper/OperAccessLibraryWrapper.java

1
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/tabulate/service/impl/AlarmTabulateServiceImpl.java

@ -21,6 +21,7 @@ import org.springblade.core.tool.utils.*;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/service/impl/OperAccessLibraryServiceImpl.java

@ -99,6 +99,9 @@ public class OperAccessLibraryServiceImpl extends BaseServiceImpl<OperAccessLibr
if (StringUtils.isNotBlank(req.getGradeCode())) {
in(OperAccessLibraryEntity::getGradeCode, req.getGradeCode().split(","));
}
if(StringUtils.isNotBlank(req.getEmName())){
like(OperAccessLibraryEntity::getEmName, req.getEmName());
}
}};
IPage pages = super.page(Condition.getPage(query), queryWrapper);
@ -107,8 +110,7 @@ public class OperAccessLibraryServiceImpl extends BaseServiceImpl<OperAccessLibr
}
/**
*
* .
* 检修库模板下载
*/
@Override
public void downLoad(){

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/vo/OperAccessLibraryVO.java

@ -26,9 +26,6 @@ public class OperAccessLibraryVO extends OperAccessLibraryEntity {
@ApiModelProperty("修改人名称")
private String updateUserName;
@ApiModelProperty("设备名称")
private String emName;
@ApiModelProperty("危险源列表")
private List<DangerSourceEntity> dangerSources;
}

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/wrapper/OperAccessLibraryWrapper.java

@ -7,6 +7,7 @@ import com.hnac.hzims.operational.access.vo.OperAccessLibraryVO;
import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.core.tool.utils.StringUtil;
import org.springblade.system.user.cache.UserCache;
import org.springblade.system.user.entity.User;
@ -34,7 +35,9 @@ public class OperAccessLibraryWrapper extends BaseEntityWrapper<OperAccessLibrar
User updateUser = UserCache.getUser(entity.getUpdateUser());
vo.setCreateUserName(Optional.ofNullable(createUser).map(User::getName).orElse(null));
vo.setUpdateUserName(Optional.ofNullable(updateUser).map(User::getName).orElse(null));
if(StringUtil.isNotBlank(entity.getEmCode())){
vo.setEmName(Optional.ofNullable(emInfoClient.getByCode(entity.getEmCode())).map(EmInfoEntity::getName).orElse(null));
}
return vo;
}

Loading…
Cancel
Save