opt:修改正式环境相关
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
FROM
|
FROM
|
||||||
EAS_NOBLE.V_UC_OUTINBILL
|
EAS_NOBLE.V_UC_OUTINBILL
|
||||||
WHERE DJZT = '提交'
|
WHERE DJZT = '提交'
|
||||||
AND TO_DATE(cjsj, 'YYYY-MM-DD') >= TRUNC(SYSDATE) - INTERVAL '15' DAY(3)
|
AND TO_DATE(cjsj, 'YYYY-MM-DD') >= TRUNC(SYSDATE) - INTERVAL '91' DAY(3)
|
||||||
</select>
|
</select>
|
||||||
<select id="selectSrmPageWithInventory" resultType="org.nl.wms.database.eas.dao.EasOutInBillDetail">
|
<select id="selectSrmPageWithInventory" resultType="org.nl.wms.database.eas.dao.EasOutInBillDetail">
|
||||||
SELECT
|
SELECT
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
DJZT = '未入库'
|
DJZT = '未入库'
|
||||||
AND CJSJ >= DATE_SUB(
|
AND CJSJ >= DATE_SUB(
|
||||||
CURDATE(),
|
CURDATE(),
|
||||||
INTERVAL 15 DAY)
|
INTERVAL 91 DAY)
|
||||||
</select>
|
</select>
|
||||||
<select id="selectEasIds" resultType="org.nl.wms.database.eas.dao.EasOutInBillDetail">
|
<select id="selectEasIds" resultType="org.nl.wms.database.eas.dao.EasOutInBillDetail">
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
import java.util.concurrent.ThreadPoolExecutor;
|
import java.util.concurrent.ThreadPoolExecutor;
|
||||||
@@ -185,10 +187,10 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas
|
|||||||
log.error("异常信息:" + e.toString());
|
log.error("异常信息:" + e.toString());
|
||||||
}
|
}
|
||||||
}, pool);
|
}, pool);
|
||||||
CompletableFuture.runAsync(() -> {
|
// CompletableFuture.runAsync(() -> {
|
||||||
//todo 检查事务是否会失效
|
// //todo 检查事务是否会失效
|
||||||
autoDeleteBill(easOutInBillDetails, existingIds);
|
// autoDeleteBill(easOutInBillDetails, existingIds);
|
||||||
}, pool);
|
// }, pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -212,6 +214,8 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas
|
|||||||
} else {
|
} else {
|
||||||
//srm的未入库改为提交
|
//srm的未入库改为提交
|
||||||
bill.setDjzt("提交");
|
bill.setDjzt("提交");
|
||||||
|
bill.setCjsj(LocalDateTime.parse(bill.getCjsj(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")).toLocalDate().toString());
|
||||||
|
bill.setYwrq(LocalDateTime.parse(bill.getYwrq(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")).toLocalDate().toString());
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|||||||
Reference in New Issue
Block a user