|
|
@@ -737,8 +737,8 @@ public class CorpsDescServiceImpl extends ServiceImpl<CorpsDescMapper, CorpsDesc
|
|
|
* @return
|
|
|
*/
|
|
|
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())) {
|
|
|
+ corpsTypeDescService.remove(new QueryWrapper<CorpsTypeDesc>().eq("corp_id", corpsDesc.getId()));
|
|
|
List<String> list = Arrays.asList(corpsDesc.getCorpsTypeId().split(","));
|
|
|
list.stream().forEach(item -> {
|
|
|
CorpsTypeDesc typeDesc = corpsTypeDescService.getOne(new QueryWrapper<CorpsTypeDesc>().eq("corp_id", pId)
|