add:仓位页面新增 巷道管理
This commit is contained in:
@@ -94,4 +94,11 @@ public class StructattrController {
|
||||
public ResponseEntity<Object> unLockPoint(@RequestBody JSONObject whereJson) {
|
||||
return new ResponseEntity<>(structattrService.unLockPoint(whereJson), HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/tunConfirm")
|
||||
@Log("二期禁用巷道")
|
||||
public ResponseEntity<Object> tunConfirm(@RequestBody JSONObject json) {
|
||||
structattrService.tunConfirm(json);
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,4 +98,13 @@ public interface StructattrService {
|
||||
* @return
|
||||
*/
|
||||
JSONObject unLockPoint(JSONObject whereJson);
|
||||
|
||||
/**
|
||||
* 二期禁用巷道
|
||||
* @param json :{
|
||||
* block_num: 巷道
|
||||
* is_used: 0-禁用,1-启用
|
||||
* }
|
||||
*/
|
||||
void tunConfirm(JSONObject json);
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.b_lms.storage_manage.ios.enums.IOSEnum;
|
||||
import org.nl.common.utils.MapOf;
|
||||
import org.nl.common.utils.SecurityUtils;
|
||||
import org.nl.modules.common.exception.BadRequestException;
|
||||
@@ -513,4 +514,17 @@ public class StructattrServiceImpl implements StructattrService {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void tunConfirm(JSONObject json) {
|
||||
WQLObject tab = WQLObject.getWQLObject("st_ivt_structattr");
|
||||
|
||||
// 将这一巷道的所有仓位都禁用
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("is_used", json.getString("is_used"));
|
||||
|
||||
tab.update(param,"sect_id = '"+IOSEnum.SECT_ID.code("二期主存区")+"' AND block_num = '"+json.getString("block_num")+"' AND is_delete = '0'");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user