Commit 544a609f7efa0beae27b428e5783cc3a3e629764
1 parent
22cf5bcfa3
Exists in
master
and in
1 other branch
增加权限
Showing 1 changed file with 4 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ReferConfigController.java
View file @
544a609
... | ... | @@ -8,6 +8,7 @@ |
8 | 8 | import com.lyms.platform.common.annotation.TokenRequired; |
9 | 9 | import com.lyms.platform.common.enums.YnEnums; |
10 | 10 | import com.lyms.platform.operate.web.result.FrontEndResult; |
11 | +import org.apache.commons.lang.StringUtils; | |
11 | 12 | import org.springframework.beans.factory.annotation.Autowired; |
12 | 13 | import org.springframework.stereotype.Controller; |
13 | 14 | import org.springframework.web.bind.annotation.PathVariable; |
... | ... | @@ -52,7 +53,9 @@ |
52 | 53 | public BaseResponse addRefer(@RequestBody @Valid ReferValue referValue) { |
53 | 54 | //添加前先设置项目代码, 标准代码 |
54 | 55 | |
55 | - | |
56 | + if(StringUtils.isEmpty(referValue.getCharRefer())){ | |
57 | + referValue.setCharRefer(null); | |
58 | + } | |
56 | 59 | |
57 | 60 | referConfigService.addRefer(referValue); |
58 | 61 | return new BaseResponse() |