Browse Source

达沃特修改

lazhaoqian 3 years ago
parent
commit
6e675d1124

+ 1 - 1
blade-service/blade-client/src/main/java/org/springblade/client/corps/service/impl/CorpsDescServiceImpl.java

@@ -737,8 +737,8 @@ public class CorpsDescServiceImpl extends ServiceImpl<CorpsDescMapper, CorpsDesc
 	 * @return
 	 * @return
 	 */
 	 */
 	public void saveOrUpdateTypeDesc(CorpsDesc corpsDesc, Long userId, Long pId, Date date, String tenantId) {
 	public void saveOrUpdateTypeDesc(CorpsDesc corpsDesc, Long userId, Long pId, Date date, String tenantId) {
-		corpsTypeDescService.remove(new QueryWrapper<CorpsTypeDesc>().eq("corp_id", corpsDesc.getId()));
 		if (StringUtils.isNotBlank(corpsDesc.getCorpsTypeId())) {
 		if (StringUtils.isNotBlank(corpsDesc.getCorpsTypeId())) {
+			corpsTypeDescService.remove(new QueryWrapper<CorpsTypeDesc>().eq("corp_id", corpsDesc.getId()));
 			List<String> list = Arrays.asList(corpsDesc.getCorpsTypeId().split(","));
 			List<String> list = Arrays.asList(corpsDesc.getCorpsTypeId().split(","));
 			list.stream().forEach(item -> {
 			list.stream().forEach(item -> {
 				CorpsTypeDesc typeDesc = corpsTypeDescService.getOne(new QueryWrapper<CorpsTypeDesc>().eq("corp_id", pId)
 				CorpsTypeDesc typeDesc = corpsTypeDescService.getOne(new QueryWrapper<CorpsTypeDesc>().eq("corp_id", pId)