'123'
This commit is contained in:
parent
af0898ccb0
commit
c74854b4e2
|
@ -22,12 +22,21 @@ public class quotJswController extends BaseController {
|
|||
@PostMapping("/updateQuot")
|
||||
public R<String> updateQuot(@RequestBody String quotJson)
|
||||
{
|
||||
System.out.println(quotJson);
|
||||
quotModel quot = JSON.parseObject(quotJson, quotModel.class);
|
||||
System.out.println(quot);
|
||||
|
||||
if(StringUtils.isBlank(quot.getQuotJswCode())){
|
||||
return R.fail("JswCode不能为空");
|
||||
return R.fail("金思维报价单号不能为空");
|
||||
}
|
||||
if(StringUtils.isBlank(quot.getQuotCode())){
|
||||
return R.fail("客户报价单号不能为空");
|
||||
}
|
||||
if(StringUtils.isBlank(quot.getQuotTongPrice())){
|
||||
return R.fail("铜价不能为空");
|
||||
}
|
||||
if(StringUtils.isBlank(quot.getQuotLvPrice())){
|
||||
return R.fail("铝价不能为空");
|
||||
}
|
||||
if(StringUtils.isBlank(quot.getQuotMatpriceDiff())){
|
||||
return R.fail("整单料价价差率不能为空");
|
||||
}
|
||||
return R.ok();
|
||||
}
|
||||
|
|
|
@ -1,19 +1,46 @@
|
|||
package com.ruoyi.web.controller.tool.quot;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@ApiModel(value = "quotMaterialModel", description = "报价单产品明细")
|
||||
public class quotMaterialModel {
|
||||
@ApiModelProperty("型号")
|
||||
private String matXingh;//型号
|
||||
|
||||
@ApiModelProperty("规格")
|
||||
private String matGuig;//规格
|
||||
|
||||
@ApiModelProperty("电压")
|
||||
private String matDiany;//电压
|
||||
|
||||
@ApiModelProperty("标准")
|
||||
private String matStandard;//标准
|
||||
|
||||
@ApiModelProperty("数量")
|
||||
private BigDecimal matSl;//数量
|
||||
|
||||
@ApiModelProperty("单位")
|
||||
private String matDanw;//单位
|
||||
|
||||
@ApiModelProperty("备注")
|
||||
private String matRemark;//备注
|
||||
|
||||
@ApiModelProperty("料价")
|
||||
private BigDecimal matMatprice;//料价
|
||||
|
||||
@ApiModelProperty("红本价")
|
||||
private BigDecimal matPrice;//红本价
|
||||
|
||||
@ApiModelProperty("报价")
|
||||
private BigDecimal matQuotPrice;//报价
|
||||
|
||||
@ApiModelProperty("报价金额")
|
||||
private BigDecimal matQuotAllPrice;//报价金额
|
||||
|
||||
@ApiModelProperty("料价价差率")
|
||||
private String matMatpriceDiff;//料价价差率
|
||||
|
||||
public String getMatXingh() {
|
||||
|
|
|
@ -1,12 +1,24 @@
|
|||
package com.ruoyi.web.controller.tool.quot;
|
||||
|
||||
import java.util.List;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.List;
|
||||
@ApiModel(value = "quotModel", description = "报价单信息")
|
||||
public class quotModel {
|
||||
@ApiModelProperty("金思维报价单号")
|
||||
private String quotJswCode;//金思维报价单号
|
||||
|
||||
@ApiModelProperty("客户报价单号")
|
||||
private String quotCode;//报价单号
|
||||
|
||||
@ApiModelProperty("铜价")
|
||||
private String quotTongPrice;//铜价
|
||||
|
||||
@ApiModelProperty("铝价")
|
||||
private String quotLvPrice;//铝价
|
||||
|
||||
@ApiModelProperty("整单料价价差率")
|
||||
private String quotMatpriceDiff;//整单料价价差率
|
||||
|
||||
private List<quotMaterialModel> quotMaterial;//明细
|
||||
|
|
Loading…
Reference in New Issue