|
@@ -2671,7 +2671,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
public R<Boolean> updateContractNodeParameter(@RequestParam Long pKeyId, @RequestParam String
|
|
|
nodeName, @RequestParam String partitionCode, @RequestParam(required = false) Integer className,
|
|
|
@RequestParam(required = false) Integer unitName, @RequestParam(required = false) Integer excellentNum,
|
|
|
- @RequestParam(required = false) Integer unitNum) {
|
|
|
+ @RequestParam(required = false) Integer unitNum,@RequestParam(required = false)String digitizeTime) {
|
|
|
WbsTreeContract node = new WbsTreeContract();
|
|
|
node.setPKeyId(pKeyId);
|
|
|
node.setNodeName(nodeName);
|
|
@@ -2695,14 +2695,19 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- String father = "SELECT * FROM m_wbs_tree_contract WHERE id=" + queries.getParentId();
|
|
|
- WbsTreeContract fatherNode = jdbcTemplate.queryForObject(father, new BeanPropertyRowMapper<>(WbsTreeContract.class));
|
|
|
- if (ObjectUtil.isNotEmpty(fatherNode)) {
|
|
|
- if (fatherNode.getIsClassifition() == Integer.valueOf(1)) {
|
|
|
- return R.fail("当前节点的父节点包含单元评定");
|
|
|
+ String father = "SELECT * FROM m_wbs_tree_contract WHERE id=" + queries.getParentId()+" AND is_deleted=0";
|
|
|
+ List<WbsTreeContract> fatherNode = jdbcTemplate.query(father, new BeanPropertyRowMapper<>(WbsTreeContract.class));
|
|
|
+ if (ObjectUtil.isNotEmpty(fatherNode)&&fatherNode.size()>0) {
|
|
|
+ for (WbsTreeContract wbsTreeContract : fatherNode) {
|
|
|
+ if (wbsTreeContract.getIsClassifition() == Integer.valueOf(1)) {
|
|
|
+ return R.fail("当前节点的父节点包含单元评定");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if(ObjectUtil.isNotEmpty(digitizeTime)){
|
|
|
+ node.setDigitizeTime(digitizeTime);
|
|
|
+ }
|
|
|
if (ObjectUtil.isNotEmpty(unitName) && ObjectUtil.isNotEmpty(className)) {
|
|
|
node.setIsClassifition(1);
|
|
|
node.setClassName(className);
|