Browse Source
新增销售估价详情domain 新增销售估价详情Mapper 新增销售估价详情Mapper.xml 新增销售估价详情Service 新增销售估价详情ServiceImpldev
liuxiaoxu
4 months ago
5 changed files with 949 additions and 0 deletions
@ -0,0 +1,467 @@ |
|||
package com.ruoyi.sales.domain; |
|||
|
|||
import java.math.BigDecimal; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.ruoyi.common.annotation.Excel; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 销售估价详情对象 sales_estimate_detail |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-08-05 |
|||
*/ |
|||
public class SalesEstimateDetail extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 销售估价详情ID */ |
|||
private Long estimateDetailId; |
|||
|
|||
/** 估价单号 */ |
|||
@Excel(name = "估价单号") |
|||
private String salesEstimateCode; |
|||
|
|||
/** 料号档位(0A、1B、2C、3D、4E、5F) */ |
|||
@Excel(name = "料号档位", readConverterExp = "0=A、1B、2C、3D、4E、5F") |
|||
private String materialGearPosition; |
|||
|
|||
/** 美元汇率 */ |
|||
@Excel(name = "美元汇率") |
|||
private BigDecimal usdRate; |
|||
|
|||
/** 利润率 */ |
|||
@Excel(name = "利润率") |
|||
private BigDecimal profitRate; |
|||
|
|||
/** 料号 */ |
|||
@Excel(name = "料号") |
|||
private String materialNo; |
|||
|
|||
/** 物料名称 */ |
|||
@Excel(name = "物料名称") |
|||
private String materialName; |
|||
|
|||
/** 物料类型 */ |
|||
@Excel(name = "物料类型") |
|||
private String materialType; |
|||
|
|||
/** 图片地址 */ |
|||
@Excel(name = "图片地址") |
|||
private String materialPhotoUrl; |
|||
|
|||
/** 物料单位 */ |
|||
@Excel(name = "物料单位") |
|||
private String materialUnit; |
|||
|
|||
/** 物料品牌 */ |
|||
@Excel(name = "物料品牌") |
|||
private String materialBrand; |
|||
|
|||
/** 物料描述 */ |
|||
@Excel(name = "物料描述") |
|||
private String materialDescribe; |
|||
|
|||
/** 加工方式 */ |
|||
@Excel(name = "加工方式") |
|||
private String materialProcessMethod; |
|||
|
|||
/** 物料数量 */ |
|||
@Excel(name = "物料数量") |
|||
private Long materialNum; |
|||
|
|||
/** 不含税单价(RMB) */ |
|||
@Excel(name = "不含税单价", readConverterExp = "R=MB") |
|||
private BigDecimal noTaxRmb; |
|||
|
|||
/** 含税单价(RMB) */ |
|||
@Excel(name = "含税单价", readConverterExp = "R=MB") |
|||
private BigDecimal taxRmb; |
|||
|
|||
/** 不含税总价(RMB) */ |
|||
@Excel(name = "不含税总价", readConverterExp = "R=MB") |
|||
private BigDecimal allNoTaxRmb; |
|||
|
|||
/** 含税总价(RMB) */ |
|||
@Excel(name = "含税总价", readConverterExp = "R=MB") |
|||
private BigDecimal allTaxRmb; |
|||
|
|||
/** 含税单价(美元) */ |
|||
@Excel(name = "含税单价", readConverterExp = "美=元") |
|||
private BigDecimal taxDollar; |
|||
|
|||
/** 不含税单价(美元) */ |
|||
@Excel(name = "不含税单价", readConverterExp = "美=元") |
|||
private BigDecimal noTaxDollar; |
|||
|
|||
/** 含税总价(美元) */ |
|||
@Excel(name = "含税总价", readConverterExp = "美=元") |
|||
private BigDecimal allTaxDollar; |
|||
|
|||
/** 不含税总价(美元) */ |
|||
@Excel(name = "不含税总价", readConverterExp = "美=元") |
|||
private BigDecimal allNoTaxDollar; |
|||
|
|||
/** 不含税运输成本(RMB) */ |
|||
private BigDecimal noTaxShippingCosts; |
|||
|
|||
/** 不含税服务成本(RMB) */ |
|||
private BigDecimal noTaxServiceCosts; |
|||
|
|||
/** 不含税开发成本(RMB) */ |
|||
private BigDecimal noTaxDevelopCosts; |
|||
|
|||
/** 不含税人工成本(RMB) */ |
|||
private BigDecimal noTaxLaborCosts; |
|||
|
|||
/** 不含税推广成本(RMB) */ |
|||
private BigDecimal noTaxPromotionalCosts; |
|||
|
|||
/** 不含税业务成本(RMB) */ |
|||
private BigDecimal noTaxBusinessCosts; |
|||
|
|||
/** 不含税管理成本(RMB) */ |
|||
private BigDecimal noTaxManagesCosts; |
|||
|
|||
/** 不含税总物料成本(RMB) */ |
|||
private BigDecimal noTaxMaterialCosts; |
|||
|
|||
/** 不含税经营成本(RMB) */ |
|||
private BigDecimal noTaxOperatingCosts; |
|||
|
|||
/** 含税经营成本(RMB) */ |
|||
private BigDecimal taxOperatingCosts; |
|||
|
|||
public void setEstimateDetailId(Long estimateDetailId) |
|||
{ |
|||
this.estimateDetailId = estimateDetailId; |
|||
} |
|||
|
|||
public Long getEstimateDetailId() |
|||
{ |
|||
return estimateDetailId; |
|||
} |
|||
public void setSalesEstimateCode(String salesEstimateCode) |
|||
{ |
|||
this.salesEstimateCode = salesEstimateCode; |
|||
} |
|||
|
|||
public String getSalesEstimateCode() |
|||
{ |
|||
return salesEstimateCode; |
|||
} |
|||
public void setMaterialGearPosition(String materialGearPosition) |
|||
{ |
|||
this.materialGearPosition = materialGearPosition; |
|||
} |
|||
|
|||
public String getMaterialGearPosition() |
|||
{ |
|||
return materialGearPosition; |
|||
} |
|||
public void setUsdRate(BigDecimal usdRate) |
|||
{ |
|||
this.usdRate = usdRate; |
|||
} |
|||
|
|||
public BigDecimal getUsdRate() |
|||
{ |
|||
return usdRate; |
|||
} |
|||
public void setProfitRate(BigDecimal profitRate) |
|||
{ |
|||
this.profitRate = profitRate; |
|||
} |
|||
|
|||
public BigDecimal getProfitRate() |
|||
{ |
|||
return profitRate; |
|||
} |
|||
public void setMaterialNo(String materialNo) |
|||
{ |
|||
this.materialNo = materialNo; |
|||
} |
|||
|
|||
public String getMaterialNo() |
|||
{ |
|||
return materialNo; |
|||
} |
|||
public void setMaterialName(String materialName) |
|||
{ |
|||
this.materialName = materialName; |
|||
} |
|||
|
|||
public String getMaterialName() |
|||
{ |
|||
return materialName; |
|||
} |
|||
public void setMaterialType(String materialType) |
|||
{ |
|||
this.materialType = materialType; |
|||
} |
|||
|
|||
public String getMaterialType() |
|||
{ |
|||
return materialType; |
|||
} |
|||
public void setMaterialPhotoUrl(String materialPhotoUrl) |
|||
{ |
|||
this.materialPhotoUrl = materialPhotoUrl; |
|||
} |
|||
|
|||
public String getMaterialPhotoUrl() |
|||
{ |
|||
return materialPhotoUrl; |
|||
} |
|||
public void setMaterialUnit(String materialUnit) |
|||
{ |
|||
this.materialUnit = materialUnit; |
|||
} |
|||
|
|||
public String getMaterialUnit() |
|||
{ |
|||
return materialUnit; |
|||
} |
|||
public void setMaterialBrand(String materialBrand) |
|||
{ |
|||
this.materialBrand = materialBrand; |
|||
} |
|||
|
|||
public String getMaterialBrand() |
|||
{ |
|||
return materialBrand; |
|||
} |
|||
public void setMaterialDescribe(String materialDescribe) |
|||
{ |
|||
this.materialDescribe = materialDescribe; |
|||
} |
|||
|
|||
public String getMaterialDescribe() |
|||
{ |
|||
return materialDescribe; |
|||
} |
|||
public void setMaterialProcessMethod(String materialProcessMethod) |
|||
{ |
|||
this.materialProcessMethod = materialProcessMethod; |
|||
} |
|||
|
|||
public String getMaterialProcessMethod() |
|||
{ |
|||
return materialProcessMethod; |
|||
} |
|||
public void setMaterialNum(Long materialNum) |
|||
{ |
|||
this.materialNum = materialNum; |
|||
} |
|||
|
|||
public Long getMaterialNum() |
|||
{ |
|||
return materialNum; |
|||
} |
|||
public void setNoTaxRmb(BigDecimal noTaxRmb) |
|||
{ |
|||
this.noTaxRmb = noTaxRmb; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxRmb() |
|||
{ |
|||
return noTaxRmb; |
|||
} |
|||
public void setTaxRmb(BigDecimal taxRmb) |
|||
{ |
|||
this.taxRmb = taxRmb; |
|||
} |
|||
|
|||
public BigDecimal getTaxRmb() |
|||
{ |
|||
return taxRmb; |
|||
} |
|||
public void setAllNoTaxRmb(BigDecimal allNoTaxRmb) |
|||
{ |
|||
this.allNoTaxRmb = allNoTaxRmb; |
|||
} |
|||
|
|||
public BigDecimal getAllNoTaxRmb() |
|||
{ |
|||
return allNoTaxRmb; |
|||
} |
|||
public void setAllTaxRmb(BigDecimal allTaxRmb) |
|||
{ |
|||
this.allTaxRmb = allTaxRmb; |
|||
} |
|||
|
|||
public BigDecimal getAllTaxRmb() |
|||
{ |
|||
return allTaxRmb; |
|||
} |
|||
public void setTaxDollar(BigDecimal taxDollar) |
|||
{ |
|||
this.taxDollar = taxDollar; |
|||
} |
|||
|
|||
public BigDecimal getTaxDollar() |
|||
{ |
|||
return taxDollar; |
|||
} |
|||
public void setNoTaxDollar(BigDecimal noTaxDollar) |
|||
{ |
|||
this.noTaxDollar = noTaxDollar; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxDollar() |
|||
{ |
|||
return noTaxDollar; |
|||
} |
|||
public void setAllTaxDollar(BigDecimal allTaxDollar) |
|||
{ |
|||
this.allTaxDollar = allTaxDollar; |
|||
} |
|||
|
|||
public BigDecimal getAllTaxDollar() |
|||
{ |
|||
return allTaxDollar; |
|||
} |
|||
public void setAllNoTaxDollar(BigDecimal allNoTaxDollar) |
|||
{ |
|||
this.allNoTaxDollar = allNoTaxDollar; |
|||
} |
|||
|
|||
public BigDecimal getAllNoTaxDollar() |
|||
{ |
|||
return allNoTaxDollar; |
|||
} |
|||
public void setNoTaxShippingCosts(BigDecimal noTaxShippingCosts) |
|||
{ |
|||
this.noTaxShippingCosts = noTaxShippingCosts; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxShippingCosts() |
|||
{ |
|||
return noTaxShippingCosts; |
|||
} |
|||
public void setNoTaxServiceCosts(BigDecimal noTaxServiceCosts) |
|||
{ |
|||
this.noTaxServiceCosts = noTaxServiceCosts; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxServiceCosts() |
|||
{ |
|||
return noTaxServiceCosts; |
|||
} |
|||
public void setNoTaxDevelopCosts(BigDecimal noTaxDevelopCosts) |
|||
{ |
|||
this.noTaxDevelopCosts = noTaxDevelopCosts; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxDevelopCosts() |
|||
{ |
|||
return noTaxDevelopCosts; |
|||
} |
|||
public void setNoTaxLaborCosts(BigDecimal noTaxLaborCosts) |
|||
{ |
|||
this.noTaxLaborCosts = noTaxLaborCosts; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxLaborCosts() |
|||
{ |
|||
return noTaxLaborCosts; |
|||
} |
|||
public void setNoTaxPromotionalCosts(BigDecimal noTaxPromotionalCosts) |
|||
{ |
|||
this.noTaxPromotionalCosts = noTaxPromotionalCosts; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxPromotionalCosts() |
|||
{ |
|||
return noTaxPromotionalCosts; |
|||
} |
|||
public void setNoTaxBusinessCosts(BigDecimal noTaxBusinessCosts) |
|||
{ |
|||
this.noTaxBusinessCosts = noTaxBusinessCosts; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxBusinessCosts() |
|||
{ |
|||
return noTaxBusinessCosts; |
|||
} |
|||
public void setNoTaxManagesCosts(BigDecimal noTaxManagesCosts) |
|||
{ |
|||
this.noTaxManagesCosts = noTaxManagesCosts; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxManagesCosts() |
|||
{ |
|||
return noTaxManagesCosts; |
|||
} |
|||
public void setNoTaxMaterialCosts(BigDecimal noTaxMaterialCosts) |
|||
{ |
|||
this.noTaxMaterialCosts = noTaxMaterialCosts; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxMaterialCosts() |
|||
{ |
|||
return noTaxMaterialCosts; |
|||
} |
|||
public void setNoTaxOperatingCosts(BigDecimal noTaxOperatingCosts) |
|||
{ |
|||
this.noTaxOperatingCosts = noTaxOperatingCosts; |
|||
} |
|||
|
|||
public BigDecimal getNoTaxOperatingCosts() |
|||
{ |
|||
return noTaxOperatingCosts; |
|||
} |
|||
public void setTaxOperatingCosts(BigDecimal taxOperatingCosts) |
|||
{ |
|||
this.taxOperatingCosts = taxOperatingCosts; |
|||
} |
|||
|
|||
public BigDecimal getTaxOperatingCosts() |
|||
{ |
|||
return taxOperatingCosts; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("estimateDetailId", getEstimateDetailId()) |
|||
.append("salesEstimateCode", getSalesEstimateCode()) |
|||
.append("materialGearPosition", getMaterialGearPosition()) |
|||
.append("usdRate", getUsdRate()) |
|||
.append("profitRate", getProfitRate()) |
|||
.append("materialNo", getMaterialNo()) |
|||
.append("materialName", getMaterialName()) |
|||
.append("materialType", getMaterialType()) |
|||
.append("materialPhotoUrl", getMaterialPhotoUrl()) |
|||
.append("materialUnit", getMaterialUnit()) |
|||
.append("materialBrand", getMaterialBrand()) |
|||
.append("materialDescribe", getMaterialDescribe()) |
|||
.append("materialProcessMethod", getMaterialProcessMethod()) |
|||
.append("materialNum", getMaterialNum()) |
|||
.append("noTaxRmb", getNoTaxRmb()) |
|||
.append("taxRmb", getTaxRmb()) |
|||
.append("allNoTaxRmb", getAllNoTaxRmb()) |
|||
.append("allTaxRmb", getAllTaxRmb()) |
|||
.append("taxDollar", getTaxDollar()) |
|||
.append("noTaxDollar", getNoTaxDollar()) |
|||
.append("allTaxDollar", getAllTaxDollar()) |
|||
.append("allNoTaxDollar", getAllNoTaxDollar()) |
|||
.append("noTaxShippingCosts", getNoTaxShippingCosts()) |
|||
.append("noTaxServiceCosts", getNoTaxServiceCosts()) |
|||
.append("noTaxDevelopCosts", getNoTaxDevelopCosts()) |
|||
.append("noTaxLaborCosts", getNoTaxLaborCosts()) |
|||
.append("noTaxPromotionalCosts", getNoTaxPromotionalCosts()) |
|||
.append("noTaxBusinessCosts", getNoTaxBusinessCosts()) |
|||
.append("noTaxManagesCosts", getNoTaxManagesCosts()) |
|||
.append("noTaxMaterialCosts", getNoTaxMaterialCosts()) |
|||
.append("noTaxOperatingCosts", getNoTaxOperatingCosts()) |
|||
.append("taxOperatingCosts", getTaxOperatingCosts()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.append("remark", getRemark()) |
|||
.toString(); |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
package com.ruoyi.sales.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.sales.domain.SalesEstimateDetail; |
|||
|
|||
/** |
|||
* 销售估价详情Mapper接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-08-05 |
|||
*/ |
|||
public interface SalesEstimateDetailMapper |
|||
{ |
|||
/** |
|||
* 查询销售估价详情 |
|||
* |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return 销售估价详情 |
|||
*/ |
|||
public SalesEstimateDetail selectSalesEstimateDetailById(Long estimateDetailId); |
|||
|
|||
/** |
|||
* 查询销售估价详情列表 |
|||
* |
|||
* @param salesEstimateDetail 销售估价详情 |
|||
* @return 销售估价详情集合 |
|||
*/ |
|||
public List<SalesEstimateDetail> selectSalesEstimateDetailList(SalesEstimateDetail salesEstimateDetail); |
|||
|
|||
/** |
|||
* 新增销售估价详情 |
|||
* |
|||
* @param salesEstimateDetail 销售估价详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertSalesEstimateDetail(SalesEstimateDetail salesEstimateDetail); |
|||
|
|||
/** |
|||
* 修改销售估价详情 |
|||
* |
|||
* @param salesEstimateDetail 销售估价详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateSalesEstimateDetail(SalesEstimateDetail salesEstimateDetail); |
|||
|
|||
/** |
|||
* 删除销售估价详情 |
|||
* |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSalesEstimateDetailById(Long estimateDetailId); |
|||
|
|||
/** |
|||
* 批量删除销售估价详情 |
|||
* |
|||
* @param estimateDetailIds 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSalesEstimateDetailByIds(String[] estimateDetailIds); |
|||
|
|||
/** |
|||
* 作废销售估价详情 |
|||
* |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int cancelSalesEstimateDetailById(Long estimateDetailId); |
|||
|
|||
/** |
|||
* 恢复销售估价详情 |
|||
* |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int restoreSalesEstimateDetailById(Long estimateDetailId); |
|||
} |
@ -0,0 +1,75 @@ |
|||
package com.ruoyi.sales.service; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.sales.domain.SalesEstimateDetail; |
|||
|
|||
/** |
|||
* 销售估价详情Service接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-08-05 |
|||
*/ |
|||
public interface ISalesEstimateDetailService |
|||
{ |
|||
/** |
|||
* 查询销售估价详情 |
|||
* |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return 销售估价详情 |
|||
*/ |
|||
public SalesEstimateDetail selectSalesEstimateDetailById(Long estimateDetailId); |
|||
|
|||
/** |
|||
* 查询销售估价详情列表 |
|||
* |
|||
* @param salesEstimateDetail 销售估价详情 |
|||
* @return 销售估价详情集合 |
|||
*/ |
|||
public List<SalesEstimateDetail> selectSalesEstimateDetailList(SalesEstimateDetail salesEstimateDetail); |
|||
|
|||
/** |
|||
* 新增销售估价详情 |
|||
* |
|||
* @param salesEstimateDetail 销售估价详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertSalesEstimateDetail(SalesEstimateDetail salesEstimateDetail); |
|||
|
|||
/** |
|||
* 修改销售估价详情 |
|||
* |
|||
* @param salesEstimateDetail 销售估价详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateSalesEstimateDetail(SalesEstimateDetail salesEstimateDetail); |
|||
|
|||
/** |
|||
* 批量删除销售估价详情 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSalesEstimateDetailByIds(String ids); |
|||
|
|||
/** |
|||
* 删除销售估价详情信息 |
|||
* |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteSalesEstimateDetailById(Long estimateDetailId); |
|||
|
|||
/** |
|||
* 作废销售估价详情 |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return |
|||
*/ |
|||
int cancelSalesEstimateDetailById(Long estimateDetailId); |
|||
|
|||
/** |
|||
* 恢复销售估价详情 |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return |
|||
*/ |
|||
int restoreSalesEstimateDetailById(Long estimateDetailId); |
|||
} |
@ -0,0 +1,126 @@ |
|||
package com.ruoyi.sales.service.impl; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.common.utils.DateUtils; |
|||
import com.ruoyi.common.utils.ShiroUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.ruoyi.sales.mapper.SalesEstimateDetailMapper; |
|||
import com.ruoyi.sales.domain.SalesEstimateDetail; |
|||
import com.ruoyi.sales.service.ISalesEstimateDetailService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
|
|||
/** |
|||
* 销售估价详情Service业务层处理 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-08-05 |
|||
*/ |
|||
@Service |
|||
public class SalesEstimateDetailServiceImpl implements ISalesEstimateDetailService |
|||
{ |
|||
@Autowired |
|||
private SalesEstimateDetailMapper salesEstimateDetailMapper; |
|||
|
|||
/** |
|||
* 查询销售估价详情 |
|||
* |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return 销售估价详情 |
|||
*/ |
|||
@Override |
|||
public SalesEstimateDetail selectSalesEstimateDetailById(Long estimateDetailId) |
|||
{ |
|||
return salesEstimateDetailMapper.selectSalesEstimateDetailById(estimateDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 查询销售估价详情列表 |
|||
* |
|||
* @param salesEstimateDetail 销售估价详情 |
|||
* @return 销售估价详情 |
|||
*/ |
|||
@Override |
|||
public List<SalesEstimateDetail> selectSalesEstimateDetailList(SalesEstimateDetail salesEstimateDetail) |
|||
{ |
|||
return salesEstimateDetailMapper.selectSalesEstimateDetailList(salesEstimateDetail); |
|||
} |
|||
|
|||
/** |
|||
* 新增销售估价详情 |
|||
* |
|||
* @param salesEstimateDetail 销售估价详情 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertSalesEstimateDetail(SalesEstimateDetail salesEstimateDetail) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
salesEstimateDetail.setCreateBy(loginName); |
|||
salesEstimateDetail.setCreateTime(DateUtils.getNowDate()); |
|||
return salesEstimateDetailMapper.insertSalesEstimateDetail(salesEstimateDetail); |
|||
} |
|||
|
|||
/** |
|||
* 修改销售估价详情 |
|||
* |
|||
* @param salesEstimateDetail 销售估价详情 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateSalesEstimateDetail(SalesEstimateDetail salesEstimateDetail) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
salesEstimateDetail.setUpdateBy(loginName); |
|||
salesEstimateDetail.setUpdateTime(DateUtils.getNowDate()); |
|||
return salesEstimateDetailMapper.updateSalesEstimateDetail(salesEstimateDetail); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售估价详情对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteSalesEstimateDetailByIds(String ids) |
|||
{ |
|||
return salesEstimateDetailMapper.deleteSalesEstimateDetailByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除销售估价详情信息 |
|||
* |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteSalesEstimateDetailById(Long estimateDetailId) |
|||
{ |
|||
return salesEstimateDetailMapper.deleteSalesEstimateDetailById(estimateDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 作废销售估价详情 |
|||
* |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int cancelSalesEstimateDetailById(Long estimateDetailId) |
|||
{ |
|||
return salesEstimateDetailMapper.cancelSalesEstimateDetailById(estimateDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 恢复销售估价详情信息 |
|||
* |
|||
* @param estimateDetailId 销售估价详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int restoreSalesEstimateDetailById(Long estimateDetailId) |
|||
{ |
|||
return salesEstimateDetailMapper.restoreSalesEstimateDetailById(estimateDetailId); |
|||
} |
|||
} |
@ -0,0 +1,204 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ruoyi.sales.mapper.SalesEstimateDetailMapper"> |
|||
|
|||
<resultMap type="SalesEstimateDetail" id="SalesEstimateDetailResult"> |
|||
<result property="estimateDetailId" column="estimate_detail_id" /> |
|||
<result property="salesEstimateCode" column="sales_estimate_code" /> |
|||
<result property="materialGearPosition" column="material_gear_position" /> |
|||
<result property="usdRate" column="usd_rate" /> |
|||
<result property="profitRate" column="profit_rate" /> |
|||
<result property="materialNo" column="material_no" /> |
|||
<result property="materialName" column="material_name" /> |
|||
<result property="materialType" column="material_type" /> |
|||
<result property="materialPhotoUrl" column="material_photo_url" /> |
|||
<result property="materialUnit" column="material_unit" /> |
|||
<result property="materialBrand" column="material_brand" /> |
|||
<result property="materialDescribe" column="material_describe" /> |
|||
<result property="materialProcessMethod" column="material_process_method" /> |
|||
<result property="materialNum" column="material_num" /> |
|||
<result property="noTaxRmb" column="no_tax_rmb" /> |
|||
<result property="taxRmb" column="tax_rmb" /> |
|||
<result property="allNoTaxRmb" column="all_no_tax_rmb" /> |
|||
<result property="allTaxRmb" column="all_tax_rmb" /> |
|||
<result property="taxDollar" column="tax_dollar" /> |
|||
<result property="noTaxDollar" column="no_tax_dollar" /> |
|||
<result property="allTaxDollar" column="all_tax_dollar" /> |
|||
<result property="allNoTaxDollar" column="all_no_tax_dollar" /> |
|||
<result property="noTaxShippingCosts" column="no_tax_shipping_costs" /> |
|||
<result property="noTaxServiceCosts" column="no_tax_service_costs" /> |
|||
<result property="noTaxDevelopCosts" column="no_tax_develop_costs" /> |
|||
<result property="noTaxLaborCosts" column="no_tax_labor_costs" /> |
|||
<result property="noTaxPromotionalCosts" column="no_tax_promotional_costs" /> |
|||
<result property="noTaxBusinessCosts" column="no_tax_business_costs" /> |
|||
<result property="noTaxManagesCosts" column="no_tax_manages_costs" /> |
|||
<result property="noTaxMaterialCosts" column="no_tax_material_costs" /> |
|||
<result property="noTaxOperatingCosts" column="no_tax_operating_costs" /> |
|||
<result property="taxOperatingCosts" column="tax_operating_costs" /> |
|||
<result property="createBy" column="create_by" /> |
|||
<result property="createTime" column="create_time" /> |
|||
<result property="updateBy" column="update_by" /> |
|||
<result property="updateTime" column="update_time" /> |
|||
<result property="remark" column="remark" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectSalesEstimateDetailVo"> |
|||
select estimate_detail_id, sales_estimate_code, material_gear_position, usd_rate, profit_rate, material_no, material_name, material_type, material_photo_url, material_unit, material_brand, material_describe, material_process_method, material_num, no_tax_rmb, tax_rmb, all_no_tax_rmb, all_tax_rmb, tax_dollar, no_tax_dollar, all_tax_dollar, all_no_tax_dollar, no_tax_shipping_costs, no_tax_service_costs, no_tax_develop_costs, no_tax_labor_costs, no_tax_promotional_costs, no_tax_business_costs, no_tax_manages_costs, no_tax_material_costs, no_tax_operating_costs, tax_operating_costs, create_by, create_time, update_by, update_time, remark from sales_estimate_detail |
|||
</sql> |
|||
|
|||
<select id="selectSalesEstimateDetailList" parameterType="SalesEstimateDetail" resultMap="SalesEstimateDetailResult"> |
|||
<include refid="selectSalesEstimateDetailVo"/> |
|||
<where> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectSalesEstimateDetailById" parameterType="Long" resultMap="SalesEstimateDetailResult"> |
|||
<include refid="selectSalesEstimateDetailVo"/> |
|||
where estimate_detail_id = #{estimateDetailId} |
|||
</select> |
|||
|
|||
<insert id="insertSalesEstimateDetail" parameterType="SalesEstimateDetail" useGeneratedKeys="true" keyProperty="estimateDetailId"> |
|||
insert into sales_estimate_detail |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="salesEstimateCode != null">sales_estimate_code,</if> |
|||
<if test="materialGearPosition != null">material_gear_position,</if> |
|||
<if test="usdRate != null">usd_rate,</if> |
|||
<if test="profitRate != null">profit_rate,</if> |
|||
<if test="materialNo != null">material_no,</if> |
|||
<if test="materialName != null">material_name,</if> |
|||
<if test="materialType != null">material_type,</if> |
|||
<if test="materialPhotoUrl != null">material_photo_url,</if> |
|||
<if test="materialUnit != null">material_unit,</if> |
|||
<if test="materialBrand != null">material_brand,</if> |
|||
<if test="materialDescribe != null">material_describe,</if> |
|||
<if test="materialProcessMethod != null">material_process_method,</if> |
|||
<if test="materialNum != null">material_num,</if> |
|||
<if test="noTaxRmb != null">no_tax_rmb,</if> |
|||
<if test="taxRmb != null">tax_rmb,</if> |
|||
<if test="allNoTaxRmb != null">all_no_tax_rmb,</if> |
|||
<if test="allTaxRmb != null">all_tax_rmb,</if> |
|||
<if test="taxDollar != null">tax_dollar,</if> |
|||
<if test="noTaxDollar != null">no_tax_dollar,</if> |
|||
<if test="allTaxDollar != null">all_tax_dollar,</if> |
|||
<if test="allNoTaxDollar != null">all_no_tax_dollar,</if> |
|||
<if test="noTaxShippingCosts != null">no_tax_shipping_costs,</if> |
|||
<if test="noTaxServiceCosts != null">no_tax_service_costs,</if> |
|||
<if test="noTaxDevelopCosts != null">no_tax_develop_costs,</if> |
|||
<if test="noTaxLaborCosts != null">no_tax_labor_costs,</if> |
|||
<if test="noTaxPromotionalCosts != null">no_tax_promotional_costs,</if> |
|||
<if test="noTaxBusinessCosts != null">no_tax_business_costs,</if> |
|||
<if test="noTaxManagesCosts != null">no_tax_manages_costs,</if> |
|||
<if test="noTaxMaterialCosts != null">no_tax_material_costs,</if> |
|||
<if test="noTaxOperatingCosts != null">no_tax_operating_costs,</if> |
|||
<if test="taxOperatingCosts != null">tax_operating_costs,</if> |
|||
<if test="createBy != null">create_by,</if> |
|||
<if test="createTime != null">create_time,</if> |
|||
<if test="updateBy != null">update_by,</if> |
|||
<if test="updateTime != null">update_time,</if> |
|||
<if test="remark != null">remark,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="salesEstimateCode != null">#{salesEstimateCode},</if> |
|||
<if test="materialGearPosition != null">#{materialGearPosition},</if> |
|||
<if test="usdRate != null">#{usdRate},</if> |
|||
<if test="profitRate != null">#{profitRate},</if> |
|||
<if test="materialNo != null">#{materialNo},</if> |
|||
<if test="materialName != null">#{materialName},</if> |
|||
<if test="materialType != null">#{materialType},</if> |
|||
<if test="materialPhotoUrl != null">#{materialPhotoUrl},</if> |
|||
<if test="materialUnit != null">#{materialUnit},</if> |
|||
<if test="materialBrand != null">#{materialBrand},</if> |
|||
<if test="materialDescribe != null">#{materialDescribe},</if> |
|||
<if test="materialProcessMethod != null">#{materialProcessMethod},</if> |
|||
<if test="materialNum != null">#{materialNum},</if> |
|||
<if test="noTaxRmb != null">#{noTaxRmb},</if> |
|||
<if test="taxRmb != null">#{taxRmb},</if> |
|||
<if test="allNoTaxRmb != null">#{allNoTaxRmb},</if> |
|||
<if test="allTaxRmb != null">#{allTaxRmb},</if> |
|||
<if test="taxDollar != null">#{taxDollar},</if> |
|||
<if test="noTaxDollar != null">#{noTaxDollar},</if> |
|||
<if test="allTaxDollar != null">#{allTaxDollar},</if> |
|||
<if test="allNoTaxDollar != null">#{allNoTaxDollar},</if> |
|||
<if test="noTaxShippingCosts != null">#{noTaxShippingCosts},</if> |
|||
<if test="noTaxServiceCosts != null">#{noTaxServiceCosts},</if> |
|||
<if test="noTaxDevelopCosts != null">#{noTaxDevelopCosts},</if> |
|||
<if test="noTaxLaborCosts != null">#{noTaxLaborCosts},</if> |
|||
<if test="noTaxPromotionalCosts != null">#{noTaxPromotionalCosts},</if> |
|||
<if test="noTaxBusinessCosts != null">#{noTaxBusinessCosts},</if> |
|||
<if test="noTaxManagesCosts != null">#{noTaxManagesCosts},</if> |
|||
<if test="noTaxMaterialCosts != null">#{noTaxMaterialCosts},</if> |
|||
<if test="noTaxOperatingCosts != null">#{noTaxOperatingCosts},</if> |
|||
<if test="taxOperatingCosts != null">#{taxOperatingCosts},</if> |
|||
<if test="createBy != null">#{createBy},</if> |
|||
<if test="createTime != null">#{createTime},</if> |
|||
<if test="updateBy != null">#{updateBy},</if> |
|||
<if test="updateTime != null">#{updateTime},</if> |
|||
<if test="remark != null">#{remark},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateSalesEstimateDetail" parameterType="SalesEstimateDetail"> |
|||
update sales_estimate_detail |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="salesEstimateCode != null">sales_estimate_code = #{salesEstimateCode},</if> |
|||
<if test="materialGearPosition != null">material_gear_position = #{materialGearPosition},</if> |
|||
<if test="usdRate != null">usd_rate = #{usdRate},</if> |
|||
<if test="profitRate != null">profit_rate = #{profitRate},</if> |
|||
<if test="materialNo != null">material_no = #{materialNo},</if> |
|||
<if test="materialName != null">material_name = #{materialName},</if> |
|||
<if test="materialType != null">material_type = #{materialType},</if> |
|||
<if test="materialPhotoUrl != null">material_photo_url = #{materialPhotoUrl},</if> |
|||
<if test="materialUnit != null">material_unit = #{materialUnit},</if> |
|||
<if test="materialBrand != null">material_brand = #{materialBrand},</if> |
|||
<if test="materialDescribe != null">material_describe = #{materialDescribe},</if> |
|||
<if test="materialProcessMethod != null">material_process_method = #{materialProcessMethod},</if> |
|||
<if test="materialNum != null">material_num = #{materialNum},</if> |
|||
<if test="noTaxRmb != null">no_tax_rmb = #{noTaxRmb},</if> |
|||
<if test="taxRmb != null">tax_rmb = #{taxRmb},</if> |
|||
<if test="allNoTaxRmb != null">all_no_tax_rmb = #{allNoTaxRmb},</if> |
|||
<if test="allTaxRmb != null">all_tax_rmb = #{allTaxRmb},</if> |
|||
<if test="taxDollar != null">tax_dollar = #{taxDollar},</if> |
|||
<if test="noTaxDollar != null">no_tax_dollar = #{noTaxDollar},</if> |
|||
<if test="allTaxDollar != null">all_tax_dollar = #{allTaxDollar},</if> |
|||
<if test="allNoTaxDollar != null">all_no_tax_dollar = #{allNoTaxDollar},</if> |
|||
<if test="noTaxShippingCosts != null">no_tax_shipping_costs = #{noTaxShippingCosts},</if> |
|||
<if test="noTaxServiceCosts != null">no_tax_service_costs = #{noTaxServiceCosts},</if> |
|||
<if test="noTaxDevelopCosts != null">no_tax_develop_costs = #{noTaxDevelopCosts},</if> |
|||
<if test="noTaxLaborCosts != null">no_tax_labor_costs = #{noTaxLaborCosts},</if> |
|||
<if test="noTaxPromotionalCosts != null">no_tax_promotional_costs = #{noTaxPromotionalCosts},</if> |
|||
<if test="noTaxBusinessCosts != null">no_tax_business_costs = #{noTaxBusinessCosts},</if> |
|||
<if test="noTaxManagesCosts != null">no_tax_manages_costs = #{noTaxManagesCosts},</if> |
|||
<if test="noTaxMaterialCosts != null">no_tax_material_costs = #{noTaxMaterialCosts},</if> |
|||
<if test="noTaxOperatingCosts != null">no_tax_operating_costs = #{noTaxOperatingCosts},</if> |
|||
<if test="taxOperatingCosts != null">tax_operating_costs = #{taxOperatingCosts},</if> |
|||
<if test="createBy != null">create_by = #{createBy},</if> |
|||
<if test="createTime != null">create_time = #{createTime},</if> |
|||
<if test="updateBy != null">update_by = #{updateBy},</if> |
|||
<if test="updateTime != null">update_time = #{updateTime},</if> |
|||
<if test="remark != null">remark = #{remark},</if> |
|||
</trim> |
|||
where estimate_detail_id = #{estimateDetailId} |
|||
</update> |
|||
|
|||
<delete id="deleteSalesEstimateDetailById" parameterType="Long"> |
|||
delete from sales_estimate_detail where estimate_detail_id = #{estimateDetailId} |
|||
</delete> |
|||
|
|||
<delete id="deleteSalesEstimateDetailByIds" parameterType="String"> |
|||
delete from sales_estimate_detail where estimate_detail_id in |
|||
<foreach item="estimateDetailId" collection="array" open="(" separator="," close=")"> |
|||
#{estimateDetailId} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
<update id="cancelSalesEstimateDetailById" parameterType="Long"> |
|||
update sales_estimate_detail set del_flag = '1' where estimate_detail_id = #{estimateDetailId} |
|||
</update> |
|||
|
|||
<update id="restoreSalesEstimateDetailById" parameterType="Long"> |
|||
update sales_estimate_detail set del_flag = '0' where estimate_detail_id = #{estimateDetailId} |
|||
</update> |
|||
|
|||
</mapper> |
Loading…
Reference in new issue