|
@@ -723,6 +723,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
|
|
/* =========================== 施工合同段 =========================== */
|
|
/* =========================== 施工合同段 =========================== */
|
|
if (new Integer(1).equals(contractInfo.getContractType())) {
|
|
if (new Integer(1).equals(contractInfo.getContractType())) {
|
|
String sql = "SELECT is_custom,p_key_id,contract_id," +
|
|
String sql = "SELECT is_custom,p_key_id,contract_id," +
|
|
|
|
+ "(SELECT is_reference_number FROM m_contract_info WHERE id="+contractId+") AS isReferenceNumber,"+
|
|
"(SELECT id FROM u_contract_tree_drawings WHERE process_id = p_key_id AND is_deleted = 0 limit 1) AS drawingsId," +
|
|
"(SELECT id FROM u_contract_tree_drawings WHERE process_id = p_key_id AND is_deleted = 0 limit 1) AS drawingsId," +
|
|
"id,parent_id,node_type,type,wbs_type,is_buss_show as isBussShow,is_concrete,major_data_type,class_name,unit_name,node_class,unit_num,excellent_num,is_classifition,digitize_time,partition_code,old_id,contract_id_relation,is_concealed_works_node," +
|
|
"id,parent_id,node_type,type,wbs_type,is_buss_show as isBussShow,is_concrete,major_data_type,class_name,unit_name,node_class,unit_num,excellent_num,is_classifition,digitize_time,partition_code,old_id,contract_id_relation,is_concealed_works_node," +
|
|
"CASE (SELECT count(1) FROM u_tree_contract_first AS tcf WHERE tcf.is_deleted = 0 AND tcf.wbs_node_id = a.p_key_id) " +
|
|
"CASE (SELECT count(1) FROM u_tree_contract_first AS tcf WHERE tcf.is_deleted = 0 AND tcf.wbs_node_id = a.p_key_id) " +
|
|
@@ -861,6 +862,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
|
|
new BeanPropertyRowMapper<>(ContractInfo.class)).stream().findAny().orElse(null);
|
|
new BeanPropertyRowMapper<>(ContractInfo.class)).stream().findAny().orElse(null);
|
|
if (sgContractInfo != null) {
|
|
if (sgContractInfo != null) {
|
|
String sql = "SELECT is_custom,p_key_id,contract_id," +
|
|
String sql = "SELECT is_custom,p_key_id,contract_id," +
|
|
|
|
+ "(SELECT is_reference_number FROM m_contract_info WHERE id="+contractId+") AS isReferenceNumber,"+
|
|
"(SELECT id FROM u_contract_tree_drawings WHERE process_id = p_key_id AND is_deleted = 0 limit 1) AS drawingsId," +
|
|
"(SELECT id FROM u_contract_tree_drawings WHERE process_id = p_key_id AND is_deleted = 0 limit 1) AS drawingsId," +
|
|
"id,parent_id,node_type,type,wbs_type,is_concrete,major_data_type,class_name,unit_name,node_class,unit_num,excellent_num,is_classifition,digitize_time,partition_code,old_id,contract_id_relation,is_concealed_works_node," +
|
|
"id,parent_id,node_type,type,wbs_type,is_concrete,major_data_type,class_name,unit_name,node_class,unit_num,excellent_num,is_classifition,digitize_time,partition_code,old_id,contract_id_relation,is_concealed_works_node," +
|
|
"CASE (SELECT count(1) FROM u_tree_contract_first AS tcf WHERE tcf.is_deleted = 0 AND tcf.wbs_node_id = a.p_key_id) " +
|
|
"CASE (SELECT count(1) FROM u_tree_contract_first AS tcf WHERE tcf.is_deleted = 0 AND tcf.wbs_node_id = a.p_key_id) " +
|
|
@@ -1194,23 +1196,23 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
|
|
if(!contract.getPId().equals("1792760669353865218")){
|
|
if(!contract.getPId().equals("1792760669353865218")){
|
|
throw new ServiceException("请输入正确的合同段id");
|
|
throw new ServiceException("请输入正确的合同段id");
|
|
}
|
|
}
|
|
- List<InformationQueryVO2> informationQueryVO2s = baseMapper.queryInformationByContractIdAndName(contractId, name);
|
|
|
|
- List<InformationQueryVO1> list= new ArrayList<>();
|
|
|
|
- if(informationQueryVO2s.size()>0){
|
|
|
|
- for (InformationQueryVO2 informationQueryVO2 : informationQueryVO2s) {
|
|
|
|
- InformationQueryVO1 i=new InformationQueryVO1();
|
|
|
|
- i.setId(informationQueryVO2.getId());
|
|
|
|
- i.setName(informationQueryVO2.getName());
|
|
|
|
- if(ObjectUtil.isNotEmpty(informationQueryVO2.getEVisaPdfUrl())){
|
|
|
|
- i.setEVisaPdfUrl(informationQueryVO2.getEVisaPdfUrl());
|
|
|
|
- }
|
|
|
|
- if(ObjectUtil.isNotEmpty(informationQueryVO2.getNodePdfUrl())){
|
|
|
|
- i.setEVisaPdfUrl(informationQueryVO2.getNodePdfUrl());
|
|
|
|
- }
|
|
|
|
- list.add(i);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return list;
|
|
|
|
|
|
+ List<InformationQueryVO1> informationQueryVO1s = baseMapper.queryInformationByContractIdAndName(contractId, name);
|
|
|
|
+// List<InformationQueryVO1> list= new ArrayList<>();
|
|
|
|
+// if(informationQueryVO2s.size()>0){
|
|
|
|
+// for (InformationQueryVO2 informationQueryVO2 : informationQueryVO2s) {
|
|
|
|
+// InformationQueryVO1 i=new InformationQueryVO1();
|
|
|
|
+// i.setId(informationQueryVO2.getId());
|
|
|
|
+// i.setName(informationQueryVO2.getName());
|
|
|
|
+// if(ObjectUtil.isNotEmpty(informationQueryVO2.getEVisaPdfUrl())){
|
|
|
|
+// i.setEVisaPdfUrl(informationQueryVO2.getEVisaPdfUrl());
|
|
|
|
+// }
|
|
|
|
+// if(ObjectUtil.isNotEmpty(informationQueryVO2.getNodePdfUrl())){
|
|
|
|
+// i.setEVisaPdfUrl(informationQueryVO2.getNodePdfUrl());
|
|
|
|
+// }
|
|
|
|
+// list.add(i);
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+ return informationQueryVO1s;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|