|
@ -7,6 +7,7 @@ import com.alibaba.fastjson.JSONObject; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.nl.common.exception.BadRequestException; |
|
|
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.ext.service.dto.to.BaseResponse; |
|
|
import org.nl.wms.pdm.service.IPdmBdWorkorderService; |
|
|
import org.nl.wms.pdm.service.IPdmBdWorkorderService; |
|
|
import org.nl.wms.pdm.service.dao.PdmBdWorkorder; |
|
|
import org.nl.wms.pdm.service.dao.PdmBdWorkorder; |
|
@ -59,6 +60,8 @@ public class MJXLTask extends AbstractTask { |
|
|
private ISchBaseVehiclematerialgroupService vehiclematerialgroupService; |
|
|
private ISchBaseVehiclematerialgroupService vehiclematerialgroupService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private PointMapper pointMapper; |
|
|
private PointMapper pointMapper; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private AcsToWmsService acsToWmsService; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
// @Transactional(rollbackFor = Exception.class)
|
|
|
// @Transactional(rollbackFor = Exception.class)
|
|
@ -210,12 +213,16 @@ public class MJXLTask extends AbstractTask { |
|
|
groupEntity.setIs_delete(false); |
|
|
groupEntity.setIs_delete(false); |
|
|
groupEntity.setMove_way(startPoint); |
|
|
groupEntity.setMove_way(startPoint); |
|
|
vehiclematerialgroupService.save(groupEntity); |
|
|
vehiclematerialgroupService.save(groupEntity); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 任务完成
|
|
|
// 任务完成
|
|
|
taskObj.setTask_status(TaskStatus.FINISHED.getCode()); |
|
|
taskObj.setTask_status(TaskStatus.FINISHED.getCode()); |
|
|
taskObj.setGroup_id(groupEntity.getGroup_id()); |
|
|
taskObj.setGroup_id(groupEntity.getGroup_id()); |
|
|
taskObj.setRemark("任务完成"); |
|
|
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)) { // 取消
|
|
|
if (status.equals(TaskStatus.CANCELED)) { // 取消
|
|
|
// 终点解锁
|
|
|
// 终点解锁
|
|
|