Commit e8160a10 authored by 332784038@qq.com's avatar 332784038@qq.com

Merge branch 'master-fix' into release

parents 357263fa c286e83a
...@@ -133,7 +133,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper, ...@@ -133,7 +133,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
// private ZTestMapper3 zTestMapper; // private ZTestMapper3 zTestMapper;
private static final String PREFIX = "price_batch_update_"; private static final String PREFIX = "price_batch_update:";
private static final Integer DATA_THRESHOLD = 30; private static final Integer DATA_THRESHOLD = 30;
private static final String BATCH_DEL_SCRIPT = "for k,v in pairs(ARGV) do \n " + private static final String BATCH_DEL_SCRIPT = "for k,v in pairs(ARGV) do \n " +
...@@ -699,7 +699,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper, ...@@ -699,7 +699,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
List<Long> dbStepIdList = dbStepList.stream() List<Long> dbStepIdList = dbStepList.stream()
.map(ProductPriceStepDO::getId) .map(ProductPriceStepDO::getId)
.collect(toList()); .collect(toList());
if (!batchUpdate) { // if (!batchUpdate) {
List<Long> updateIdList = updateList.stream() List<Long> updateIdList = updateList.stream()
.map(ProductPriceStepDO::getId) .map(ProductPriceStepDO::getId)
.collect(toList()); .collect(toList());
...@@ -708,7 +708,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper, ...@@ -708,7 +708,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
if (CollectionUtil.isNotEmpty(dbIdList)) { if (CollectionUtil.isNotEmpty(dbIdList)) {
productPriceStepMapper.physicsDeleteById(Joiner.on(",").join(dbIdList)); productPriceStepMapper.physicsDeleteById(Joiner.on(",").join(dbIdList));
} }
} // }
insertList1.addAll(updateList); insertList1.addAll(updateList);
List<ProductPriceStepSpecialDO> allUpdateStepSpecialList = insertList1.stream() List<ProductPriceStepSpecialDO> allUpdateStepSpecialList = insertList1.stream()
...@@ -902,15 +902,15 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper, ...@@ -902,15 +902,15 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
.collect(toList()); .collect(toList());
productPriceStepPackagingMapper.deleteBatchIds(dIdList); productPriceStepPackagingMapper.deleteBatchIds(dIdList);
} }
if (!batchUpdate) { // if (!batchUpdate) {
List<Long> updateIdList = packagingUpdateList.stream() List<Long> updatePackingIdList = packagingUpdateList.stream()
.map(ProductPriceStepPackagingDO::getId) .map(ProductPriceStepPackagingDO::getId)
.collect(toList()); .collect(toList());
dbPackingIdList.removeAll(updateIdList); dbPackingIdList.removeAll(updatePackingIdList);
if (CollectionUtil.isNotEmpty(dbPackingIdList)) { if (CollectionUtil.isNotEmpty(dbPackingIdList)) {
productPriceStepPackagingMapper.physicsDeleteById(Joiner.on(",").join(dbPackingIdList)); productPriceStepPackagingMapper.physicsDeleteById(Joiner.on(",").join(dbPackingIdList));
} }
} // }
} }
private void initBasePackagingPrice(BasePackagingPrice basePackagingPrice, String transportType) { private void initBasePackagingPrice(BasePackagingPrice basePackagingPrice, String transportType) {
......
...@@ -621,20 +621,20 @@ public interface BoxMapper extends AbstractMapper<BoxDO> { ...@@ -621,20 +621,20 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
} }
String beginDaogangTime =null ; String beginDaogangTime =null ;
String endDaogangTime =null ; String endDaogangTime =null ;
if(vo.getBeginDaogangTime()!=null ){ if(vo.getBeginDaogangTime()!=null && vo.getEndDaogangTime() != null){
beginDaogangTime = DateUtil.format(vo.getBeginDaogangTime(), "yyyy-MM-dd HH:mm:ss"); beginDaogangTime = DateUtil.format(vo.getBeginDaogangTime(), "yyyy-MM-dd HH:mm:ss");
endDaogangTime = DateUtil.format(vo.getEndDaogangTime(), "yyyy-MM-dd HH:mm:ss"); endDaogangTime = DateUtil.format(vo.getEndDaogangTime(), "yyyy-MM-dd HH:mm:ss");
} }
String beginQingguanTime = null ; String beginQingguanTime = null ;
String endQingguanTime =null ; String endQingguanTime =null ;
if(vo.getBeginQingguanTime()!=null ){ if(vo.getBeginQingguanTime()!=null && vo.getEndQingguanTime() != null){
beginQingguanTime = DateUtil.format(vo.getBeginQingguanTime(), "yyyy-MM-dd HH:mm:ss"); beginQingguanTime = DateUtil.format(vo.getBeginQingguanTime(), "yyyy-MM-dd HH:mm:ss");
endQingguanTime = DateUtil.format(vo.getEndQingguanTime(), "yyyy-MM-dd HH:mm:ss"); endQingguanTime = DateUtil.format(vo.getEndQingguanTime(), "yyyy-MM-dd HH:mm:ss");
} }
String beginUlWarehouseTime = null ; String beginUlWarehouseTime = null ;
String endUlWarehouseTime =null ; String endUlWarehouseTime =null ;
if(vo.getBeginQingguanTime()!=null ){ if(vo.getBeginUlWarehouseTime()!=null && vo.getEndUlWarehouseTime() != null){
beginUlWarehouseTime = DateUtil.format(vo.getBeginUlWarehouseTime(), "yyyy-MM-dd HH:mm:ss"); beginUlWarehouseTime = DateUtil.format(vo.getBeginUlWarehouseTime(), "yyyy-MM-dd HH:mm:ss");
endUlWarehouseTime = DateUtil.format(vo.getEndUlWarehouseTime(), "yyyy-MM-dd HH:mm:ss"); endUlWarehouseTime = DateUtil.format(vo.getEndUlWarehouseTime(), "yyyy-MM-dd HH:mm:ss");
} }
...@@ -658,7 +658,7 @@ public interface BoxMapper extends AbstractMapper<BoxDO> { ...@@ -658,7 +658,7 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
"</when>", "</when>",
"<when test = 'beginUlWarehouseTime != null or endUlWarehouseTime != null'>", "<when test = 'beginUlWarehouseTime != null or endUlWarehouseTime != null'>",
", ecw_box_clearance clearance ", ", ecw_box_cabinet_unload unload ",
"</when>", "</when>",
"WHERE", "WHERE",
...@@ -669,7 +669,7 @@ public interface BoxMapper extends AbstractMapper<BoxDO> { ...@@ -669,7 +669,7 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
"</when>", "</when>",
"<when test = 'beginUlWarehouseTime != null or endUlWarehouseTime != null'>", "<when test = 'beginUlWarehouseTime != null or endUlWarehouseTime != null'>",
"and box.id = clearance.shipment_id and clearance.deleted = 0", "and box.id = unload.shipment_id and unload.deleted = 0",
"</when>", "</when>",
"<when test = 'beginJsDate != null'>", "<when test = 'beginJsDate != null'>",
...@@ -698,11 +698,11 @@ public interface BoxMapper extends AbstractMapper<BoxDO> { ...@@ -698,11 +698,11 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
"</when>", "</when>",
"<when test = 'beginUlWarehouseTime != null'>", "<when test = 'beginUlWarehouseTime != null'>",
"and clearance.cl_clear_time &gt;= #{beginUlWarehouseTime}", "and unload.ul_warehouse_time &gt;= #{beginUlWarehouseTime}",
"</when>", "</when>",
"<when test = 'endUlWarehouseTime != null'>", "<when test = 'endUlWarehouseTime != null'>",
"and clearance.cl_clear_time &lt;= #{endUlWarehouseTime}", "and unload.ul_warehouse_time &lt;= #{endUlWarehouseTime}",
"</when>", "</when>",
"<when test = 'selfNo != null and selfNo != \"\" '>", "<when test = 'selfNo != null and selfNo != \"\" '>",
......
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