|
@@ -506,13 +506,18 @@ public class HospProfitAndLossServiceImpl extends ServiceImpl<HospProfitAndLossM
|
|
|
* @param hospId
|
|
|
*/
|
|
|
@Override
|
|
|
- @Transactional
|
|
|
+ @Transactional(rollbackFor = Throwable.class, propagation = Propagation.REQUIRED)
|
|
|
public void calcByResponsibility(String date, Long hospId) {
|
|
|
List<Responsibility> leafResp = responsibilityService.getLeafResp(hospId);
|
|
|
DateTime parse = DateUtil.parse(date);
|
|
|
int year = DateUtil.year(parse);
|
|
|
int month = DateUtil.month(parse) + 1;
|
|
|
- this.remove(new LambdaQueryWrapper<HospProfitAndLoss>().eq(HospProfitAndLoss::getDateYear, year).eq(HospProfitAndLoss::getDateMonth, month).eq(HospProfitAndLoss::getHospId, hospId));
|
|
|
+ this.remove(
|
|
|
+ new LambdaQueryWrapper<HospProfitAndLoss>()
|
|
|
+ .eq(HospProfitAndLoss::getDateYear, year)
|
|
|
+ .eq(HospProfitAndLoss::getDateMonth, month)
|
|
|
+ .eq(HospProfitAndLoss::getHospId, hospId)
|
|
|
+ );
|
|
|
// 得到全院损益计算报表
|
|
|
List<ReportForm> reportForms = reportFormService.getListByReportType(hospId, ReportTypeEnum.HOSP_PROFIT_LOSS.getType());
|
|
|
if (CollUtil.isEmpty(reportForms)) {
|