|
|
@ -7,6 +7,7 @@ import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.nl.common.exception.BadRequestException; |
|
|
|
import org.nl.wms.ext.service.AcsToWmsService; |
|
|
|
import org.nl.wms.ext.service.dto.to.BaseResponse; |
|
|
|
import org.nl.wms.pdm.service.IPdmBdWorkorderService; |
|
|
|
import org.nl.wms.pdm.service.dao.PdmBdWorkorder; |
|
|
@ -59,6 +60,8 @@ public class MJXLTask extends AbstractTask { |
|
|
|
private ISchBaseVehiclematerialgroupService vehiclematerialgroupService; |
|
|
|
@Autowired |
|
|
|
private PointMapper pointMapper; |
|
|
|
@Autowired |
|
|
|
private AcsToWmsService acsToWmsService; |
|
|
|
|
|
|
|
@Override |
|
|
|
// @Transactional(rollbackFor = Exception.class)
|
|
|
@ -210,12 +213,16 @@ public class MJXLTask extends AbstractTask { |
|
|
|
groupEntity.setIs_delete(false); |
|
|
|
groupEntity.setMove_way(startPoint); |
|
|
|
vehiclematerialgroupService.save(groupEntity); |
|
|
|
|
|
|
|
|
|
|
|
// 任务完成
|
|
|
|
taskObj.setTask_status(TaskStatus.FINISHED.getCode()); |
|
|
|
taskObj.setGroup_id(groupEntity.getGroup_id()); |
|
|
|
taskObj.setRemark("任务完成"); |
|
|
|
JSONObject param=new JSONObject(); |
|
|
|
String device_code=startPoint.substring(0,startPoint.length()-1)+"2"; |
|
|
|
param.put("device_code",device_code); |
|
|
|
param.put("request_medthod_code","TBXBKJTask"); |
|
|
|
param.put("request_medthod_name","涂板线补空架"); |
|
|
|
acsToWmsService.acsApply(param); |
|
|
|
} |
|
|
|
if (status.equals(TaskStatus.CANCELED)) { // 取消
|
|
|
|
// 终点解锁
|
|
|
|