2024-07-19 设备-组线问题导致点检任务不生成

master
A0010407 6 months ago
parent 57e5bf1490
commit 95dcfd10db

@ -5,6 +5,7 @@ import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
import com.op.common.core.context.SecurityContextHolder;
import com.op.common.core.domain.R;
import com.op.common.core.utils.DateUtils;
import com.op.common.core.utils.StringUtils;
import com.op.common.core.utils.uuid.IdUtils;
import com.op.common.core.web.domain.AjaxResult;
import com.op.common.security.utils.SecurityUtils;
@ -340,9 +341,11 @@ public class DeviceTaskServiceImpl implements IDeviceTaskService {
order.setOutsourceCode("BW" + orderCode);
}
if(StringUtils.isNotEmpty(plan.getEquipmentCode())){
//查询组线
String lineName = equOrderMapper.getGroupLine(plan.getEquipmentCode());
order.setPlanProdLine(lineName);
}
/**equ_order**/
sce = equOrderMapper.insertEquOrder(order);

@ -518,7 +518,7 @@
<!-- 获取组线信息 -->
<select id="getGroupLine" parameterType="java.lang.String" resultType="java.lang.String">
select equipment_name
select TOP 1 equipment_name
from equ_bind_auxiliary_equipment
where auxiliary_equipment_code = #{auxiliaryEquipmentCode}
and del_flag = '0'

Loading…
Cancel
Save