|
|
@ -123,9 +123,8 @@ public class KpiTimeLimitItemServiceImpl extends BaseServiceImpl<KpiTimeLimitIte |
|
|
|
List<KpiTimeLimitItemEntity> entityList = Lists.newArrayList(); |
|
|
|
|
|
|
|
for (CategoryInfoResultDTO categoryInfo : categoryInfoList) { |
|
|
|
delteTimeLimitByCategoryId(categoryInfo.getId()); |
|
|
|
|
|
|
|
timeLimit = new KpiTimeLimitItemEntity(); |
|
|
|
|
|
|
|
timeLimit.setValidCloseTime(dto.getValidCloseTime()); |
|
|
|
timeLimit.setValidRespondTime(dto.getValidRespondTime()); |
|
|
|
|
|
|
@ -150,20 +149,6 @@ public class KpiTimeLimitItemServiceImpl extends BaseServiceImpl<KpiTimeLimitIte |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 根据类别id删除类别设置 |
|
|
|
* |
|
|
|
* @param categoryId |
|
|
|
* @return int |
|
|
|
* @author work@yujt.net.cn |
|
|
|
* @date 2019/12/16 17:49 |
|
|
|
*/ |
|
|
|
private int delteTimeLimitByCategoryId(Long categoryId) { |
|
|
|
QueryWrapper<KpiTimeLimitItemEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq("CATEGORY_ID", categoryId); |
|
|
|
return baseDao.delete(wrapper); |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
List<Long> aa = Lists.newArrayList(); |
|
|
|
aa.add(0L); |
|
|
|