Commit 59719297 by lijingjing

异常项目对比,清除重新填写原始记录消除异常的对比项;

parent 1ed9f46a
...@@ -40,7 +40,7 @@ public interface IItemComparisonService extends IBaseService<ItemComparison> { ...@@ -40,7 +40,7 @@ public interface IItemComparisonService extends IBaseService<ItemComparison> {
* @param queryDTO the query dto * @param queryDTO the query dto
* @return the list * @return the list
*/ */
List<ItemComparison> listCompareItems(SlotQueryDTO queryDTO); List<List<ItemComparison>> listCompareItems(SlotQueryDTO queryDTO);
/** /**
* Save data batch boolean. * Save data batch boolean.
...@@ -63,8 +63,8 @@ public interface IItemComparisonService extends IBaseService<ItemComparison> { ...@@ -63,8 +63,8 @@ public interface IItemComparisonService extends IBaseService<ItemComparison> {
/** /**
* 是否存在对比数据 * 是否存在对比数据
* *
* @param sampleCodeList * @param sampleCodeList the sample code list
* @return * @return boolean boolean
*/ */
boolean isExistCompareData(List<String> sampleCodeList); boolean isExistCompareData(List<String> sampleCodeList);
} }
...@@ -344,7 +344,7 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe ...@@ -344,7 +344,7 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
} }
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
protected void generateCompareItems(Long[] ids, Account account) { public void generateCompareItems(Long[] ids, Account account) {
if (ArrayUtils.isEmpty(ids)) { if (ArrayUtils.isEmpty(ids)) {
logger.error("==== EntrustReportServiceImpl ==== generateCompareItems ====> 报告IDS数据为空!"); logger.error("==== EntrustReportServiceImpl ==== generateCompareItems ====> 报告IDS数据为空!");
return; return;
...@@ -631,7 +631,7 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe ...@@ -631,7 +631,7 @@ public class EntrustReportServiceImpl extends BaseServiceImpl<EntrustReportMappe
} }
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
protected boolean doExecuteSubmit(Long[] ids, EntrustFlowEnum fromFlowStatus, EntrustFlowEnum toFlowStatus, Account account) { public boolean doExecuteSubmit(Long[] ids, EntrustFlowEnum fromFlowStatus, EntrustFlowEnum toFlowStatus, Account account) {
Entrust entrust = handleConditionGetEntrust(ids); Entrust entrust = handleConditionGetEntrust(ids);
String statusPath = entrust.getStatusPath(), flowStatus = entrust.getFlowStatus(); String statusPath = entrust.getStatusPath(), flowStatus = entrust.getFlowStatus();
......
...@@ -29,6 +29,21 @@ ...@@ -29,6 +29,21 @@
<if test="null != vo.queryDate"> <if test="null != vo.queryDate">
and ic.compare_date = to_char(#{vo.queryDate}::timestamp,'yyyy-MM-dd') and ic.compare_date = to_char(#{vo.queryDate}::timestamp,'yyyy-MM-dd')
</if> </if>
<if test="null != vo.sampleCodes">
and ic.sample_code in
<foreach collection="vo.sampleCodes" item="sc" open="(" separator="," close=")">
#{sc}
</foreach>
</if>
<if test="null != vo.itemNames">
and ic.name in
<foreach collection="vo.itemNames" item="itn" open="(" separator="," close=")">
#{itn}
</foreach>
</if>
<if test="null != vo.queryDate">
and ic.compare_date = to_char(#{vo.queryDate}::timestamp,'yyyy-MM-dd')
</if>
</where> </where>
order by ic.sample_code desc,ic.name order by ic.sample_code desc,ic.name
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment