|
@@ -5,6 +5,7 @@ import com.steerinfo.dil.model.WmspOutboundScanResult;
|
|
|
import com.steerinfo.dil.service.impl.WmspOutboundResultServiceImpl;
|
|
|
import com.steerinfo.dil.service.impl.WmspOutboundScanResultServiceImpl;
|
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
|
+import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -13,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.text.ParseException;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -40,7 +42,8 @@ public class WmspOutboundScanResultController extends BaseRESTfulController {
|
|
|
CommonSeq commonSeq;
|
|
|
@Autowired
|
|
|
WmspOutboundResultServiceImpl wmspOutboundResultService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ WmspOutboundResultController wmspOutboundResultController;
|
|
|
/**
|
|
|
* 编写人:hukui
|
|
|
* 新增出单实绩并返回出库单详情
|
|
@@ -104,6 +107,41 @@ public class WmspOutboundScanResultController extends BaseRESTfulController {
|
|
|
}
|
|
|
return failed();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 复制吊牌出库
|
|
|
+ * @param mapval
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping(value = "/copyWmspOutboundScanResult")
|
|
|
+ public RESTfulResult copyWmspOutboundScanResult(@RequestBody(required = false) Map<String, Object> mapval) throws ParseException {
|
|
|
+ String resultMaterial=mapval.get("resultMaterial")+"";
|
|
|
+ System.out.println("In:"+resultMaterial);
|
|
|
+ String[] items=resultMaterial.split("-");
|
|
|
+ if(items==null || items.length<8){
|
|
|
+ return failed("复制失败!");
|
|
|
+ }else{
|
|
|
+ items[7]="ManualCopy"+System.currentTimeMillis();
|
|
|
+ resultMaterial="";
|
|
|
+ for(String temp:items){
|
|
|
+ resultMaterial+=temp+"-";
|
|
|
+ }
|
|
|
+ resultMaterial=resultMaterial.substring(0,resultMaterial.length()-1)+" ";
|
|
|
+ System.out.println("Copy:"+resultMaterial);
|
|
|
+ mapval.put("resultMaterial",resultMaterial);
|
|
|
+ return wmspOutboundResultController.insertwmspOutboundScanResult(mapval);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除出库扫描实绩
|
|
|
+ * @param mapval
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping(value = "/deleteWmspOutboundScanResult")
|
|
|
+ public RESTfulResult deleteWmspOutboundScanResult(@RequestBody(required = false) Map<String, Object> mapval){
|
|
|
+ return success(wmspOutboundScanResultService.deleteById(DataChange.dataToBigDecimal(mapval.get("resultId"))));
|
|
|
+ }
|
|
|
/*
|
|
|
*倒垛单新增扫描吊牌实绩
|
|
|
*/
|