|
@ -147,8 +147,17 @@ public class ScreenProjectCategoryGridDailyServiceImpl extends BaseServiceImpl<S |
|
|
listDTO.forEach(dto->{ |
|
|
listDTO.forEach(dto->{ |
|
|
dto.setDateId(dateId); |
|
|
dto.setDateId(dateId); |
|
|
}); |
|
|
}); |
|
|
|
|
|
del(customerId,dateId); |
|
|
boolean insertRes=insertBatch(ConvertUtils.sourceToTarget(listDTO, ScreenProjectCategoryGridDailyEntity.class)); |
|
|
boolean insertRes=insertBatch(ConvertUtils.sourceToTarget(listDTO, ScreenProjectCategoryGridDailyEntity.class)); |
|
|
log.info("insertRes is {}",insertRes); |
|
|
log.info("insertRes is {}",insertRes); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
|
public void del(String customerId,String dateId){ |
|
|
|
|
|
Integer num = NumConstant.ZERO; |
|
|
|
|
|
do { |
|
|
|
|
|
num = baseDao.deleteByDateIdAndCustomerId(customerId, dateId); |
|
|
|
|
|
}while (num > NumConstant.ZERO && num == NumConstant.ONE_THOUSAND); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |