合同订单列表

合同订单列表
product
wangchuang 2 years ago
parent 3d0be17f8d
commit cbaf2e1948

@ -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

Loading…
Cancel
Save