点击工单BUG

highway
wws 1 year ago
parent 4939bad46f
commit 90d9b80bf7

@ -70,4 +70,6 @@ public interface EquOrderEquMapper {
int insertEquOrderEqus(@Param("list") List<EquPlanEqu> equs);
// 通过工单code查询设备order
EquOrderEqu selectEquOrderEquListByOrderCode(String orderCode);
}

@ -116,7 +116,7 @@ public class EquOrderServiceImpl implements IEquOrderService {
public List<EquOrder> selectEquOrderList(EquOrder equOrder) {
List<EquOrder> orderList = equOrderMapper.selectEquOrderList(equOrder);
for (EquOrder order : orderList) {
EquOrderEqu equ = equOrderEquMapper.selectEquOrderEquListByParentCode(order.getOrderId());
EquOrderEqu equ = equOrderEquMapper.selectEquOrderEquListByOrderCode(order.getOrderCode());
order.setEquipmentCode(equ.getEquipmentCode());
order.setEquipmentName(equ.getEquipmentName());
}

@ -52,6 +52,11 @@
where parent_code = #{parentCode} and del_flag = '0'
</select>
<select id="selectEquOrderEquListByOrderCode" parameterType="String" resultMap="EquOrderEquResult">
<include refid="selectEquOrderEquVo"/>
where order_code = #{orderCode} and del_flag = '0'
</select>
<insert id="insertEquOrderEqu" parameterType="EquOrderEqu">
insert into equ_order_equ
<trim prefix="(" suffix=")" suffixOverrides=",">

Loading…
Cancel
Save