|
|
@ -5,6 +5,7 @@ import com.letian.modules.production.dao.PalletMapper; |
|
|
import com.letian.modules.production.dao.ProcedureMapper; |
|
|
import com.letian.modules.production.dao.ProcedureMapper; |
|
|
import com.letian.modules.production.entity.PalletFillDetailData; |
|
|
import com.letian.modules.production.entity.PalletFillDetailData; |
|
|
import com.letian.modules.production.entity.PalletListData; |
|
|
import com.letian.modules.production.entity.PalletListData; |
|
|
|
|
|
import com.qiniu.util.Json; |
|
|
import org.apache.commons.lang.math.NumberUtils; |
|
|
import org.apache.commons.lang.math.NumberUtils; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.Logger; |
|
|
import org.slf4j.LoggerFactory; |
|
|
import org.slf4j.LoggerFactory; |
|
|
@ -363,7 +364,14 @@ public class OutBoundServiceImpl implements OutBoundService { |
|
|
for(CoDelDetailInData coDelDetail : coDelDetails){ |
|
|
for(CoDelDetailInData coDelDetail : coDelDetails){ |
|
|
String tempKey = coDelDetail.getOrderNo()+"-"+coDelDetail.getItemNo(); |
|
|
String tempKey = coDelDetail.getOrderNo()+"-"+coDelDetail.getItemNo(); |
|
|
List<String> serialNos = salesDetailCacheMap.get(tempKey); |
|
|
List<String> serialNos = salesDetailCacheMap.get(tempKey); |
|
|
String serialResult = getSerialResult(serialNos); |
|
|
|
|
|
|
|
|
String serialResult = ""; |
|
|
|
|
|
if(serialNos.size()>1){ |
|
|
|
|
|
String str=serialNos.get(serialNos.size()-1); |
|
|
|
|
|
serialResult=serialNos.get(0)+"-"+str.substring(str.length()-4); |
|
|
|
|
|
}else { |
|
|
|
|
|
serialResult=serialNos.get(0); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
coDelDetail.setDisplaySerialNo(serialResult); |
|
|
coDelDetail.setDisplaySerialNo(serialResult); |
|
|
coDelDetail.setRemark(""); |
|
|
coDelDetail.setRemark(""); |
|
|
//判断数量是否是整数 |
|
|
//判断数量是否是整数 |
|
|
@ -375,6 +383,10 @@ public class OutBoundServiceImpl implements OutBoundService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//批量保存发货数据 |
|
|
//批量保存发货数据 |
|
|
|
|
|
logger.info(inData.getDelNotifyNo()+"开始保存发货数据"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger.info(JSON.toJSONString(coDelDetails)); |
|
|
outBoundDao.batchInsertCoDelDetail(coDelDetails); |
|
|
outBoundDao.batchInsertCoDelDetail(coDelDetails); |
|
|
//统计生成transHeader说数据 |
|
|
//统计生成transHeader说数据 |
|
|
//缓存transHeader的TransNo和warehouse的对应的数据 |
|
|
//缓存transHeader的TransNo和warehouse的对应的数据 |
|
|
@ -598,7 +610,7 @@ public class OutBoundServiceImpl implements OutBoundService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @Title: getSerialResult |
|
|
|
|
|
|
|
|
* @Title: |
|
|
* @Description: 处理序列号显示规则 |
|
|
* @Description: 处理序列号显示规则 |
|
|
* @author LR |
|
|
* @author LR |
|
|
* @date 2019年9月23日 |
|
|
* @date 2019年9月23日 |
|
|
|