用户userName替换userId

orign^2
wws 1 year ago
parent 1ee85f0700
commit 63c10e35bf

@ -131,7 +131,7 @@ public class EquPlan extends BaseEntity {
private List<Date> planTimeArray;
private List<Long> personListVO;
private List<String> personListVO;
private String workCenterName;
@ -285,11 +285,11 @@ public class EquPlan extends BaseEntity {
this.workCenterName = workCenterName;
}
public List<Long> getPersonListVO() {
public List<String> getPersonListVO() {
return personListVO;
}
public void setPersonListVO(List<Long> personListVO) {
public void setPersonListVO(List<String> personListVO) {
this.personListVO = personListVO;
}

@ -2,6 +2,7 @@ package com.op.device.domain.dto;
// 手持传参dto
public class PDADTO {
// 用户名
private String userId;
private String planType;

@ -306,9 +306,9 @@ public class EquPlanServiceImpl implements IEquPlanService {
List<EquPlanPerson> personList = equPlanPersonMapper.selectEquPlanPersonByPlanCode(equPlan.getPlanCode());
// 处理人员信息列表信息用于前端穿梭框信息回填
List<Long> persons = new ArrayList<>();
List<String> 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());

@ -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());

@ -140,14 +140,14 @@
<select id="selectTodayTask" parameterType="String" resultMap="EquOrderResult">
<include refid="selectEquOrderVo"/>
where plan_type = #{planType} and del_flag = '0' and order_status != '1' and order_code in (
select order_code from equ_order_person where del_flag = '0' and user_id = #{userId} GROUP BY order_code
select order_code from equ_order_person where del_flag = '0' and user_name = #{userId} GROUP BY order_code
)
</select>
<select id="selectTaskRecord" parameterType="String" resultMap="EquOrderResult">
<include refid="selectEquOrderVo"/>
where del_flag = '0' and order_status = '1' and plan_type = #{planType} and order_code in (
select order_code from equ_order_person where del_flag = '0' and user_id = #{userId} GROUP BY order_code
select order_code from equ_order_person where del_flag = '0' and user_name = #{userId} GROUP BY order_code
)
</select>

@ -43,6 +43,7 @@
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="loginIp != null and loginIp != ''"> and login_ip = #{loginIp}</if>
<if test="loginDate != null "> and login_date = #{loginDate}</if>
and del_flag = '0'
</where>
</select>

Loading…
Cancel
Save