|
|
@@ -437,7 +437,10 @@ public class OrderTask extends AbstractTask {
|
|
|
}else if (count == 0) {
|
|
|
String code = "";
|
|
|
if (StringUtils.isEmpty(product.getMaterialCode())) {
|
|
|
- code = "YS" + jdbcTemplate.generateCode("product$yhnd", 2);
|
|
|
+ String logOrderSql = "INSERT INTO LOGORDER(LO_ID, ORDERCODE , STATUS , SALESTIME , ORDERNUMBER , REMARK) "
|
|
|
+ + "VALUES(LOGORDER_SEQ.NEXTVAL,'" + orderCode + "', '失败', SYSDATE, null, '从平台获取到的产品信息uas物料编号为空')";
|
|
|
+ jdbcTemplate.execute(logOrderSql);
|
|
|
+ return null;
|
|
|
}else {
|
|
|
code = "YS" + product.getMaterialCode();
|
|
|
}
|