feat: 手持分切上料架空轴有无设置
This commit is contained in:
@@ -213,4 +213,16 @@ public class SlitterPdaController {
|
||||
public ResponseEntity<Object> showManualView(@RequestBody JSONObject param) {
|
||||
return new ResponseEntity<>(slitterDevices.showManualView(param), HttpStatus.OK);
|
||||
}
|
||||
@PostMapping("/rollCacheManage")
|
||||
@Log("母卷暂存架子管理")
|
||||
@SaIgnore
|
||||
public ResponseEntity<Object> rollCacheManage(@RequestBody JSONObject param) {
|
||||
return new ResponseEntity<>(slitterDevices.rollCacheManage(param), HttpStatus.OK);
|
||||
}
|
||||
@PostMapping("/rollCacheManageTip")
|
||||
@Log("母卷暂存架子管理提示")
|
||||
@SaIgnore
|
||||
public ResponseEntity<Object> rollCacheManageTip(@RequestBody JSONObject param) {
|
||||
return new ResponseEntity<>(slitterDevices.rollCacheManageTip(param), HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -320,4 +320,18 @@ public interface SlitterService {
|
||||
* @return
|
||||
*/
|
||||
JSONObject downRolls2(JSONObject param);
|
||||
|
||||
/**
|
||||
* 母卷暂存架管理
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
JSONObject rollCacheManage(JSONObject param);
|
||||
|
||||
/**
|
||||
* 母卷暂存管理提示
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
JSONObject rollCacheManageTip(JSONObject param);
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ import org.nl.b_lms.pdm.bi.slittingproductionplan.service.IPdmBiSlittingproducti
|
||||
import org.nl.b_lms.pdm.bi.slittingproductionplan.service.dao.PdmBiSlittingproductionplan;
|
||||
import org.nl.b_lms.pdm.subpackagerelation.dao.PdmBiSubpackagerelation;
|
||||
import org.nl.b_lms.pdm.subpackagerelation.service.IpdmBiSubpackagerelationService;
|
||||
import org.nl.b_lms.sch.point.dao.StIvtCoolregionio;
|
||||
import org.nl.b_lms.sch.point.dao.StIvtCutpointivt;
|
||||
import org.nl.b_lms.sch.point.service.IstIvtCutpointivtService;
|
||||
import org.nl.b_lms.sch.task.dao.SchBaseTask;
|
||||
@@ -61,7 +62,6 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@@ -2121,4 +2121,46 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
}
|
||||
return mesSlittingMachineSendMaterial(param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject rollCacheManage(JSONObject param) {
|
||||
// param: point_code、flag(1:无空轴,2:有空轴)
|
||||
String pointCode = param.getString("point_code");
|
||||
String flag = param.getString("flag");
|
||||
WQLObject coolTab = WQLObject.getWQLObject("st_ivt_coolpointivt");
|
||||
JSONObject cool_jo = coolTab
|
||||
.query("full_point_code = '" + pointCode + "' or empty_point_code = '" + pointCode + "'")
|
||||
.uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(cool_jo)) {
|
||||
throw new BadRequestException("该暂存架不存在!");
|
||||
}
|
||||
cool_jo.put("empty_point_status", "1".equals(flag) ? "01" : "02");
|
||||
cool_jo.put("update_optid", SecurityUtils.getCurrentUserId());
|
||||
cool_jo.put("update_optname", SecurityUtils.getCurrentNickName());
|
||||
cool_jo.put("update_time", DateUtil.now());
|
||||
coolTab.update(cool_jo);
|
||||
JSONObject res = new JSONObject();
|
||||
res.put("status", HttpStatus.HTTP_OK);
|
||||
res.put("message", "点位更新成功!");
|
||||
return res;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject rollCacheManageTip(JSONObject param) {
|
||||
// param: point_code
|
||||
String pointCode = param.getString("point_code");
|
||||
JSONObject res = new JSONObject();
|
||||
JSONObject data = new JSONObject();
|
||||
WQLObject coolTab = WQLObject.getWQLObject("st_ivt_coolpointivt");
|
||||
JSONObject cool_jo = coolTab
|
||||
.query("full_point_code = '" + pointCode + "' or empty_point_code = '" + pointCode + "'")
|
||||
.uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(cool_jo)) {
|
||||
throw new BadRequestException("该暂存架不存在!");
|
||||
}
|
||||
data.put("msg", "该位置 " + ("01".equals(cool_jo.getString("empty_point_status")) ? "没有空轴" : "有空轴"));
|
||||
res.put("status", HttpStatus.HTTP_OK);
|
||||
res.put("data", data);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user