移动端的11个接口

product
wangchuang 2 years ago
parent f86b595bc4
commit 3ef890c4c5

@ -18,6 +18,356 @@ import java.util.HashMap;
@RequestMapping("/api/info") @RequestMapping("/api/info")
public class MobilePortController { public class MobilePortController {
/**
* 退-退
* @author
* @date 2023/1/12 14:52
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/refundList")
@ApiOperation("移动端-退款收款单列表-退款信息")
public ActionResult refundList(@RequestParam(name = "orderNo") String orderNo ){
String data="[\n" +
" {\n" +
" \"receiptNo\": \"收款单号TU0001\",\n" +
" \"time\": \"2022年08⽉01⽇\",\n" +
" \"amountCollected\": 1000,\n" +
" \"paymentMethod\": \"现⾦\",\n" +
" \"remarks\": \"点击输入文本\"\n" +
" },\n" +
" {\n" +
" \"receiptNo\": \"收款单号TU0002\",\n" +
" \"time\": \"2022年08⽉01⽇\",\n" +
" \"amountCollected\": 1000,\n" +
" \"paymentMethod\": \"现⾦\",\n" +
" \"remarks\": \"点击输入文本\"\n" +
" },\n" +
" {\n" +
" \"receiptNo\": \"收款单号TU0003\",\n" +
" \"time\": \"2022年08⽉01⽇\",\n" +
" \"amountCollected\": 1000,\n" +
" \"paymentMethod\": \"现⾦\",\n" +
" \"remarks\": \"点击输入文本\"\n" +
" }\n" +
"]";
return ActionResult.success(JsonUtil.getJsonToJsonArray(data));
}
/**
* 退-退
* @author
* @date 2023/1/12 14:49
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/refundStatistics")
@ApiOperation("移动端-退款统计-退款信息")
public ActionResult refundStatistics(@RequestParam(name = "orderNo") String orderNo ){
String data="{\n" +
" \"refundableAmountTotal\": \"400000.00\",\n" +
" \"refundedAmount\": \"4000.00\"\n" +
"}";
return ActionResult.success(JsonUtil.stringToMap(data));
}
/**
* 退-退
* @author
* @date 2023/1/12 14:45
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/returnOrderList")
@ApiOperation("移动端-退货单列表-退货信息")
public ActionResult returnOrderList(@RequestParam(name = "orderNo") String orderNo ){
String data="[\n" +
" {\n" +
" \"returnOrderNo\": \"退货单号TU0001\",\n" +
" \"time\": \"2022年08⽉01⽇\",\n" +
" \"returnQuantity\": 100,\n" +
" \"returnAmount\": 250000,\n" +
" \"returnedBy\": \"李蓉蓉\"\n" +
" },\n" +
" {\n" +
" \"returnOrderNo\": \"退货单号TU0002\",\n" +
" \"time\": \"2022年08⽉01⽇\",\n" +
" \"returnQuantity\": 100,\n" +
" \"returnAmount\": 250000,\n" +
" \"returnedBy\": \"李蓉蓉\"\n" +
" },\n" +
" {\n" +
" \"returnOrderNo\": \"退货单号TU0003\",\n" +
" \"time\": \"2022年08⽉01⽇\",\n" +
" \"returnQuantity\": 100,\n" +
" \"returnAmount\": 250000,\n" +
" \"returnedBy\": \"李蓉蓉\"\n" +
" }\n" +
"]";
return ActionResult.success(JsonUtil.getJsonToJsonArray(data));
}
/**
* 退-退
* @author
* @date 2023/1/12 14:20
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/returnStatistics")
@ApiOperation("移动端-退货统计-退货信息")
public ActionResult returnStatistics(@RequestParam(name = "orderNo") String orderNo ){
String data="{\n" +
" \"returnTotal\": \"300.00\",\n" +
" \"refundableAmount\": \"750000.00\"\n" +
"}";
return ActionResult.success(JsonUtil.stringToMap(data));
}
/**
*-
* @author
* @date 2023/1/12 14:18
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/paymentList")
@ApiOperation("移动端-付款单列表-付款明细")
public ActionResult paymentList(@RequestParam(name = "orderNo") String orderNo ){
String data="[\n" +
" {\n" +
" \"paymentOrderNo\": \"付款单号TU0001\",\n" +
" \"time\": \"2022年08⽉01⽇\",\n" +
" \"amount\": 1000,\n" +
" \"paymentMethod\": \"现⾦\",\n" +
" \"remark\": \"点击输入文本\"\n" +
" },\n" +
" {\n" +
" \"paymentOrderNo\": \"付款单号TU0002\",\n" +
" \"time\": \"2022年08⽉01⽇\",\n" +
" \"amount\": 1000,\n" +
" \"paymentMethod\": \"现⾦\",\n" +
" \"remark\": \"点击输入文本\"\n" +
" },\n" +
" {\n" +
" \"paymentOrderNo\": \"付款单号TU0003\",\n" +
" \"time\": \"2022年08⽉01⽇\",\n" +
" \"amount\": 1000,\n" +
" \"paymentMethod\": \"现⾦\",\n" +
" \"remark\": \"点击输入文本\"\n" +
" },\n" +
" {\n" +
" \"paymentOrderNo\": \"付款单号TU0004\",\n" +
" \"time\": \"2022年08⽉01⽇\",\n" +
" \"amount\": 1000,\n" +
" \"paymentMethod\": \"现⾦\",\n" +
" \"remark\": \"点击输入文本\"\n" +
" }\n" +
"]";
return ActionResult.success(JsonUtil.getJsonToJsonArray(data));
}
/**
* -
* @author
* @date 2023/1/12 14:15
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/paymentStatistics")
@ApiOperation("移动端-付款统计-付款明细")
public ActionResult paymentStatistics(@RequestParam(name = "orderNo") String orderNo ){
String data="{\n" +
" \"totalAmountPayable\": \"400000.00\",\n" +
" \"amountPaid\": \"4000.00\"\n" +
"}";
return ActionResult.success(JsonUtil.stringToMap(data));
}
/**
*-
* @author
* @date 2023/1/12 14:10
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/invoiceList")
@ApiOperation("移动端-发票列表-发票信息")
public ActionResult invoiceList(@RequestParam(name = "orderNo") String orderNo ){
String data="[\n" +
" {\n" +
" \"invoiceCode\": \"发票代码202006001\",\n" +
" \"time\": \"2022年09⽉01⽇\",\n" +
" \"amount\": 1000,\n" +
" \"taxRate\": 13,\n" +
" \"amountNoTax\": 870,\n" +
" \"taxAmount\": 130,\n" +
" \"invoiceStatus\": \"发票状态\",\n" +
" \"drawer\": \"李⾼洋\",\n" +
" \n" +
" },\n" +
" {\n" +
" \"invoiceCode\": \"发票代码202006002\",\n" +
" \"time\": \"2022年09⽉01⽇\",\n" +
" \"amount\": 1000,\n" +
" \"taxRate\": 13,\n" +
" \"amountNoTax\": 870,\n" +
" \"taxAmount\": 130,\n" +
" \"invoiceStatus\": \"发票状态\",\n" +
" \"drawer\": \"李⾼洋\",\n" +
" \n" +
" },\n" +
" {\n" +
" \"invoiceCode\": \"发票代码202006003\",\n" +
" \"time\": \"2022年09⽉01⽇\",\n" +
" \"amount\": 1000,\n" +
" \"taxRate\": 13,\n" +
" \"amountNoTax\": 870,\n" +
" \"taxAmount\": 130,\n" +
" \"invoiceStatus\": \"发票状态\",\n" +
" \"drawer\": \"李⾼洋\",\n" +
" \n" +
" }\n" +
"]";
return ActionResult.success(JsonUtil.getJsonToJsonArray(data));
}
/**
* -
* @author
* @date 2023/1/12 14:04
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/invoiceStatistics")
@ApiOperation("移动端-发票统计-发票信息")
public ActionResult invoiceStatistics(@RequestParam(name = "orderNo") String orderNo ){
String data="{\n" +
" \"totalAmount\": \"400000.00\",\n" +
" \"totalTax\": \"226415.44\"\n" +
"}";
return ActionResult.success(JsonUtil.stringToMap(data));
}
/**
* -
* @author
* @date 2023/1/12 13:58
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/poundOrderList")
@ApiOperation("移动端-磅单列表-磅单明细")
public ActionResult poundOrderList(@RequestParam(name = "orderNo") String orderNo ){
String data="[\n" +
" {\n" +
" \"carLicensePlate\": \"豫AS0K91\",\n" +
" \"time\": \"2020年8⽉1⽇\",\n" +
" \"materialName\": \"废钢Ⅰ\",\n" +
" \"salesman\": \"李蓉蓉\",\n" +
" \"supplier\": \"中新钢铁\",\n" +
" \"type\": \"贸易\",\n" +
" \"netWeight\": 51.69,\n" +
" \"isPayIn\": \"是\",\n" +
" \"taxUnit\": 2510,\n" +
" \"taxRate\": 13,\n" +
" \"settlementWeight\": 51.69,\n" +
" \"unit\": \"吨\",\n" +
" \"poundOrderImgUrl\": \"http://xxx.xxx.xxx/imga\",\n" +
" \"carImgUrl\": \"http://xxx.xxx.xxx/imga\",\n" +
" \"amountNoTax\": 129741.90,\n" +
" \"amount\": 132875.45\n" +
" },\n" +
" {\n" +
" \"carLicensePlate\": \"豫AS0K91\",\n" +
" \"time\": \"2020年8⽉1⽇\",\n" +
" \"materialName\": \"废钢Ⅰ\",\n" +
" \"salesman\": \"李蓉蓉\",\n" +
" \"supplier\": \"中新钢铁\",\n" +
" \"type\": \"贸易\",\n" +
" \"netWeight\": 51.69,\n" +
" \"isPayIn\": \"是\",\n" +
" \"taxUnit\": 2510,\n" +
" \"taxRate\": 13,\n" +
" \"settlementWeight\": 51.69,\n" +
" \"unit\": \"吨\",\n" +
" \"poundOrderImgUrl\": \"http://xxx.xxx.xxx/imga\",\n" +
" \"carImgUrl\": \"http://xxx.xxx.xxx/imga\",\n" +
" \"amountNoTax\": 129741.90,\n" +
" \"amount\": 132875.45\n" +
" },\n" +
" {\n" +
" \"carLicensePlate\": \"豫AS0K91\",\n" +
" \"time\": \"2020年8⽉1⽇\",\n" +
" \"materialName\": \"废钢Ⅰ\",\n" +
" \"salesman\": \"李蓉蓉\",\n" +
" \"supplier\": \"中新钢铁\",\n" +
" \"type\": \"贸易\",\n" +
" \"netWeight\": 51.69,\n" +
" \"isPayIn\": \"是\",\n" +
" \"taxUnit\": 2510,\n" +
" \"taxRate\": 13,\n" +
" \"settlementWeight\": 51.69,\n" +
" \"unit\": \"吨\",\n" +
" \"poundOrderImgUrl\": \"http://xxx.xxx.xxx/imga\",\n" +
" \"carImgUrl\": \"http://xxx.xxx.xxx/imga\",\n" +
" \"amountNoTax\": 129741.90,\n" +
" \"amount\": 132875.45\n" +
" }\n" +
"]";
return ActionResult.success(JsonUtil.getJsonToJsonArray(data));
}
/**
* -
* @author
* @date 2023/1/12 13:53
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/poundOrderStatistics")
@ApiOperation("移动端-磅单统计-基本信息")
public ActionResult poundOrderStatistics(@RequestParam(name = "orderNo") String orderNo ){
String data="{\n" +
" \"poundOrderTotal\": 4,\n" +
" \"quantity\": 120,\n" +
" \"amount\": 1515150,\n" +
" \"amountNoTax\": 1515150,\n" +
" \"invoiceQuantity\": 120,\n" +
" \"invoiceAmount\": 1515150,\n" +
" \"amountPaid\": 0,\n" +
" \"advanceAmount\": 0\n" +
"}";
return ActionResult.success(JsonUtil.stringToMap(data));
}
/**
* -
* @author
* @date 2023/1/7 14:27
* @param orderNo
* @return ActionResult
*/
@GetMapping("/purchaseDetails/orderInfo")
@ApiOperation("移动端-订单信息-基本信息")
public ActionResult orderInfo(@RequestParam(name = "orderNo") String orderNo)throws IOException {
String data="{\n" +
" \"orderNo\": \"订单编码5012\",\n" +
" \"supplier\": \"烟台华旭汽⻋配件有限公司\",\n" +
" \"contractName\": \"CS采购合同LB-125\",\n" +
" \"contractNoOtherParty\": \"LB-125\",\n" +
" \"purchasingDepartment\": \"系统带出\",\n" +
" \"preparationTime\": \"系统带出\",\n" +
" \"preparedBy\": \"系统带出\",\n" +
" \"currency\": \"⼈⺠币\",\n" +
" \"remarks\": \"点击输入文本\"\n" +
"}";
return ActionResult.success(JsonUtil.stringToMap(data));
}
/** /**
* *
* @author * @author

Loading…
Cancel
Save