修复新宏bug
parent
301d7f4863
commit
efaca449a1
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
@ -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数组
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue