Forráskód Böngészése

重置文件题名

cr 1 hete
szülő
commit
0754b48f60

+ 3 - 0
blade-service/blade-business/src/main/java/org/springblade/business/controller/InformationWriteQueryController.java

@@ -298,6 +298,9 @@ public class InformationWriteQueryController extends BladeController {
             @ApiImplicitParam(name = "param", value = "题名规则", required = true)
     })
     public R<String> previewNodeName(@RequestParam String wbsId,@RequestParam String param){
+        if(StringUtils.isEmpty(param)){
+            throw new ServiceException("请输入题名规则");
+        }
         String sql="select p_key_id,ancestors_p_id from m_wbs_tree_contract where p_key_id="+wbsId+" and is_deleted=0";
         WbsTreeContract contract = jdbcTemplate.queryForObject(sql, new BeanPropertyRowMapper<>(WbsTreeContract.class));
         if(contract!=null){