瀏覽代碼

合同段保存bug

cr 1 周之前
父節點
當前提交
13787b0b6a

+ 1 - 1
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/ContractInfoServiceImpl.java

@@ -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("合同段中已存在节点,无法更改");