|
@@ -910,7 +910,7 @@ public class ContractInfoServiceImpl extends BaseServiceImpl<ContractInfoMapper,
|
|
|
ContractInfo contractInfo1 = baseMapper.selectById(contractInfo.getId());
|
|
|
//如果模版引用发生改变,需要判断合同段中是否有节点
|
|
|
if(contractInfo1.getTemplateType()!=null&&contractInfo.getTemplateType()!=null&&contractInfo1.getTemplateType()!=contractInfo.getTemplateType()){
|
|
|
- String sql="Selcet COUNT(*) From m_wbs_tree_contract Where contract_id="+contractInfo.getId()+" and is_deleted=0";
|
|
|
+ String sql="select COUNT(*) From m_wbs_tree_contract Where contract_id="+contractInfo.getId()+" and is_deleted=0";
|
|
|
Integer size = jdbcTemplate.queryForObject(sql, Integer.class);
|
|
|
if(size>0){
|
|
|
throw new ServiceException("合同段中已存在节点,无法更改");
|