呼出手机号 标签 标签组编辑时未修改内容也允许更新fix
This commit is contained in:
@@ -179,7 +179,7 @@
|
||||
update_user_id = #{updateUserId},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark},
|
||||
remark = #{remark}
|
||||
</if>
|
||||
</set>
|
||||
where deleted = 0
|
||||
|
||||
@@ -95,6 +95,7 @@ public class HyOutboundServiceImpl implements HyOutboundService {
|
||||
Long id = hyOutboundMobileDO.getId();
|
||||
hyOutboundMobileDO.setId(null);
|
||||
List<HyOutboundMobileDO> outboundMobileList = outboundMobileMapper.selectByPrimarySelective(hyOutboundMobileDO);
|
||||
hyOutboundMobileDO.setId(id);
|
||||
//如果修改后的号码与原号码一致也不算重复,但是要记录更新人
|
||||
if (outboundMobileList != null && outboundMobileList.size() > 0) {
|
||||
//更新操作还要检查是否与原号码信息相同,相同的话也不算重复
|
||||
|
||||
@@ -71,6 +71,7 @@ public class LabelGroupServiceImpl implements LabelGroupService {
|
||||
public void updateLabelGroup(LabelGroupUpdateDTO dto) throws ApiException {
|
||||
HyPartnerLabelGroupDO labelGroupDO = new HyPartnerLabelGroupDO();
|
||||
labelGroupDO.setLabelGroupName(dto.getLabelGroupName());
|
||||
labelGroupDO.setId(dto.getId());
|
||||
if (whetherGroupDuplicated(labelGroupDO)) {
|
||||
throw new ApiException(ErrorCodeEnum.LABEL_GROUP_EXIST);
|
||||
}
|
||||
@@ -121,6 +122,7 @@ public class LabelGroupServiceImpl implements LabelGroupService {
|
||||
Long id = labelGroupDO.getId();
|
||||
labelGroupDO.setId(null);
|
||||
List<HyPartnerLabelGroupDO> hyPartnerLabelGroupDOS = labelGroupMapper.selectSelective(labelGroupDO);
|
||||
labelGroupDO.setId(id);
|
||||
//如果修改后的标签组名与原标签组名一致也不算重复,但是要记录更新人
|
||||
if (hyPartnerLabelGroupDOS != null && hyPartnerLabelGroupDOS.size() > 0) {
|
||||
//更新操作还要检查是否与原标签组信息相同,相同的话也不算重复
|
||||
|
||||
@@ -102,6 +102,7 @@ public class LabelServiceImpl implements LabelService {
|
||||
Long id = label.getId();
|
||||
label.setId(null);
|
||||
List<HyPartnerLabelDO> hyPartnerLabelDOS = labelMapper.selectSelective(label);
|
||||
label.setId(id);
|
||||
//如果修改后的标签名与原标签名一致也不算重复,但是要记录更新人
|
||||
if (hyPartnerLabelDOS != null && hyPartnerLabelDOS.size() > 0) {
|
||||
//更新操作还要检查是否与原标签信息相同,相同的话也不算重复
|
||||
|
||||
Reference in New Issue
Block a user