diff --git a/op-modules/op-device/src/main/java/com/op/device/domain/EquPlan.java b/op-modules/op-device/src/main/java/com/op/device/domain/EquPlan.java index a630e7d8..ea70141f 100644 --- a/op-modules/op-device/src/main/java/com/op/device/domain/EquPlan.java +++ b/op-modules/op-device/src/main/java/com/op/device/domain/EquPlan.java @@ -131,7 +131,7 @@ public class EquPlan extends BaseEntity { private List planTimeArray; - private List personListVO; + private List personListVO; private String workCenterName; @@ -285,11 +285,11 @@ public class EquPlan extends BaseEntity { this.workCenterName = workCenterName; } - public List getPersonListVO() { + public List getPersonListVO() { return personListVO; } - public void setPersonListVO(List personListVO) { + public void setPersonListVO(List personListVO) { this.personListVO = personListVO; } diff --git a/op-modules/op-device/src/main/java/com/op/device/domain/dto/PDADTO.java b/op-modules/op-device/src/main/java/com/op/device/domain/dto/PDADTO.java index 9f07ce35..ee1d6463 100644 --- a/op-modules/op-device/src/main/java/com/op/device/domain/dto/PDADTO.java +++ b/op-modules/op-device/src/main/java/com/op/device/domain/dto/PDADTO.java @@ -2,6 +2,7 @@ package com.op.device.domain.dto; // 手持传参dto public class PDADTO { + // 用户名 private String userId; private String planType; diff --git a/op-modules/op-device/src/main/java/com/op/device/service/impl/EquPlanServiceImpl.java b/op-modules/op-device/src/main/java/com/op/device/service/impl/EquPlanServiceImpl.java index e53f2be0..80d08108 100644 --- a/op-modules/op-device/src/main/java/com/op/device/service/impl/EquPlanServiceImpl.java +++ b/op-modules/op-device/src/main/java/com/op/device/service/impl/EquPlanServiceImpl.java @@ -306,9 +306,9 @@ public class EquPlanServiceImpl implements IEquPlanService { List personList = equPlanPersonMapper.selectEquPlanPersonByPlanCode(equPlan.getPlanCode()); // 处理人员信息列表信息用于前端穿梭框信息回填 - List persons = new ArrayList<>(); + List persons = new ArrayList<>(); for (EquPlanPerson person : personList) { - persons.add(person.getUserId()); + persons.add(person.getUserName()); } // 通过计划编码获取设备信息列表 @@ -378,7 +378,7 @@ public class EquPlanServiceImpl implements IEquPlanService { EquPlanPerson equPlanPerson = new EquPlanPerson(); equPlanPerson.setId(IdUtils.fastSimpleUUID());// id - equPlanPerson.setUserId(user.getUserId());// 用户id + equPlanPerson.setUserName(user.getUserName());// 用户名称 equPlanPerson.setPlanCode(equPlan.getPlanCode());// 计划编码 equPlanPerson.setFactoryCode(factory);// 工厂code equPlanPerson.setCreateBy(SecurityContextHolder.getUserName()); diff --git a/op-modules/op-device/src/main/java/com/op/device/service/impl/EquUpkeepOrderServiceImpl.java b/op-modules/op-device/src/main/java/com/op/device/service/impl/EquUpkeepOrderServiceImpl.java index 631077cf..5018203a 100644 --- a/op-modules/op-device/src/main/java/com/op/device/service/impl/EquUpkeepOrderServiceImpl.java +++ b/op-modules/op-device/src/main/java/com/op/device/service/impl/EquUpkeepOrderServiceImpl.java @@ -185,7 +185,7 @@ public class EquUpkeepOrderServiceImpl implements IEquUpkeepOrderService { equOrderPerson.setId(IdUtils.fastSimpleUUID());// id equOrderPerson.setOrderCode(equOrder.getOrderCode());// 工单编码 equOrderPerson.setFactoryCode(factory);// 工厂 - equOrderPerson.setUserId(user.getUserId());// 用户id + equOrderPerson.setUserName(user.getUserName());// 用户名称 equOrderPerson.setCreateBy(SecurityContextHolder.getUserName()); equOrderPerson.setCreateTime(DateUtils.getNowDate()); equOrderPerson.setUpdateBy(SecurityContextHolder.getUserName()); diff --git a/op-modules/op-device/src/main/resources/mapper/device/EquOrderMapper.xml b/op-modules/op-device/src/main/resources/mapper/device/EquOrderMapper.xml index 67861b0f..549eed37 100644 --- a/op-modules/op-device/src/main/resources/mapper/device/EquOrderMapper.xml +++ b/op-modules/op-device/src/main/resources/mapper/device/EquOrderMapper.xml @@ -140,14 +140,14 @@ diff --git a/op-modules/op-device/src/main/resources/mapper/device/PersonMapper.xml b/op-modules/op-device/src/main/resources/mapper/device/PersonMapper.xml index 48104b06..1fd25ef1 100644 --- a/op-modules/op-device/src/main/resources/mapper/device/PersonMapper.xml +++ b/op-modules/op-device/src/main/resources/mapper/device/PersonMapper.xml @@ -43,6 +43,7 @@ and status = #{status} and login_ip = #{loginIp} and login_date = #{loginDate} + and del_flag = '0'