|
@@ -5716,7 +5716,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
if (ObjectUtil.isEmpty(wbsTreeContract1)) {
|
|
|
return R.fail("表单不存在");
|
|
|
}
|
|
|
- if (wbsTreeContract1.getIsCopeTab() == Integer.valueOf(2)) {
|
|
|
+ if (wbsTreeContract1.getIsCopeTab() .equals(Integer.valueOf(2))) {
|
|
|
return R.fail("该表不能评定汇总");
|
|
|
}
|
|
|
try {
|
|
@@ -5764,7 +5764,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
if (childrenNodes.size() > 0) {
|
|
|
for (WbsTreeContract childrenNode : childrenNodes) {
|
|
|
if (ObjectUtil.isNotEmpty(childrenNode.getIsClassifition())) {
|
|
|
- if (childrenNode.getIsClassifition() == Integer.valueOf(1)) {
|
|
|
+ if (childrenNode.getIsClassifition().equals(Integer.valueOf(1))) {
|
|
|
Integer status;
|
|
|
//判断状态是否是已审批
|
|
|
String infomationSql = "SELECT status FROM u_information_query where wbs_id=" + childrenNode.getPKeyId();
|
|
@@ -5773,7 +5773,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
} catch (Exception e) {
|
|
|
continue;
|
|
|
}
|
|
|
- if (status == Integer.valueOf(2)) {
|
|
|
+ if (status.equals(Integer.valueOf(2))) {
|
|
|
list.add(childrenNode);
|
|
|
}
|
|
|
}
|
|
@@ -5789,7 +5789,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
String unitName = findUnitName(treeContract.getUnitName());
|
|
|
//如果包含单元名称就在原来的数量上加1,同时判断如果是自定义的节点就加自定义节点的单元数量
|
|
|
if (maps.containsKey(unitName)) {
|
|
|
- if (treeContract.getNodeClass() == Integer.valueOf(2)) {
|
|
|
+ if (treeContract.getNodeClass()==2) {
|
|
|
if (ObjectUtil.isNotEmpty(treeContract.getUnitNum())) {
|
|
|
maps.put(unitName, maps.get(unitName) + treeContract.getUnitNum());
|
|
|
}
|
|
@@ -5799,7 +5799,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
}
|
|
|
} else {
|
|
|
//不包含就放进map 同时判断是否是自定义的节点
|
|
|
- if (treeContract.getNodeClass() == Integer.valueOf(2)) {
|
|
|
+ if (treeContract.getNodeClass() == 2) {
|
|
|
if (ObjectUtil.isNotEmpty(treeContract.getUnitNum())) {
|
|
|
maps.put(unitName, treeContract.getUnitNum());
|
|
|
}
|
|
@@ -5812,11 +5812,11 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
//筛选出自定义数字化节点包含单元评定的节点
|
|
|
List<WbsTreeContract> list1 = new ArrayList<>();
|
|
|
for (WbsTreeContract childrenNode : list) {
|
|
|
- if (childrenNode.getStatus() == Integer.valueOf(1)) {
|
|
|
+ if (childrenNode.getStatus() == 1) {
|
|
|
if (ObjectUtil.isNotEmpty(childrenNode.getNodeClass())) {
|
|
|
- if (childrenNode.getNodeClass() == Integer.valueOf(2)) {
|
|
|
+ if (childrenNode.getNodeClass() == 2) {
|
|
|
if (ObjectUtil.isNotEmpty(childrenNode.getIsClassifition())) {
|
|
|
- if (childrenNode.getIsClassifition() == Integer.valueOf(1)) {
|
|
|
+ if (childrenNode.getIsClassifition() == 1) {
|
|
|
list1.add(childrenNode);
|
|
|
}
|
|
|
}
|
|
@@ -5839,7 +5839,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
//水利工程 拿到除了自定义数字化上传节点以外的其他所有节点的表单
|
|
|
List<WbsTreeContract> list2 = new ArrayList<>();
|
|
|
for (WbsTreeContract childrenNode : list) {
|
|
|
- if (childrenNode.getNodeClass() != Integer.valueOf(2)) {
|
|
|
+ if (childrenNode.getNodeClass() != 2) {
|
|
|
String sql="SELECT * from m_wbs_tree_contract where parent_id="+childrenNode.getId()+" and is_deleted=0 and project_id="+childrenNode.getProjectId()+" and contract_id="+childrenNode.getContractId();
|
|
|
List<WbsTreeContract> query = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(WbsTreeContract.class));
|
|
|
if(query.size()>0){
|