From cbaf2e19489cc85b54676648c11b02181cd03415 Mon Sep 17 00:00:00 2001 From: wangchuang <994001556@qq.com> Date: Sat, 7 Jan 2023 14:43:50 +0800 Subject: [PATCH] =?UTF-8?q?=20=E5=90=88=E5=90=8C=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=20=20=E5=90=88=E5=90=8C=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/MobilePortController.java | 82 ++++++++++++++++++- 1 file changed, 78 insertions(+), 4 deletions(-) diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/mobilePort/controller/MobilePortController.java b/SC-boot/linkage-scm/src/main/java/jnpf/mobilePort/controller/MobilePortController.java index 201a5000..118295ac 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/mobilePort/controller/MobilePortController.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/mobilePort/controller/MobilePortController.java @@ -6,10 +6,7 @@ import jnpf.base.ActionResult; import jnpf.contractfile.model.contractfile.ContractFileListQueryModel; import jnpf.util.JsonUtil; import lombok.extern.slf4j.Slf4j; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import java.io.IOException; import java.util.ArrayList; @@ -21,6 +18,83 @@ import java.util.HashMap; @RequestMapping("/api/info") public class MobilePortController { + /** + * 合同明细 + * @author 王闯 + * @date 2023/1/7 14:27 + * @param contractNo + * @return ActionResult + */ + @GetMapping("/contractDetails/contractStatistics") + @ApiOperation("移动端合同统计接口数据contractStatistics") + public ActionResult contractStatistics(@RequestParam(name = "contractNo") String contractNo)throws IOException { + String data="{\n" + + " \"totalQuantity\": 400000.00,\n" + + " \"totalAmount\": 4000.00\n" + + " }\n"; + return ActionResult.success(JsonUtil.stringToMap(data)); + } + /** + * 合同订单列表 + * @author 王闯 + * @date 2023/1/7 14:27 + * @param contractNo + * @return ActionResult + */ + @GetMapping("/contractDetails/orderList") + @ApiOperation("移动端合同订单列表orderList") + public ActionResult orderList(@RequestParam(name = "contractNo") String contractNo)throws IOException { + String data="[\n" + + " {\n" + + " \"orderNo\": \"订单号编号5010\",\n" + + " \"orderDate\": \"2022年12⽉18⽇\",\n" + + " \"supplier\": \"烟台华旭汽⻋有限公司\",\n" + + " \"contractName\": \"废钢采购合同LB-253\",\n" + + " \"preparedBy\": \"李⾼洋\",\n" + + " \"advanceAmount\": 102653.551,\n" + + " \"invoiceQuantity\": 2000,\n" + + " \"invoiceAmount\": 102653.551,\n" + + " \"orderQuantity\": 2000,\n" + + " \"amountPaid\": 102653.551,\n" + + " \"orderAmount\": 102653.551,\n" + + " \"orderStatus\": \"待开票\",\n" + + " \"materialName\": \"钢板料,废钢\"\n" + + " },\n" + + " {\n" + + " \"orderNo\": \"订单号编号5011\",\n" + + " \"orderDate\": \"2022年12⽉18⽇\",\n" + + " \"supplier\": \"烟台华旭汽⻋有限公司\",\n" + + " \"contractName\": \"废钢采购合同LB-253\",\n" + + " \"preparedBy\": \"李⾼洋\",\n" + + " \"advanceAmount\": 102653.551,\n" + + " \"invoiceQuantity\": 2000,\n" + + " \"invoiceAmount\": 102653.551,\n" + + " \"orderQuantity\": 2000,\n" + + " \"amountPaid\": 102653.551,\n" + + " \"orderAmount\": 102653.551,\n" + + " \"orderStatus\": \"待开票\",\n" + + " \"materialName\": \"钢板料,废钢\"\n" + + " },\n" + + " {\n" + + " \"orderNo\": \"订单号编号5013\",\n" + + " \"orderDate\": \"2022年12⽉18⽇\",\n" + + " \"supplier\": \"烟台华旭汽⻋有限公司\",\n" + + " \"contractName\": \"废钢采购合同LB-253\",\n" + + " \"preparedBy\": \"李⾼洋\",\n" + + " \"advanceAmount\": 102653.551,\n" + + " \"invoiceQuantity\": 2000,\n" + + " \"invoiceAmount\": 102653.551,\n" + + " \"orderQuantity\": 2000,\n" + + " \"amountPaid\": 102653.551,\n" + + " \"orderAmount\": 102653.551,\n" + + " \"orderStatus\": \"待开票\",\n" + + " \"materialName\": \"钢板料,废钢\"\n" + + " }\n" + + "]"; + return ActionResult.success(JsonUtil.getJsonToJsonArray(data)); + } + + /** *合同档案(23/1/6) * @author 王闯