杨世强 2 years ago
commit ca8fb1a02b

@ -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,153 @@ import java.util.HashMap;
@RequestMapping("/api/info")
public class MobilePortController {
/**
*
* @author
* @date 2023/1/7 14:27
* @param contractNo
* @return ActionResult
*/
@GetMapping("/contractDetails/fileList")
@ApiOperation("移动端合同文件列表fileList")
public ActionResult fileList(@RequestParam(name = "contractNo") String contractNo)throws IOException {
String data="[\n" +
" {\n" +
" \"name\": \"合同文件.docx\",\n" +
" \"url\": \"http://xxx.xxx.xxx/合同文件.docx\"\n" +
" },\n" +
" {\n" +
" \"name\": \"合同补充文件.docx\",\n" +
" \"url\": \"http://xxx.xxx.xxx/合同补充文件.docx\"\n" +
" },\n" +
" {\n" +
" \"name\": \"其它文件1.docx\",\n" +
" \"url\": \"http://xxx.xxx.xxx/其它文件1.docx\"\n" +
" },\n" +
" {\n" +
" \"name\": \"其它文件2.docx\",\n" +
" \"url\": \"http://xxx.xxx.xxx/其它文件2.docx\"\n" +
" }\n" +
"]";
return ActionResult.success(JsonUtil.getJsonToJsonArray(data));
}
/**
*
* @author
* @date 2023/1/7 14:27
* @param contractNo
* @return ActionResult
*/
@GetMapping("/contractDetails/materialList")
@ApiOperation("移动端合同物料列表materialList")
public ActionResult materialList(@RequestParam(name = "contractNo") String contractNo)throws IOException {
String data="[\n" +
" {\n" +
" \"name\": \"废钢,钢筋压块\",\n" +
" \"quantity\": \"600吨\",\n" +
" \"unitPrice\": 2827,\n" +
" \"amount\": 1696200\n" +
" },\n" +
" {\n" +
" \"name\": \"废钢重型压块B\",\n" +
" \"quantity\": \"600吨\",\n" +
" \"unitPrice\": 2827,\n" +
" \"amount\": 1696200\n" +
" },\n" +
" {\n" +
" \"name\": \"废钢,重型Ⅲ\",\n" +
" \"quantity\": \"600吨\",\n" +
" \"unitPrice\": 2827,\n" +
" \"amount\": 1696200\n" +
" },\n" +
" {\n" +
" \"name\": \"废钢,中型\",\n" +
" \"quantity\": \"600吨\",\n" +
" \"unitPrice\": 2827,\n" +
" \"amount\": 1696200\n" +
" }\n" +
"]";
return ActionResult.success(JsonUtil.getJsonToJsonArray(data));
}
/**
*
* @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