|
@@ -56,28 +56,28 @@ public class TmstruckSelfMachineService implements ITmstruckSelfMachineService {
|
|
|
|
|
|
map = tmstruckLeaveFactoryResultMapper.getDeliveryOrder(orderNumber);
|
|
|
|
|
|
- String note=tmstruckLeaveFactoryResultMapper.querynote(orderNumber);
|
|
|
- Date date=tmstruckLeaveFactoryResultMapper.queryDate(orderNumber);
|
|
|
- if (date!=null&&!("".equals(date))){
|
|
|
- map.put("note",note);
|
|
|
- }else {
|
|
|
- if(note!=null&&!("".equals(note))){
|
|
|
- String regex="\\d{1,2}\\.\\d{1,2}";
|
|
|
- Pattern pattern=Pattern.compile(regex);
|
|
|
- Matcher matcher=pattern.matcher(note);
|
|
|
- StringBuffer stringBuffer=new StringBuffer();
|
|
|
- stringBuffer.append(note);
|
|
|
- String partOfNote = tmstruckLeaveFactoryResultMapper.querypartOfNote(orderNumber);
|
|
|
- while (matcher.find()){
|
|
|
- String group = matcher.group();
|
|
|
-
|
|
|
- note=matcher.replaceAll(partOfNote);
|
|
|
- }
|
|
|
-
|
|
|
- }else {
|
|
|
- map.put("note","");
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
map.put("orderNumber",orderNumber);
|
|
|
if(map !=null){
|
|
|
List<Map<String, Object>> deliveryOrderMaterialList = tmstruckLeaveFactoryResultMapper.getDeliveryOrderMaterial(orderNumber);
|
|
@@ -91,9 +91,22 @@ public class TmstruckSelfMachineService implements ITmstruckSelfMachineService {
|
|
|
|
|
|
BigDecimal isPoundSale = (BigDecimal) map1.get("isPoundSale");
|
|
|
|
|
|
+
|
|
|
+ List<Map<String, Object>> netWeightlist = tmstruckLeaveFactoryResultMapper.getNetWeightByOrder(map);
|
|
|
+ for (Map<String, Object> stringObjectMap : netWeightlist) {
|
|
|
+ BigDecimal materialid1 = (BigDecimal) stringObjectMap.get("materialid");
|
|
|
+ if(materialid1 !=null&&!("".equals(materialid1))){
|
|
|
+ if (materialid.compareTo(materialid1) == 0) {
|
|
|
+ BigDecimal nowNetWeight = (BigDecimal) stringObjectMap.get("nowNetWeight");
|
|
|
+ if (nowNetWeight != null) {
|
|
|
+ map1.put("netWeightTime",stringObjectMap.get("netWeightTime"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ map1.put("netWeightTime", "");
|
|
|
+ }
|
|
|
+ }
|
|
|
if (isPoundSale !=null && isPoundSale.compareTo(BigDecimal.valueOf(0))==0){
|
|
|
-
|
|
|
- List<Map<String, Object>> netWeightlist = tmstruckLeaveFactoryResultMapper.getNetWeightByOrder(map);
|
|
|
for (Map<String, Object> stringObjectMap : netWeightlist) {
|
|
|
BigDecimal materialid1 = (BigDecimal) stringObjectMap.get("materialid");
|
|
|
if(materialid1 !=null&&!("".equals(materialid1))){
|