|
|
@@ -19,7 +19,6 @@ import com.xunmei.resumption.dto.appRulePoint.AppRulePointDto;
|
|
|
import com.xunmei.resumption.service.IAppRuleItemService;
|
|
|
import com.xunmei.resumption.service.IAppRulePointService;
|
|
|
import com.xunmei.resumption.vo.appRuleItem.AppRuleItemPageVo;
|
|
|
-import com.xunmei.util.IDHelper;
|
|
|
import io.netty.util.internal.StringUtil;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -115,7 +114,7 @@ public class AppRuleItemServiceImpl extends ServiceImpl<AppRuleItemMapper, AppRu
|
|
|
point.setRuleTypeId(item.getRuleTypeId());
|
|
|
if (point.getId() == null) {
|
|
|
//新增
|
|
|
- point.setId(IDHelper.id());
|
|
|
+ point.setId(com.xunmei.system.util.IDHelper.id());
|
|
|
appRulePointService.save(point);
|
|
|
} else {
|
|
|
//修改
|
|
|
@@ -125,7 +124,7 @@ public class AppRuleItemServiceImpl extends ServiceImpl<AppRuleItemMapper, AppRu
|
|
|
} else {
|
|
|
//将之前的记录逻辑删除,然后新增一条记录关联到检查项
|
|
|
appRulePointMapper.updateDeleted(point.getId(), 1);
|
|
|
- Long newId = IDHelper.id();
|
|
|
+ Long newId = com.xunmei.system.util.IDHelper.id();
|
|
|
appRulePointMapper.updatePlanItem(point.getId(), newId);
|
|
|
point.setId(newId);
|
|
|
appRulePointMapper.insert(point);
|