修复新宏bug

dev
ic_excellent 2023-07-06 11:15:28 +08:00
parent 301d7f4863
commit efaca449a1
3 changed files with 16 additions and 7 deletions

View File

@ -68,11 +68,11 @@ public interface SourceTrackingMapper {
List<QuotaData> queryQuotaList(@ParamMapper("sourceTackingCode")String sourceTackingCode);
/**
* <h2></h2>
* @param sourceTrackingCode
* @return
* <h2></h2>
* @param ids id
* @return
*/
@Update("update uf_src_rfq set sfypf = 0 where xydh = #{sourceTrackingCode}")
boolean updateSourceTrackingStatus(String sourceTrackingCode);
@Delete("delete from uf_vendorMarkReport where id in ($t{ids})")
boolean deleteReport(@ParamMapper("ids")String ids);
}

View File

@ -39,6 +39,14 @@ public interface VendorReportMapper {
"values(#{item.project},#{item.desc},#{item.weight},#{item.score},#{item.detailDesc},#{mainId})")
boolean insertReportDt(@BatchSqlArgs List<VendorMarkReportDt> vendorMarkReportDtList,@ParamMapper("mainId") int mainId);
/**
* <h2></h2>
* @param sourceTrackingCode
* @return
*/
@Update("update uf_src_rfq set sfypf = 0 where xydh = #{sourceTrackingCode}")
boolean updateSourceTrackingStatus(String sourceTrackingCode);
/**
* <h2></h2>
* @param ids id

View File

@ -92,14 +92,15 @@ public class GenerateReportSchedule extends CusBaseCronJob {
vendorReportMapper.updateReport(vendorMarkReport);
vendorReportMapper.insertReportDt(vendorMarkReport.getVendorMarkReportDtList(),dataId);
}
sourceTrackingMapper.updateSourceTrackingStatus(sourceTrackingData.getSourceTrackingCode());
vendorReportMapper.updateSourceTrackingStatus(sourceTrackingData.getSourceTrackingCode());
Util.rebuildModeDataShareByAsyncList(1,Util.getIntValue(reportModelId),reportIdList);
Util.commitTransMapper(VendorReportMapper.class);
}catch (Exception e){
log.info("GenerateReportSchedule execute error!!! "+Util.getErrString(e));
Util.rollbackTransMapper(VendorReportMapper.class);
if(!reportIdList.isEmpty()) {
String ids = reportIdList.stream().map(Util::null2String).collect(Collectors.joining(","));
vendorReportMapper.deleteReport(ids);
sourceTrackingMapper.deleteReport(ids);
}
}
}