|
@@ -202,4 +202,32 @@ public class ApplyPickController {
|
|
|
return rj;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 发货
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ResponseBody
|
|
|
+ @RequestMapping("/ship")
|
|
|
+ public ResponseJson ship(HttpServletRequest request,Integer applyPickId, String applyPickShipWay,String applyPickCertificate) {
|
|
|
+ if(applyPickId == null || applyPickCertificate == null || "".equals(applyPickCertificate) ){
|
|
|
+ return new ResponseJson(500, "FAILURE", 500);
|
|
|
+ }
|
|
|
+ if(applyPickCertificate == null || "".equals(applyPickCertificate) ){
|
|
|
+ return new ResponseJson(500, "FAILURE", 500);
|
|
|
+ }
|
|
|
+ if(applyPickCertificate == null || "".equals(applyPickCertificate) ){
|
|
|
+ return new ResponseJson(500, "FAILURE", 500);
|
|
|
+ }
|
|
|
+ ResponseJson rj = ResponseJson.getSUCCESS();
|
|
|
+ ApprovalApplyPick approvalApplyPick = new ApprovalApplyPick();
|
|
|
+ approvalApplyPick.setApplyPickStruts(2);
|
|
|
+ approvalApplyPick.setApplyPickId(applyPickId);
|
|
|
+// approvalApplyPick.(applyPickCertificate);
|
|
|
+ Integer flag = applyPickService.update(approvalApplyPick);
|
|
|
+ if(flag < 1){
|
|
|
+ return new ResponseJson(500, "FAILURE", 500);
|
|
|
+ }
|
|
|
+ return rj;
|
|
|
+ }
|
|
|
+
|
|
|
}
|