This commit is contained in:
linfso 2024-01-12 16:44:02 +08:00
parent f91d8608dd
commit b5e4e3cf2b
24 changed files with 2438 additions and 0 deletions

View File

@ -0,0 +1,118 @@
/**
* @Project: emis
* @Title: EmisQuoteDispAreaController.java
* @author linfso
* @date 2024-01-12 08:40:04
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 派件区域 控制器 </p>
*/
package com.xdadan.erp.web.emis;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xdadan.erp.common.annotation.Log;
import com.xdadan.erp.common.core.controller.BaseController;
import com.xdadan.erp.common.core.domain.AjaxResult;
import com.xdadan.erp.common.core.page.TableDataInfo;
import com.xdadan.erp.common.enums.BusinessType;
import com.xdadan.erp.common.utils.StringUtils;
import com.xdadan.erp.common.utils.poi.ExcelUtil;
import com.xdadan.erp.emis.domain.EmisQuoteDispArea;
import com.xdadan.erp.emis.service.IEmisQuoteDispAreaService;
/**
* 派件区域Controller
*
* @author linfso
* @date 2024-01-12 08:40:04
*/
@RestController
@RequestMapping("/emis/emisQuoteDispArea")
public class EmisQuoteDispAreaController extends BaseController
{
@Autowired
private IEmisQuoteDispAreaService emisQuoteDispAreaService;
/**
* 查询派件区域列表
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteDispArea:list')")
@GetMapping("/list")
public TableDataInfo list(EmisQuoteDispArea emisQuoteDispArea)
{
startPage();
List<EmisQuoteDispArea> list = emisQuoteDispAreaService.selectEmisQuoteDispAreaList(emisQuoteDispArea);
return getDataTable(list);
}
/**
* 导出派件区域列表
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteDispArea:export')")
@Log(title = "派件区域", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, EmisQuoteDispArea emisQuoteDispArea)
{
List<EmisQuoteDispArea> list = emisQuoteDispAreaService.selectEmisQuoteDispAreaList(emisQuoteDispArea);
ExcelUtil<EmisQuoteDispArea> util = new ExcelUtil<EmisQuoteDispArea>(EmisQuoteDispArea.class);
util.exportExcel(response, list, "派件区域数据");
}
/**
* 获取派件区域详细信息
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteDispArea:query')")
@GetMapping(value = "/{areaId}")
public AjaxResult getInfo(@PathVariable("areaId") Long areaId)
{
return AjaxResult.success(emisQuoteDispAreaService.selectEmisQuoteDispAreaByAreaId(areaId));
}
/**
* 新增派件区域
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteDispArea:add')")
@Log(title = "派件区域", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody EmisQuoteDispArea emisQuoteDispArea)
{
return toAjax(emisQuoteDispAreaService.insertEmisQuoteDispArea(emisQuoteDispArea));
}
/**
* 修改派件区域
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteDispArea:edit')")
@Log(title = "派件区域", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody EmisQuoteDispArea emisQuoteDispArea)
{
return toAjax(emisQuoteDispAreaService.updateEmisQuoteDispArea(emisQuoteDispArea));
}
/**
* 删除派件区域
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteDispArea:remove')")
@Log(title = "派件区域", businessType = BusinessType.DELETE)
@DeleteMapping("/{areaIds}")
public AjaxResult remove(@PathVariable Long[] areaIds)
{
return toAjax(emisQuoteDispAreaService.deleteEmisQuoteDispAreaByAreaIds(areaIds));
}
}

View File

@ -0,0 +1,118 @@
/**
* @Project: emis
* @Title: EmisQuoteExpressionController.java
* @author linfso
* @date 2024-01-12 08:40:04
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 费用计算表达式 控制器 </p>
*/
package com.xdadan.erp.web.emis;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xdadan.erp.common.annotation.Log;
import com.xdadan.erp.common.core.controller.BaseController;
import com.xdadan.erp.common.core.domain.AjaxResult;
import com.xdadan.erp.common.core.page.TableDataInfo;
import com.xdadan.erp.common.enums.BusinessType;
import com.xdadan.erp.common.utils.StringUtils;
import com.xdadan.erp.common.utils.poi.ExcelUtil;
import com.xdadan.erp.emis.domain.EmisQuoteExpression;
import com.xdadan.erp.emis.service.IEmisQuoteExpressionService;
/**
* 费用计算表达式Controller
*
* @author linfso
* @date 2024-01-12 08:40:04
*/
@RestController
@RequestMapping("/emis/emisQuoteExpression")
public class EmisQuoteExpressionController extends BaseController
{
@Autowired
private IEmisQuoteExpressionService emisQuoteExpressionService;
/**
* 查询费用计算表达式列表
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteExpression:list')")
@GetMapping("/list")
public TableDataInfo list(EmisQuoteExpression emisQuoteExpression)
{
startPage();
List<EmisQuoteExpression> list = emisQuoteExpressionService.selectEmisQuoteExpressionList(emisQuoteExpression);
return getDataTable(list);
}
/**
* 导出费用计算表达式列表
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteExpression:export')")
@Log(title = "费用计算表达式", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, EmisQuoteExpression emisQuoteExpression)
{
List<EmisQuoteExpression> list = emisQuoteExpressionService.selectEmisQuoteExpressionList(emisQuoteExpression);
ExcelUtil<EmisQuoteExpression> util = new ExcelUtil<EmisQuoteExpression>(EmisQuoteExpression.class);
util.exportExcel(response, list, "费用计算表达式数据");
}
/**
* 获取费用计算表达式详细信息
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteExpression:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(emisQuoteExpressionService.selectEmisQuoteExpressionById(id));
}
/**
* 新增费用计算表达式
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteExpression:add')")
@Log(title = "费用计算表达式", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody EmisQuoteExpression emisQuoteExpression)
{
return toAjax(emisQuoteExpressionService.insertEmisQuoteExpression(emisQuoteExpression));
}
/**
* 修改费用计算表达式
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteExpression:edit')")
@Log(title = "费用计算表达式", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody EmisQuoteExpression emisQuoteExpression)
{
return toAjax(emisQuoteExpressionService.updateEmisQuoteExpression(emisQuoteExpression));
}
/**
* 删除费用计算表达式
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteExpression:remove')")
@Log(title = "费用计算表达式", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(emisQuoteExpressionService.deleteEmisQuoteExpressionByIds(ids));
}
}

View File

@ -0,0 +1,118 @@
/**
* @Project: emis
* @Title: EmisQuotePriceController.java
* @author linfso
* @date 2024-01-12 08:40:05
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 费用报价 控制器 </p>
*/
package com.xdadan.erp.web.emis;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xdadan.erp.common.annotation.Log;
import com.xdadan.erp.common.core.controller.BaseController;
import com.xdadan.erp.common.core.domain.AjaxResult;
import com.xdadan.erp.common.core.page.TableDataInfo;
import com.xdadan.erp.common.enums.BusinessType;
import com.xdadan.erp.common.utils.StringUtils;
import com.xdadan.erp.common.utils.poi.ExcelUtil;
import com.xdadan.erp.emis.domain.EmisQuotePrice;
import com.xdadan.erp.emis.service.IEmisQuotePriceService;
/**
* 费用报价Controller
*
* @author linfso
* @date 2024-01-12 08:40:05
*/
@RestController
@RequestMapping("/emis/emisQuotePrice")
public class EmisQuotePriceController extends BaseController
{
@Autowired
private IEmisQuotePriceService emisQuotePriceService;
/**
* 查询费用报价列表
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuotePrice:list')")
@GetMapping("/list")
public TableDataInfo list(EmisQuotePrice emisQuotePrice)
{
startPage();
List<EmisQuotePrice> list = emisQuotePriceService.selectEmisQuotePriceList(emisQuotePrice);
return getDataTable(list);
}
/**
* 导出费用报价列表
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuotePrice:export')")
@Log(title = "费用报价", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, EmisQuotePrice emisQuotePrice)
{
List<EmisQuotePrice> list = emisQuotePriceService.selectEmisQuotePriceList(emisQuotePrice);
ExcelUtil<EmisQuotePrice> util = new ExcelUtil<EmisQuotePrice>(EmisQuotePrice.class);
util.exportExcel(response, list, "费用报价数据");
}
/**
* 获取费用报价详细信息
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuotePrice:query')")
@GetMapping(value = "/{quoteId}")
public AjaxResult getInfo(@PathVariable("quoteId") Long quoteId)
{
return AjaxResult.success(emisQuotePriceService.selectEmisQuotePriceByQuoteId(quoteId));
}
/**
* 新增费用报价
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuotePrice:add')")
@Log(title = "费用报价", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody EmisQuotePrice emisQuotePrice)
{
return toAjax(emisQuotePriceService.insertEmisQuotePrice(emisQuotePrice));
}
/**
* 修改费用报价
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuotePrice:edit')")
@Log(title = "费用报价", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody EmisQuotePrice emisQuotePrice)
{
return toAjax(emisQuotePriceService.updateEmisQuotePrice(emisQuotePrice));
}
/**
* 删除费用报价
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuotePrice:remove')")
@Log(title = "费用报价", businessType = BusinessType.DELETE)
@DeleteMapping("/{quoteIds}")
public AjaxResult remove(@PathVariable Long[] quoteIds)
{
return toAjax(emisQuotePriceService.deleteEmisQuotePriceByQuoteIds(quoteIds));
}
}

View File

@ -0,0 +1,118 @@
/**
* @Project: emis
* @Title: EmisQuoteSendAreaController.java
* @author linfso
* @date 2024-01-12 08:40:05
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 寄件区域 控制器 </p>
*/
package com.xdadan.erp.web.emis;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xdadan.erp.common.annotation.Log;
import com.xdadan.erp.common.core.controller.BaseController;
import com.xdadan.erp.common.core.domain.AjaxResult;
import com.xdadan.erp.common.core.page.TableDataInfo;
import com.xdadan.erp.common.enums.BusinessType;
import com.xdadan.erp.common.utils.StringUtils;
import com.xdadan.erp.common.utils.poi.ExcelUtil;
import com.xdadan.erp.emis.domain.EmisQuoteSendArea;
import com.xdadan.erp.emis.service.IEmisQuoteSendAreaService;
/**
* 寄件区域Controller
*
* @author linfso
* @date 2024-01-12 08:40:05
*/
@RestController
@RequestMapping("/emis/emisQuoteSendArea")
public class EmisQuoteSendAreaController extends BaseController
{
@Autowired
private IEmisQuoteSendAreaService emisQuoteSendAreaService;
/**
* 查询寄件区域列表
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteSendArea:list')")
@GetMapping("/list")
public TableDataInfo list(EmisQuoteSendArea emisQuoteSendArea)
{
startPage();
List<EmisQuoteSendArea> list = emisQuoteSendAreaService.selectEmisQuoteSendAreaList(emisQuoteSendArea);
return getDataTable(list);
}
/**
* 导出寄件区域列表
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteSendArea:export')")
@Log(title = "寄件区域", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, EmisQuoteSendArea emisQuoteSendArea)
{
List<EmisQuoteSendArea> list = emisQuoteSendAreaService.selectEmisQuoteSendAreaList(emisQuoteSendArea);
ExcelUtil<EmisQuoteSendArea> util = new ExcelUtil<EmisQuoteSendArea>(EmisQuoteSendArea.class);
util.exportExcel(response, list, "寄件区域数据");
}
/**
* 获取寄件区域详细信息
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteSendArea:query')")
@GetMapping(value = "/{areaId}")
public AjaxResult getInfo(@PathVariable("areaId") Long areaId)
{
return AjaxResult.success(emisQuoteSendAreaService.selectEmisQuoteSendAreaByAreaId(areaId));
}
/**
* 新增寄件区域
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteSendArea:add')")
@Log(title = "寄件区域", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody EmisQuoteSendArea emisQuoteSendArea)
{
return toAjax(emisQuoteSendAreaService.insertEmisQuoteSendArea(emisQuoteSendArea));
}
/**
* 修改寄件区域
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteSendArea:edit')")
@Log(title = "寄件区域", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody EmisQuoteSendArea emisQuoteSendArea)
{
return toAjax(emisQuoteSendAreaService.updateEmisQuoteSendArea(emisQuoteSendArea));
}
/**
* 删除寄件区域
*/
@PreAuthorize("@ss.hasPermi('emis:emisQuoteSendArea:remove')")
@Log(title = "寄件区域", businessType = BusinessType.DELETE)
@DeleteMapping("/{areaIds}")
public AjaxResult remove(@PathVariable Long[] areaIds)
{
return toAjax(emisQuoteSendAreaService.deleteEmisQuoteSendAreaByAreaIds(areaIds));
}
}

View File

@ -0,0 +1,60 @@
/**
* @Project: emis
* @Title: EmisQuoteDispArea.java
* @author linfso
* @date 2024-01-12 08:40:03
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 派件区域 实体类 </p>
*/
package com.xdadan.erp.emis.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xdadan.erp.common.annotation.Excel;
import com.xdadan.erp.common.core.domain.BaseEntity;
import com.xdadan.erp.common.core.domain.TreeEntity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* @ClassName EmisQuoteDispArea
* @Description 派件区域
* @author linfso
* @date 2024-01-12 08:40:03
*/
@Data
public class EmisQuoteDispArea extends BaseEntity
{
private static final long serialVersionUID = 1L;
/* 序号 */
private Long areaId;
/* 区域名称 */
private String areaName;
/* 使用站点名称 */
private String useSite;
/* 使用站点代码 */
private String useSiteCode;
/* 区域站点列表 */
private String areaSite;
/* 区域站点列表 */
private String areaSiteId;
/* 费用类型 */
private String feeType;
/* 区域类型 */
private String areaType;
/* 同步类型 */
private String sync;
/* 启用状态 0-启用 1-停用 */
private Integer status;
/* 创建网点 */
private String createSite;
/* 更新网点 */
private String updateSite;
}

View File

@ -0,0 +1,64 @@
/**
* @Project: emis
* @Title: EmisQuoteExpression.java
* @author linfso
* @date 2024-01-12 08:40:04
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 费用计算表达式 实体类 </p>
*/
package com.xdadan.erp.emis.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xdadan.erp.common.annotation.Excel;
import com.xdadan.erp.common.core.domain.BaseEntity;
import com.xdadan.erp.common.core.domain.TreeEntity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* @ClassName EmisQuoteExpression
* @Description 费用计算表达式
* @author linfso
* @date 2024-01-12 08:40:04
*/
@Data
public class EmisQuoteExpression extends BaseEntity
{
private static final long serialVersionUID = 1L;
/* 序号 */
private Long id;
/* 报价ID */
private Long quoteId;
/* 报价序号 */
private Integer quoteSequence;
/* 使用站点代码 */
private String useSiteCode;
/* 使用站点名称 */
private String useSite;
/* 起始重量 */
private Double startWeight;
/* 结束重量 */
private Double endWeight;
/* 首重 */
private Double initialWeight;
/* 续重 */
private Double additionalWeight;
/* 条件表达式 */
private String conditionExpression;
/* 计算表达式 */
private String calculateExpression;
/* 启用状态 0-启用 1-停用 */
private Integer status;
/* 创建网点 */
private String createSite;
/* 更新网点 */
private String updateSite;
}

View File

@ -0,0 +1,106 @@
/**
* @Project: emis
* @Title: EmisQuotePrice.java
* @author linfso
* @date 2024-01-12 08:40:05
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 费用报价 实体类 </p>
*/
package com.xdadan.erp.emis.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xdadan.erp.common.annotation.Excel;
import com.xdadan.erp.common.core.domain.BaseEntity;
import com.xdadan.erp.common.core.domain.TreeEntity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* @ClassName EmisQuotePrice
* @Description 费用报价
* @author linfso
* @date 2024-01-12 08:40:05
*/
@Data
public class EmisQuotePrice extends BaseEntity
{
private static final long serialVersionUID = 1L;
/* 序号 */
private Long quoteId;
/* 报价名称 */
private String quoteName;
/* 报价编码 */
private String quoteCode;
/* 使用站点代码 */
private String useSiteCode;
/* 使用站点名称 */
private String useSite;
/* 所属线路代码 */
private String transLineCode;
/* 所属线路名称 */
private String transLine;
/* 费用类型 运输费 */
private String feeType;
/* 产品类型代码 */
private String prodCode;
/* 产品类型名称 */
private String prodName;
/* soon_piece_type */
private String soonPieceType;
/* 录入付款类型 */
private String recPayType;
/* 计费类型 0-重量计费 1-体积计费 */
private String billType;
/* 其他类型1 */
private String otherType1;
/* 其他类型2 */
private String otherType2;
/* 取重方式 */
private String carryType;
/* 启用状态 0-启用 1-停用 */
private Integer status;
/* 派件区域 */
private String dispAreaId;
/* 派件区域站点 */
private String dispAreaSite;
/* 派件区域名称 */
private String dispAreaName;
/* 派件区域站点id */
private String dispAreaSiteId;
/* 寄件区域 */
private String sendAreaId;
/* 寄件区域名称 */
private String sendAreaName;
/* 寄件区域站点列表 */
private String sendAreaSite;
/* 寄件区域站点列表 */
private String sendAreaSiteId;
/* carries_number */
private String carriesNumber;
/* discards_number */
private String discardsNumber;
/* 最低价格 */
private BigDecimal leastPrice;
/* 价格取值 */
private String priceType;
/* 开始日期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startDate;
/* 结束日期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date endDate;
/* 优先级 */
private Integer priorityLevel;
/* 创建网点 */
private String createSite;
/* 更新网点 */
private String updateSite;
}

View File

@ -0,0 +1,60 @@
/**
* @Project: emis
* @Title: EmisQuoteSendArea.java
* @author linfso
* @date 2024-01-12 08:40:05
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 寄件区域 实体类 </p>
*/
package com.xdadan.erp.emis.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xdadan.erp.common.annotation.Excel;
import com.xdadan.erp.common.core.domain.BaseEntity;
import com.xdadan.erp.common.core.domain.TreeEntity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* @ClassName EmisQuoteSendArea
* @Description 寄件区域
* @author linfso
* @date 2024-01-12 08:40:05
*/
@Data
public class EmisQuoteSendArea extends BaseEntity
{
private static final long serialVersionUID = 1L;
/* 序号 */
private Long areaId;
/* 区域名称 */
private String areaName;
/* 使用站点名称 */
private String useSite;
/* 使用站点代码 */
private String useSiteCode;
/* 区域站点列表 */
private String areaSite;
/* 区域站点列表 */
private String areaSiteId;
/* 费用类型 */
private String feeType;
/* 区域类型 */
private String areaType;
/* 同步类型 */
private String sync;
/* 启用状态 0-启用 1-停用 */
private Integer status;
/* 创建网点 */
private String createSite;
/* 更新网点 */
private String updateSite;
}

View File

@ -0,0 +1,70 @@
/**
* @Project: emis
* @Title: EmisQuoteDispAreaMapper.java
* @author linfso
* @date 2024-01-12 08:40:03
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 派件区域 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.emis.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.emis.domain.EmisQuoteDispArea;
/**
* @ClassName EmisQuoteDispAreaMapper
* @Description <p> 派件区域 Mapper 接口 </p>
* @author linfso
* @date 2024-01-12 08:40:03
*/
public interface EmisQuoteDispAreaMapper extends BaseMapper<EmisQuoteDispArea>
{
/**
* 主键查询
* @param areaId
* @return
*/
public EmisQuoteDispArea selectEmisQuoteDispAreaByAreaId(Long areaId);
/**
* 查询列表
*
* @param emisQuoteDispArea
* @return 集合
*/
public List<EmisQuoteDispArea> selectEmisQuoteDispAreaList(EmisQuoteDispArea emisQuoteDispArea);
/**
* 新增
*
* @param emisQuoteDispArea
* @return
*/
public int insertEmisQuoteDispArea(EmisQuoteDispArea emisQuoteDispArea);
/**
* 修改
*
* @param emisQuoteDispArea
* @return
*/
public int updateEmisQuoteDispArea(EmisQuoteDispArea emisQuoteDispArea);
/**
* 删除
*
* @param areaId 主键
* @return 结果
*/
public int deleteEmisQuoteDispAreaByAreaId(Long areaId);
/**
* 批量删除
*
* @param areaIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisQuoteDispAreaByAreaIds(Long[] areaIds);
}

View File

@ -0,0 +1,70 @@
/**
* @Project: emis
* @Title: EmisQuoteExpressionMapper.java
* @author linfso
* @date 2024-01-12 08:40:04
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 费用计算表达式 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.emis.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.emis.domain.EmisQuoteExpression;
/**
* @ClassName EmisQuoteExpressionMapper
* @Description <p> 费用计算表达式 Mapper 接口 </p>
* @author linfso
* @date 2024-01-12 08:40:04
*/
public interface EmisQuoteExpressionMapper extends BaseMapper<EmisQuoteExpression>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisQuoteExpression selectEmisQuoteExpressionById(Long id);
/**
* 查询列表
*
* @param emisQuoteExpression
* @return 集合
*/
public List<EmisQuoteExpression> selectEmisQuoteExpressionList(EmisQuoteExpression emisQuoteExpression);
/**
* 新增
*
* @param emisQuoteExpression
* @return
*/
public int insertEmisQuoteExpression(EmisQuoteExpression emisQuoteExpression);
/**
* 修改
*
* @param emisQuoteExpression
* @return
*/
public int updateEmisQuoteExpression(EmisQuoteExpression emisQuoteExpression);
/**
* 删除
*
* @param id 主键
* @return 结果
*/
public int deleteEmisQuoteExpressionById(Long id);
/**
* 批量删除
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisQuoteExpressionByIds(Long[] ids);
}

View File

@ -0,0 +1,70 @@
/**
* @Project: emis
* @Title: EmisQuotePriceMapper.java
* @author linfso
* @date 2024-01-12 08:40:05
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 费用报价 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.emis.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.emis.domain.EmisQuotePrice;
/**
* @ClassName EmisQuotePriceMapper
* @Description <p> 费用报价 Mapper 接口 </p>
* @author linfso
* @date 2024-01-12 08:40:05
*/
public interface EmisQuotePriceMapper extends BaseMapper<EmisQuotePrice>
{
/**
* 主键查询
* @param quoteId
* @return
*/
public EmisQuotePrice selectEmisQuotePriceByQuoteId(Long quoteId);
/**
* 查询列表
*
* @param emisQuotePrice
* @return 集合
*/
public List<EmisQuotePrice> selectEmisQuotePriceList(EmisQuotePrice emisQuotePrice);
/**
* 新增
*
* @param emisQuotePrice
* @return
*/
public int insertEmisQuotePrice(EmisQuotePrice emisQuotePrice);
/**
* 修改
*
* @param emisQuotePrice
* @return
*/
public int updateEmisQuotePrice(EmisQuotePrice emisQuotePrice);
/**
* 删除
*
* @param quoteId 主键
* @return 结果
*/
public int deleteEmisQuotePriceByQuoteId(Long quoteId);
/**
* 批量删除
*
* @param quoteIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisQuotePriceByQuoteIds(Long[] quoteIds);
}

View File

@ -0,0 +1,70 @@
/**
* @Project: emis
* @Title: EmisQuoteSendAreaMapper.java
* @author linfso
* @date 2024-01-12 08:40:05
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
* @version v1.0
* @Description: <p> 寄件区域 Mapper 接口 </p>
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
*/
package com.xdadan.erp.emis.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.emis.domain.EmisQuoteSendArea;
/**
* @ClassName EmisQuoteSendAreaMapper
* @Description <p> 寄件区域 Mapper 接口 </p>
* @author linfso
* @date 2024-01-12 08:40:05
*/
public interface EmisQuoteSendAreaMapper extends BaseMapper<EmisQuoteSendArea>
{
/**
* 主键查询
* @param areaId
* @return
*/
public EmisQuoteSendArea selectEmisQuoteSendAreaByAreaId(Long areaId);
/**
* 查询列表
*
* @param emisQuoteSendArea
* @return 集合
*/
public List<EmisQuoteSendArea> selectEmisQuoteSendAreaList(EmisQuoteSendArea emisQuoteSendArea);
/**
* 新增
*
* @param emisQuoteSendArea
* @return
*/
public int insertEmisQuoteSendArea(EmisQuoteSendArea emisQuoteSendArea);
/**
* 修改
*
* @param emisQuoteSendArea
* @return
*/
public int updateEmisQuoteSendArea(EmisQuoteSendArea emisQuoteSendArea);
/**
* 删除
*
* @param areaId 主键
* @return 结果
*/
public int deleteEmisQuoteSendAreaByAreaId(Long areaId);
/**
* 批量删除
*
* @param areaIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteEmisQuoteSendAreaByAreaIds(Long[] areaIds);
}

View File

@ -0,0 +1,69 @@
/**
* @Project: emis
* @Title: EmisQuoteDispAreaService.java
* @author linfso
* @date 2024-01-12 08:40:03
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 派件区域 服务类接口 </p>
*/
package com.xdadan.erp.emis.service;
import java.util.List;
import com.xdadan.erp.emis.domain.EmisQuoteDispArea;
/**
* @ClassName EmisQuoteDispAreaService
* @Description 派件区域
* @author linfso
* @date 2024-01-12 08:40:03
*/
public interface IEmisQuoteDispAreaService
{
/**
* 主键查询
* @param areaId
* @return
*/
public EmisQuoteDispArea selectEmisQuoteDispAreaByAreaId(Long areaId);
/**
* 查询派件区域列表
*
* @param emisQuoteDispArea 派件区域
* @return 派件区域集合
*/
public List<EmisQuoteDispArea> selectEmisQuoteDispAreaList(EmisQuoteDispArea emisQuoteDispArea);
/**
* 新增派件区域
*
* @param emisQuoteDispArea 派件区域
* @return 结果
*/
public int insertEmisQuoteDispArea(EmisQuoteDispArea emisQuoteDispArea);
/**
* 修改派件区域
*
* @param emisQuoteDispArea 派件区域
* @return 结果
*/
public int updateEmisQuoteDispArea(EmisQuoteDispArea emisQuoteDispArea);
/**
* 批量删除派件区域
*
* @param areaIds 需要删除的派件区域主键集合
* @return 结果
*/
public int deleteEmisQuoteDispAreaByAreaIds(Long[] areaIds);
/**
* 删除派件区域信息
*
* @param areaId 派件区域主键
* @return 结果
*/
public int deleteEmisQuoteDispAreaByAreaId(Long areaId);
}

View File

@ -0,0 +1,69 @@
/**
* @Project: emis
* @Title: EmisQuoteExpressionService.java
* @author linfso
* @date 2024-01-12 08:40:04
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 费用计算表达式 服务类接口 </p>
*/
package com.xdadan.erp.emis.service;
import java.util.List;
import com.xdadan.erp.emis.domain.EmisQuoteExpression;
/**
* @ClassName EmisQuoteExpressionService
* @Description 费用计算表达式
* @author linfso
* @date 2024-01-12 08:40:04
*/
public interface IEmisQuoteExpressionService
{
/**
* 主键查询
* @param id
* @return
*/
public EmisQuoteExpression selectEmisQuoteExpressionById(Long id);
/**
* 查询费用计算表达式列表
*
* @param emisQuoteExpression 费用计算表达式
* @return 费用计算表达式集合
*/
public List<EmisQuoteExpression> selectEmisQuoteExpressionList(EmisQuoteExpression emisQuoteExpression);
/**
* 新增费用计算表达式
*
* @param emisQuoteExpression 费用计算表达式
* @return 结果
*/
public int insertEmisQuoteExpression(EmisQuoteExpression emisQuoteExpression);
/**
* 修改费用计算表达式
*
* @param emisQuoteExpression 费用计算表达式
* @return 结果
*/
public int updateEmisQuoteExpression(EmisQuoteExpression emisQuoteExpression);
/**
* 批量删除费用计算表达式
*
* @param ids 需要删除的费用计算表达式主键集合
* @return 结果
*/
public int deleteEmisQuoteExpressionByIds(Long[] ids);
/**
* 删除费用计算表达式信息
*
* @param id 费用计算表达式主键
* @return 结果
*/
public int deleteEmisQuoteExpressionById(Long id);
}

View File

@ -0,0 +1,69 @@
/**
* @Project: emis
* @Title: EmisQuotePriceService.java
* @author linfso
* @date 2024-01-12 08:40:05
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 费用报价 服务类接口 </p>
*/
package com.xdadan.erp.emis.service;
import java.util.List;
import com.xdadan.erp.emis.domain.EmisQuotePrice;
/**
* @ClassName EmisQuotePriceService
* @Description 费用报价
* @author linfso
* @date 2024-01-12 08:40:05
*/
public interface IEmisQuotePriceService
{
/**
* 主键查询
* @param quoteId
* @return
*/
public EmisQuotePrice selectEmisQuotePriceByQuoteId(Long quoteId);
/**
* 查询费用报价列表
*
* @param emisQuotePrice 费用报价
* @return 费用报价集合
*/
public List<EmisQuotePrice> selectEmisQuotePriceList(EmisQuotePrice emisQuotePrice);
/**
* 新增费用报价
*
* @param emisQuotePrice 费用报价
* @return 结果
*/
public int insertEmisQuotePrice(EmisQuotePrice emisQuotePrice);
/**
* 修改费用报价
*
* @param emisQuotePrice 费用报价
* @return 结果
*/
public int updateEmisQuotePrice(EmisQuotePrice emisQuotePrice);
/**
* 批量删除费用报价
*
* @param quoteIds 需要删除的费用报价主键集合
* @return 结果
*/
public int deleteEmisQuotePriceByQuoteIds(Long[] quoteIds);
/**
* 删除费用报价信息
*
* @param quoteId 费用报价主键
* @return 结果
*/
public int deleteEmisQuotePriceByQuoteId(Long quoteId);
}

View File

@ -0,0 +1,69 @@
/**
* @Project: emis
* @Title: EmisQuoteSendAreaService.java
* @author linfso
* @date 2024-01-12 08:40:05
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 寄件区域 服务类接口 </p>
*/
package com.xdadan.erp.emis.service;
import java.util.List;
import com.xdadan.erp.emis.domain.EmisQuoteSendArea;
/**
* @ClassName EmisQuoteSendAreaService
* @Description 寄件区域
* @author linfso
* @date 2024-01-12 08:40:05
*/
public interface IEmisQuoteSendAreaService
{
/**
* 主键查询
* @param areaId
* @return
*/
public EmisQuoteSendArea selectEmisQuoteSendAreaByAreaId(Long areaId);
/**
* 查询寄件区域列表
*
* @param emisQuoteSendArea 寄件区域
* @return 寄件区域集合
*/
public List<EmisQuoteSendArea> selectEmisQuoteSendAreaList(EmisQuoteSendArea emisQuoteSendArea);
/**
* 新增寄件区域
*
* @param emisQuoteSendArea 寄件区域
* @return 结果
*/
public int insertEmisQuoteSendArea(EmisQuoteSendArea emisQuoteSendArea);
/**
* 修改寄件区域
*
* @param emisQuoteSendArea 寄件区域
* @return 结果
*/
public int updateEmisQuoteSendArea(EmisQuoteSendArea emisQuoteSendArea);
/**
* 批量删除寄件区域
*
* @param areaIds 需要删除的寄件区域主键集合
* @return 结果
*/
public int deleteEmisQuoteSendAreaByAreaIds(Long[] areaIds);
/**
* 删除寄件区域信息
*
* @param areaId 寄件区域主键
* @return 结果
*/
public int deleteEmisQuoteSendAreaByAreaId(Long areaId);
}

View File

@ -0,0 +1,104 @@
/**
* @Project: emis
* @Title: EmisQuoteDispAreaServiceImpl.java
* @author linfso
* @date 2024-01-12 08:40:04
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 派件区域 实体类 </p>
*/
package com.xdadan.erp.emis.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xdadan.erp.emis.domain.EmisQuoteDispArea;
import com.xdadan.erp.emis.mapper.EmisQuoteDispAreaMapper;
import com.xdadan.erp.emis.service.IEmisQuoteDispAreaService;
/**
* 派件区域Service业务层处理
*
* @author linfso
* @date 2024-01-12 08:40:04
*/
@Service
public class EmisQuoteDispAreaServiceImpl implements IEmisQuoteDispAreaService
{
@Autowired
private EmisQuoteDispAreaMapper emisQuoteDispAreaMapper;
/**
* 查询派件区域
*
* @param areaId 派件区域主键
* @return 派件区域
*/
@Override
public EmisQuoteDispArea selectEmisQuoteDispAreaByAreaId(Long areaId)
{
return emisQuoteDispAreaMapper.selectEmisQuoteDispAreaByAreaId(areaId);
}
/**
* 查询派件区域列表
*
* @param emisQuoteDispArea 派件区域
* @return 派件区域
*/
@Override
public List<EmisQuoteDispArea> selectEmisQuoteDispAreaList(EmisQuoteDispArea emisQuoteDispArea)
{
return emisQuoteDispAreaMapper.selectEmisQuoteDispAreaList(emisQuoteDispArea);
}
/**
* 新增派件区域
*
* @param emisQuoteDispArea 派件区域
* @return 结果
*/
@Override
public int insertEmisQuoteDispArea(EmisQuoteDispArea emisQuoteDispArea)
{
return emisQuoteDispAreaMapper.insertEmisQuoteDispArea(emisQuoteDispArea);
}
/**
* 修改派件区域
*
* @param emisQuoteDispArea 派件区域
* @return 结果
*/
@Override
public int updateEmisQuoteDispArea(EmisQuoteDispArea emisQuoteDispArea)
{
return emisQuoteDispAreaMapper.updateEmisQuoteDispArea(emisQuoteDispArea);
}
/**
* 批量删除派件区域
*
* @param areaIds 需要删除的派件区域主键
* @return 结果
*/
@Override
public int deleteEmisQuoteDispAreaByAreaIds(Long[] areaIds)
{
return emisQuoteDispAreaMapper.deleteEmisQuoteDispAreaByAreaIds(areaIds);
}
/**
* 删除派件区域信息
*
* @param areaId 派件区域主键
* @return 结果
*/
@Override
public int deleteEmisQuoteDispAreaByAreaId(Long areaId)
{
return emisQuoteDispAreaMapper.deleteEmisQuoteDispAreaByAreaId(areaId);
}
}

View File

@ -0,0 +1,104 @@
/**
* @Project: emis
* @Title: EmisQuoteExpressionServiceImpl.java
* @author linfso
* @date 2024-01-12 08:40:04
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 费用计算表达式 实体类 </p>
*/
package com.xdadan.erp.emis.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xdadan.erp.emis.domain.EmisQuoteExpression;
import com.xdadan.erp.emis.mapper.EmisQuoteExpressionMapper;
import com.xdadan.erp.emis.service.IEmisQuoteExpressionService;
/**
* 费用计算表达式Service业务层处理
*
* @author linfso
* @date 2024-01-12 08:40:04
*/
@Service
public class EmisQuoteExpressionServiceImpl implements IEmisQuoteExpressionService
{
@Autowired
private EmisQuoteExpressionMapper emisQuoteExpressionMapper;
/**
* 查询费用计算表达式
*
* @param id 费用计算表达式主键
* @return 费用计算表达式
*/
@Override
public EmisQuoteExpression selectEmisQuoteExpressionById(Long id)
{
return emisQuoteExpressionMapper.selectEmisQuoteExpressionById(id);
}
/**
* 查询费用计算表达式列表
*
* @param emisQuoteExpression 费用计算表达式
* @return 费用计算表达式
*/
@Override
public List<EmisQuoteExpression> selectEmisQuoteExpressionList(EmisQuoteExpression emisQuoteExpression)
{
return emisQuoteExpressionMapper.selectEmisQuoteExpressionList(emisQuoteExpression);
}
/**
* 新增费用计算表达式
*
* @param emisQuoteExpression 费用计算表达式
* @return 结果
*/
@Override
public int insertEmisQuoteExpression(EmisQuoteExpression emisQuoteExpression)
{
return emisQuoteExpressionMapper.insertEmisQuoteExpression(emisQuoteExpression);
}
/**
* 修改费用计算表达式
*
* @param emisQuoteExpression 费用计算表达式
* @return 结果
*/
@Override
public int updateEmisQuoteExpression(EmisQuoteExpression emisQuoteExpression)
{
return emisQuoteExpressionMapper.updateEmisQuoteExpression(emisQuoteExpression);
}
/**
* 批量删除费用计算表达式
*
* @param ids 需要删除的费用计算表达式主键
* @return 结果
*/
@Override
public int deleteEmisQuoteExpressionByIds(Long[] ids)
{
return emisQuoteExpressionMapper.deleteEmisQuoteExpressionByIds(ids);
}
/**
* 删除费用计算表达式信息
*
* @param id 费用计算表达式主键
* @return 结果
*/
@Override
public int deleteEmisQuoteExpressionById(Long id)
{
return emisQuoteExpressionMapper.deleteEmisQuoteExpressionById(id);
}
}

View File

@ -0,0 +1,104 @@
/**
* @Project: emis
* @Title: EmisQuotePriceServiceImpl.java
* @author linfso
* @date 2024-01-12 08:40:05
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 费用报价 实体类 </p>
*/
package com.xdadan.erp.emis.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xdadan.erp.emis.domain.EmisQuotePrice;
import com.xdadan.erp.emis.mapper.EmisQuotePriceMapper;
import com.xdadan.erp.emis.service.IEmisQuotePriceService;
/**
* 费用报价Service业务层处理
*
* @author linfso
* @date 2024-01-12 08:40:05
*/
@Service
public class EmisQuotePriceServiceImpl implements IEmisQuotePriceService
{
@Autowired
private EmisQuotePriceMapper emisQuotePriceMapper;
/**
* 查询费用报价
*
* @param quoteId 费用报价主键
* @return 费用报价
*/
@Override
public EmisQuotePrice selectEmisQuotePriceByQuoteId(Long quoteId)
{
return emisQuotePriceMapper.selectEmisQuotePriceByQuoteId(quoteId);
}
/**
* 查询费用报价列表
*
* @param emisQuotePrice 费用报价
* @return 费用报价
*/
@Override
public List<EmisQuotePrice> selectEmisQuotePriceList(EmisQuotePrice emisQuotePrice)
{
return emisQuotePriceMapper.selectEmisQuotePriceList(emisQuotePrice);
}
/**
* 新增费用报价
*
* @param emisQuotePrice 费用报价
* @return 结果
*/
@Override
public int insertEmisQuotePrice(EmisQuotePrice emisQuotePrice)
{
return emisQuotePriceMapper.insertEmisQuotePrice(emisQuotePrice);
}
/**
* 修改费用报价
*
* @param emisQuotePrice 费用报价
* @return 结果
*/
@Override
public int updateEmisQuotePrice(EmisQuotePrice emisQuotePrice)
{
return emisQuotePriceMapper.updateEmisQuotePrice(emisQuotePrice);
}
/**
* 批量删除费用报价
*
* @param quoteIds 需要删除的费用报价主键
* @return 结果
*/
@Override
public int deleteEmisQuotePriceByQuoteIds(Long[] quoteIds)
{
return emisQuotePriceMapper.deleteEmisQuotePriceByQuoteIds(quoteIds);
}
/**
* 删除费用报价信息
*
* @param quoteId 费用报价主键
* @return 结果
*/
@Override
public int deleteEmisQuotePriceByQuoteId(Long quoteId)
{
return emisQuotePriceMapper.deleteEmisQuotePriceByQuoteId(quoteId);
}
}

View File

@ -0,0 +1,104 @@
/**
* @Project: emis
* @Title: EmisQuoteSendAreaServiceImpl.java
* @author linfso
* @date 2024-01-12 08:40:05
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @Description: <p> 寄件区域 实体类 </p>
*/
package com.xdadan.erp.emis.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xdadan.erp.emis.domain.EmisQuoteSendArea;
import com.xdadan.erp.emis.mapper.EmisQuoteSendAreaMapper;
import com.xdadan.erp.emis.service.IEmisQuoteSendAreaService;
/**
* 寄件区域Service业务层处理
*
* @author linfso
* @date 2024-01-12 08:40:05
*/
@Service
public class EmisQuoteSendAreaServiceImpl implements IEmisQuoteSendAreaService
{
@Autowired
private EmisQuoteSendAreaMapper emisQuoteSendAreaMapper;
/**
* 查询寄件区域
*
* @param areaId 寄件区域主键
* @return 寄件区域
*/
@Override
public EmisQuoteSendArea selectEmisQuoteSendAreaByAreaId(Long areaId)
{
return emisQuoteSendAreaMapper.selectEmisQuoteSendAreaByAreaId(areaId);
}
/**
* 查询寄件区域列表
*
* @param emisQuoteSendArea 寄件区域
* @return 寄件区域
*/
@Override
public List<EmisQuoteSendArea> selectEmisQuoteSendAreaList(EmisQuoteSendArea emisQuoteSendArea)
{
return emisQuoteSendAreaMapper.selectEmisQuoteSendAreaList(emisQuoteSendArea);
}
/**
* 新增寄件区域
*
* @param emisQuoteSendArea 寄件区域
* @return 结果
*/
@Override
public int insertEmisQuoteSendArea(EmisQuoteSendArea emisQuoteSendArea)
{
return emisQuoteSendAreaMapper.insertEmisQuoteSendArea(emisQuoteSendArea);
}
/**
* 修改寄件区域
*
* @param emisQuoteSendArea 寄件区域
* @return 结果
*/
@Override
public int updateEmisQuoteSendArea(EmisQuoteSendArea emisQuoteSendArea)
{
return emisQuoteSendAreaMapper.updateEmisQuoteSendArea(emisQuoteSendArea);
}
/**
* 批量删除寄件区域
*
* @param areaIds 需要删除的寄件区域主键
* @return 结果
*/
@Override
public int deleteEmisQuoteSendAreaByAreaIds(Long[] areaIds)
{
return emisQuoteSendAreaMapper.deleteEmisQuoteSendAreaByAreaIds(areaIds);
}
/**
* 删除寄件区域信息
*
* @param areaId 寄件区域主键
* @return 结果
*/
@Override
public int deleteEmisQuoteSendAreaByAreaId(Long areaId)
{
return emisQuoteSendAreaMapper.deleteEmisQuoteSendAreaByAreaId(areaId);
}
}

View File

@ -0,0 +1,146 @@
<?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.xdadan.erp.emis.mapper.EmisQuoteDispAreaMapper">
<resultMap type="EmisQuoteDispArea" id="EmisQuoteDispAreaResult">
<result property="areaId" column="area_id" />
<result property="areaName" column="area_name" />
<result property="useSite" column="use_site" />
<result property="useSiteCode" column="use_site_code" />
<result property="areaSite" column="area_site" />
<result property="areaSiteId" column="area_site_id" />
<result property="feeType" column="fee_type" />
<result property="areaType" column="area_type" />
<result property="sync" column="sync" />
<result property="status" column="status" />
<result property="remark" column="remark" />
<result property="tenantId" column="tenant_id" />
<result property="delFlag" column="del_flag" />
<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="createSite" column="create_site" />
<result property="updateSite" column="update_site" />
</resultMap>
<sql id="selectEmisQuoteDispAreaVo">
select area_id, area_name, use_site, use_site_code, area_site, area_site_id, fee_type, area_type, sync, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_quote_disp_area
</sql>
<select id="selectEmisQuoteDispAreaList" parameterType="EmisQuoteDispArea" resultMap="EmisQuoteDispAreaResult">
<include refid="selectEmisQuoteDispAreaVo"/>
<where>
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if>
<if test="useSite != null and useSite != ''"> and use_site like concat('%', #{useSite}, '%')</if>
<if test="useSiteCode != null and useSiteCode != ''"> and use_site_code like concat('%', #{useSiteCode}, '%')</if>
<if test="areaSite != null and areaSite != ''"> and area_site like concat('%', #{areaSite}, '%')</if>
<if test="areaSiteId != null and areaSiteId != ''"> and area_site_id like concat('%', #{areaSiteId}, '%')</if>
<if test="feeType != null and feeType != ''"> and fee_type like concat('%', #{feeType}, '%')</if>
<if test="areaType != null and areaType != ''"> and area_type like concat('%', #{areaType}, '%')</if>
<if test="sync != null and sync != ''"> and sync like concat('%', #{sync}, '%')</if>
<if test="status != null "> and status = #{status}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
</where>
order by create_time desc
</select>
<select id="selectEmisQuoteDispAreaByAreaId" parameterType="Long" resultMap="EmisQuoteDispAreaResult">
select area_id, area_name, use_site, use_site_code, area_site, area_site_id, fee_type, area_type, sync, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_quote_disp_area a
where a.area_id = #{areaId}
</select>
<insert id="insertEmisQuoteDispArea" parameterType="EmisQuoteDispArea">
insert into emis_quote_disp_area
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="areaId != null">area_id,</if>
<if test="areaName != null and areaName != ''">area_name,</if>
<if test="useSite != null and useSite != ''">use_site,</if>
<if test="useSiteCode != null and useSiteCode != ''">use_site_code,</if>
<if test="areaSite != null and areaSite != ''">area_site,</if>
<if test="areaSiteId != null and areaSiteId != ''">area_site_id,</if>
<if test="feeType != null and feeType != ''">fee_type,</if>
<if test="areaType != null and areaType != ''">area_type,</if>
<if test="sync != null and sync != ''">sync,</if>
<if test="status != null">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="areaId != null">#{areaId},</if>
<if test="areaName != null and areaName != ''">#{areaName},</if>
<if test="useSite != null and useSite != ''">#{useSite},</if>
<if test="useSiteCode != null and useSiteCode != ''">#{useSiteCode},</if>
<if test="areaSite != null and areaSite != ''">#{areaSite},</if>
<if test="areaSiteId != null and areaSiteId != ''">#{areaSiteId},</if>
<if test="feeType != null and feeType != ''">#{feeType},</if>
<if test="areaType != null and areaType != ''">#{areaType},</if>
<if test="sync != null and sync != ''">#{sync},</if>
<if test="status != null">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
</trim>
</insert>
<update id="updateEmisQuoteDispArea" parameterType="EmisQuoteDispArea">
update emis_quote_disp_area
<trim prefix="SET" suffixOverrides=",">
<if test="areaName != null and areaName != ''">area_name = #{areaName},</if>
<if test="useSite != null and useSite != ''">use_site = #{useSite},</if>
<if test="useSiteCode != null and useSiteCode != ''">use_site_code = #{useSiteCode},</if>
<if test="areaSite != null and areaSite != ''">area_site = #{areaSite},</if>
<if test="areaSiteId != null and areaSiteId != ''">area_site_id = #{areaSiteId},</if>
<if test="feeType != null and feeType != ''">fee_type = #{feeType},</if>
<if test="areaType != null and areaType != ''">area_type = #{areaType},</if>
<if test="sync != null and sync != ''">sync = #{sync},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
</trim>
where area_id = #{areaId}
</update>
<delete id="deleteEmisQuoteDispAreaByAreaId" parameterType="Long">
delete from emis_quote_disp_area where area_id = #{areaId}
</delete>
<delete id="deleteEmisQuoteDispAreaByAreaIds" parameterType="String">
delete from emis_quote_disp_area where area_id in
<foreach item="areaId" collection="array" open="(" separator="," close=")">
#{areaId}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,156 @@
<?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.xdadan.erp.emis.mapper.EmisQuoteExpressionMapper">
<resultMap type="EmisQuoteExpression" id="EmisQuoteExpressionResult">
<result property="id" column="id" />
<result property="quoteId" column="quote_id" />
<result property="quoteSequence" column="quote_sequence" />
<result property="useSiteCode" column="use_site_code" />
<result property="useSite" column="use_site" />
<result property="startWeight" column="start_weight" />
<result property="endWeight" column="end_weight" />
<result property="initialWeight" column="initial_weight" />
<result property="additionalWeight" column="additional_weight" />
<result property="conditionExpression" column="condition_expression" />
<result property="calculateExpression" column="calculate_expression" />
<result property="status" column="status" />
<result property="remark" column="remark" />
<result property="tenantId" column="tenant_id" />
<result property="delFlag" column="del_flag" />
<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="createSite" column="create_site" />
<result property="updateSite" column="update_site" />
</resultMap>
<sql id="selectEmisQuoteExpressionVo">
select id, quote_id, quote_sequence, use_site_code, use_site, start_weight, end_weight, initial_weight, additional_weight, condition_expression, calculate_expression, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_quote_expression
</sql>
<select id="selectEmisQuoteExpressionList" parameterType="EmisQuoteExpression" resultMap="EmisQuoteExpressionResult">
<include refid="selectEmisQuoteExpressionVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="quoteId != null "> and quote_id = #{quoteId}</if>
<if test="quoteSequence != null "> and quote_sequence = #{quoteSequence}</if>
<if test="useSiteCode != null and useSiteCode != ''"> and use_site_code like concat('%', #{useSiteCode}, '%')</if>
<if test="useSite != null and useSite != ''"> and use_site like concat('%', #{useSite}, '%')</if>
<if test="startWeight != null "> and start_weight = #{startWeight}</if>
<if test="endWeight != null "> and end_weight = #{endWeight}</if>
<if test="initialWeight != null "> and initial_weight = #{initialWeight}</if>
<if test="additionalWeight != null "> and additional_weight = #{additionalWeight}</if>
<if test="conditionExpression != null and conditionExpression != ''"> and condition_expression like concat('%', #{conditionExpression}, '%')</if>
<if test="calculateExpression != null and calculateExpression != ''"> and calculate_expression like concat('%', #{calculateExpression}, '%')</if>
<if test="status != null "> and status = #{status}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
</where>
order by create_time desc
</select>
<select id="selectEmisQuoteExpressionById" parameterType="Long" resultMap="EmisQuoteExpressionResult">
select id, quote_id, quote_sequence, use_site_code, use_site, start_weight, end_weight, initial_weight, additional_weight, condition_expression, calculate_expression, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_quote_expression a
where a.id = #{id}
</select>
<insert id="insertEmisQuoteExpression" parameterType="EmisQuoteExpression">
insert into emis_quote_expression
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="quoteId != null">quote_id,</if>
<if test="quoteSequence != null">quote_sequence,</if>
<if test="useSiteCode != null and useSiteCode != ''">use_site_code,</if>
<if test="useSite != null and useSite != ''">use_site,</if>
<if test="startWeight != null">start_weight,</if>
<if test="endWeight != null">end_weight,</if>
<if test="initialWeight != null">initial_weight,</if>
<if test="additionalWeight != null">additional_weight,</if>
<if test="conditionExpression != null and conditionExpression != ''">condition_expression,</if>
<if test="calculateExpression != null and calculateExpression != ''">calculate_expression,</if>
<if test="status != null">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="quoteId != null">#{quoteId},</if>
<if test="quoteSequence != null">#{quoteSequence},</if>
<if test="useSiteCode != null and useSiteCode != ''">#{useSiteCode},</if>
<if test="useSite != null and useSite != ''">#{useSite},</if>
<if test="startWeight != null">#{startWeight},</if>
<if test="endWeight != null">#{endWeight},</if>
<if test="initialWeight != null">#{initialWeight},</if>
<if test="additionalWeight != null">#{additionalWeight},</if>
<if test="conditionExpression != null and conditionExpression != ''">#{conditionExpression},</if>
<if test="calculateExpression != null and calculateExpression != ''">#{calculateExpression},</if>
<if test="status != null">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
</trim>
</insert>
<update id="updateEmisQuoteExpression" parameterType="EmisQuoteExpression">
update emis_quote_expression
<trim prefix="SET" suffixOverrides=",">
<if test="quoteId != null">quote_id = #{quoteId},</if>
<if test="quoteSequence != null">quote_sequence = #{quoteSequence},</if>
<if test="useSiteCode != null and useSiteCode != ''">use_site_code = #{useSiteCode},</if>
<if test="useSite != null and useSite != ''">use_site = #{useSite},</if>
<if test="startWeight != null">start_weight = #{startWeight},</if>
<if test="endWeight != null">end_weight = #{endWeight},</if>
<if test="initialWeight != null">initial_weight = #{initialWeight},</if>
<if test="additionalWeight != null">additional_weight = #{additionalWeight},</if>
<if test="conditionExpression != null and conditionExpression != ''">condition_expression = #{conditionExpression},</if>
<if test="calculateExpression != null and calculateExpression != ''">calculate_expression = #{calculateExpression},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteEmisQuoteExpressionById" parameterType="Long">
delete from emis_quote_expression where id = #{id}
</delete>
<delete id="deleteEmisQuoteExpressionByIds" parameterType="String">
delete from emis_quote_expression where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,256 @@
<?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.xdadan.erp.emis.mapper.EmisQuotePriceMapper">
<resultMap type="EmisQuotePrice" id="EmisQuotePriceResult">
<result property="quoteId" column="quote_id" />
<result property="quoteName" column="quote_name" />
<result property="quoteCode" column="quote_code" />
<result property="useSiteCode" column="use_site_code" />
<result property="useSite" column="use_site" />
<result property="transLineCode" column="trans_line_code" />
<result property="transLine" column="trans_line" />
<result property="feeType" column="fee_type" />
<result property="prodCode" column="prod_code" />
<result property="prodName" column="prod_name" />
<result property="soonPieceType" column="soon_piece_type" />
<result property="recPayType" column="rec_pay_type" />
<result property="billType" column="bill_type" />
<result property="otherType1" column="other_type1" />
<result property="otherType2" column="other_type2" />
<result property="carryType" column="carry_type" />
<result property="status" column="status" />
<result property="dispAreaId" column="disp_area_id" />
<result property="dispAreaSite" column="disp_area_site" />
<result property="dispAreaName" column="disp_area_name" />
<result property="dispAreaSiteId" column="disp_area_site_id" />
<result property="sendAreaId" column="send_area_id" />
<result property="sendAreaName" column="send_area_name" />
<result property="sendAreaSite" column="send_area_site" />
<result property="sendAreaSiteId" column="send_area_site_id" />
<result property="carriesNumber" column="carries_number" />
<result property="discardsNumber" column="discards_number" />
<result property="leastPrice" column="least_price" />
<result property="priceType" column="price_type" />
<result property="startDate" column="start_date" />
<result property="endDate" column="end_date" />
<result property="priorityLevel" column="priority_level" />
<result property="remark" column="remark" />
<result property="tenantId" column="tenant_id" />
<result property="delFlag" column="del_flag" />
<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="createSite" column="create_site" />
<result property="updateSite" column="update_site" />
</resultMap>
<sql id="selectEmisQuotePriceVo">
select quote_id, quote_name, quote_code, use_site_code, use_site, trans_line_code, trans_line, fee_type, prod_code, prod_name, soon_piece_type, rec_pay_type, bill_type, other_type1, other_type2, carry_type, status, disp_area_id, disp_area_site, disp_area_name, disp_area_site_id, send_area_id, send_area_name, send_area_site, send_area_site_id, carries_number, discards_number, least_price, price_type, start_date, end_date, priority_level, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_quote_price
</sql>
<select id="selectEmisQuotePriceList" parameterType="EmisQuotePrice" resultMap="EmisQuotePriceResult">
<include refid="selectEmisQuotePriceVo"/>
<where>
<if test="quoteId != null "> and quote_id = #{quoteId}</if>
<if test="quoteName != null and quoteName != ''"> and quote_name like concat('%', #{quoteName}, '%')</if>
<if test="quoteCode != null and quoteCode != ''"> and quote_code like concat('%', #{quoteCode}, '%')</if>
<if test="useSiteCode != null and useSiteCode != ''"> and use_site_code like concat('%', #{useSiteCode}, '%')</if>
<if test="useSite != null and useSite != ''"> and use_site like concat('%', #{useSite}, '%')</if>
<if test="transLineCode != null and transLineCode != ''"> and trans_line_code like concat('%', #{transLineCode}, '%')</if>
<if test="transLine != null and transLine != ''"> and trans_line like concat('%', #{transLine}, '%')</if>
<if test="feeType != null and feeType != ''"> and fee_type like concat('%', #{feeType}, '%')</if>
<if test="prodCode != null and prodCode != ''"> and prod_code like concat('%', #{prodCode}, '%')</if>
<if test="prodName != null and prodName != ''"> and prod_name like concat('%', #{prodName}, '%')</if>
<if test="soonPieceType != null and soonPieceType != ''"> and soon_piece_type like concat('%', #{soonPieceType}, '%')</if>
<if test="recPayType != null and recPayType != ''"> and rec_pay_type like concat('%', #{recPayType}, '%')</if>
<if test="billType != null and billType != ''"> and bill_type like concat('%', #{billType}, '%')</if>
<if test="otherType1 != null and otherType1 != ''"> and other_type1 like concat('%', #{otherType1}, '%')</if>
<if test="otherType2 != null and otherType2 != ''"> and other_type2 like concat('%', #{otherType2}, '%')</if>
<if test="carryType != null and carryType != ''"> and carry_type like concat('%', #{carryType}, '%')</if>
<if test="status != null "> and status = #{status}</if>
<if test="dispAreaId != null and dispAreaId != ''"> and disp_area_id like concat('%', #{dispAreaId}, '%')</if>
<if test="dispAreaSite != null and dispAreaSite != ''"> and disp_area_site like concat('%', #{dispAreaSite}, '%')</if>
<if test="dispAreaName != null and dispAreaName != ''"> and disp_area_name like concat('%', #{dispAreaName}, '%')</if>
<if test="dispAreaSiteId != null and dispAreaSiteId != ''"> and disp_area_site_id like concat('%', #{dispAreaSiteId}, '%')</if>
<if test="sendAreaId != null and sendAreaId != ''"> and send_area_id like concat('%', #{sendAreaId}, '%')</if>
<if test="sendAreaName != null and sendAreaName != ''"> and send_area_name like concat('%', #{sendAreaName}, '%')</if>
<if test="sendAreaSite != null and sendAreaSite != ''"> and send_area_site like concat('%', #{sendAreaSite}, '%')</if>
<if test="sendAreaSiteId != null and sendAreaSiteId != ''"> and send_area_site_id like concat('%', #{sendAreaSiteId}, '%')</if>
<if test="carriesNumber != null and carriesNumber != ''"> and carries_number like concat('%', #{carriesNumber}, '%')</if>
<if test="discardsNumber != null and discardsNumber != ''"> and discards_number like concat('%', #{discardsNumber}, '%')</if>
<if test="leastPrice != null "> and least_price = #{leastPrice}</if>
<if test="priceType != null and priceType != ''"> and price_type like concat('%', #{priceType}, '%')</if>
<if test="startDate != null "> and start_date = #{startDate}</if>
<if test="endDate != null "> and end_date = #{endDate}</if>
<if test="priorityLevel != null "> and priority_level = #{priorityLevel}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
</where>
order by create_time desc
</select>
<select id="selectEmisQuotePriceByQuoteId" parameterType="Long" resultMap="EmisQuotePriceResult">
select quote_id, quote_name, quote_code, use_site_code, use_site, trans_line_code, trans_line, fee_type, prod_code, prod_name, soon_piece_type, rec_pay_type, bill_type, other_type1, other_type2, carry_type, status, disp_area_id, disp_area_site, disp_area_name, disp_area_site_id, send_area_id, send_area_name, send_area_site, send_area_site_id, carries_number, discards_number, least_price, price_type, start_date, end_date, priority_level, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_quote_price a
where a.quote_id = #{quoteId}
</select>
<insert id="insertEmisQuotePrice" parameterType="EmisQuotePrice">
insert into emis_quote_price
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="quoteId != null">quote_id,</if>
<if test="quoteName != null and quoteName != ''">quote_name,</if>
<if test="quoteCode != null and quoteCode != ''">quote_code,</if>
<if test="useSiteCode != null and useSiteCode != ''">use_site_code,</if>
<if test="useSite != null and useSite != ''">use_site,</if>
<if test="transLineCode != null and transLineCode != ''">trans_line_code,</if>
<if test="transLine != null and transLine != ''">trans_line,</if>
<if test="feeType != null and feeType != ''">fee_type,</if>
<if test="prodCode != null and prodCode != ''">prod_code,</if>
<if test="prodName != null and prodName != ''">prod_name,</if>
<if test="soonPieceType != null and soonPieceType != ''">soon_piece_type,</if>
<if test="recPayType != null and recPayType != ''">rec_pay_type,</if>
<if test="billType != null and billType != ''">bill_type,</if>
<if test="otherType1 != null and otherType1 != ''">other_type1,</if>
<if test="otherType2 != null and otherType2 != ''">other_type2,</if>
<if test="carryType != null and carryType != ''">carry_type,</if>
<if test="status != null">status,</if>
<if test="dispAreaId != null and dispAreaId != ''">disp_area_id,</if>
<if test="dispAreaSite != null and dispAreaSite != ''">disp_area_site,</if>
<if test="dispAreaName != null and dispAreaName != ''">disp_area_name,</if>
<if test="dispAreaSiteId != null and dispAreaSiteId != ''">disp_area_site_id,</if>
<if test="sendAreaId != null and sendAreaId != ''">send_area_id,</if>
<if test="sendAreaName != null and sendAreaName != ''">send_area_name,</if>
<if test="sendAreaSite != null and sendAreaSite != ''">send_area_site,</if>
<if test="sendAreaSiteId != null and sendAreaSiteId != ''">send_area_site_id,</if>
<if test="carriesNumber != null and carriesNumber != ''">carries_number,</if>
<if test="discardsNumber != null and discardsNumber != ''">discards_number,</if>
<if test="leastPrice != null">least_price,</if>
<if test="priceType != null and priceType != ''">price_type,</if>
<if test="startDate != null">start_date,</if>
<if test="endDate != null">end_date,</if>
<if test="priorityLevel != null">priority_level,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="quoteId != null">#{quoteId},</if>
<if test="quoteName != null and quoteName != ''">#{quoteName},</if>
<if test="quoteCode != null and quoteCode != ''">#{quoteCode},</if>
<if test="useSiteCode != null and useSiteCode != ''">#{useSiteCode},</if>
<if test="useSite != null and useSite != ''">#{useSite},</if>
<if test="transLineCode != null and transLineCode != ''">#{transLineCode},</if>
<if test="transLine != null and transLine != ''">#{transLine},</if>
<if test="feeType != null and feeType != ''">#{feeType},</if>
<if test="prodCode != null and prodCode != ''">#{prodCode},</if>
<if test="prodName != null and prodName != ''">#{prodName},</if>
<if test="soonPieceType != null and soonPieceType != ''">#{soonPieceType},</if>
<if test="recPayType != null and recPayType != ''">#{recPayType},</if>
<if test="billType != null and billType != ''">#{billType},</if>
<if test="otherType1 != null and otherType1 != ''">#{otherType1},</if>
<if test="otherType2 != null and otherType2 != ''">#{otherType2},</if>
<if test="carryType != null and carryType != ''">#{carryType},</if>
<if test="status != null">#{status},</if>
<if test="dispAreaId != null and dispAreaId != ''">#{dispAreaId},</if>
<if test="dispAreaSite != null and dispAreaSite != ''">#{dispAreaSite},</if>
<if test="dispAreaName != null and dispAreaName != ''">#{dispAreaName},</if>
<if test="dispAreaSiteId != null and dispAreaSiteId != ''">#{dispAreaSiteId},</if>
<if test="sendAreaId != null and sendAreaId != ''">#{sendAreaId},</if>
<if test="sendAreaName != null and sendAreaName != ''">#{sendAreaName},</if>
<if test="sendAreaSite != null and sendAreaSite != ''">#{sendAreaSite},</if>
<if test="sendAreaSiteId != null and sendAreaSiteId != ''">#{sendAreaSiteId},</if>
<if test="carriesNumber != null and carriesNumber != ''">#{carriesNumber},</if>
<if test="discardsNumber != null and discardsNumber != ''">#{discardsNumber},</if>
<if test="leastPrice != null">#{leastPrice},</if>
<if test="priceType != null and priceType != ''">#{priceType},</if>
<if test="startDate != null">#{startDate},</if>
<if test="endDate != null">#{endDate},</if>
<if test="priorityLevel != null">#{priorityLevel},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
</trim>
</insert>
<update id="updateEmisQuotePrice" parameterType="EmisQuotePrice">
update emis_quote_price
<trim prefix="SET" suffixOverrides=",">
<if test="quoteName != null and quoteName != ''">quote_name = #{quoteName},</if>
<if test="quoteCode != null and quoteCode != ''">quote_code = #{quoteCode},</if>
<if test="useSiteCode != null and useSiteCode != ''">use_site_code = #{useSiteCode},</if>
<if test="useSite != null and useSite != ''">use_site = #{useSite},</if>
<if test="transLineCode != null and transLineCode != ''">trans_line_code = #{transLineCode},</if>
<if test="transLine != null and transLine != ''">trans_line = #{transLine},</if>
<if test="feeType != null and feeType != ''">fee_type = #{feeType},</if>
<if test="prodCode != null and prodCode != ''">prod_code = #{prodCode},</if>
<if test="prodName != null and prodName != ''">prod_name = #{prodName},</if>
<if test="soonPieceType != null and soonPieceType != ''">soon_piece_type = #{soonPieceType},</if>
<if test="recPayType != null and recPayType != ''">rec_pay_type = #{recPayType},</if>
<if test="billType != null and billType != ''">bill_type = #{billType},</if>
<if test="otherType1 != null and otherType1 != ''">other_type1 = #{otherType1},</if>
<if test="otherType2 != null and otherType2 != ''">other_type2 = #{otherType2},</if>
<if test="carryType != null and carryType != ''">carry_type = #{carryType},</if>
<if test="status != null">status = #{status},</if>
<if test="dispAreaId != null and dispAreaId != ''">disp_area_id = #{dispAreaId},</if>
<if test="dispAreaSite != null and dispAreaSite != ''">disp_area_site = #{dispAreaSite},</if>
<if test="dispAreaName != null and dispAreaName != ''">disp_area_name = #{dispAreaName},</if>
<if test="dispAreaSiteId != null and dispAreaSiteId != ''">disp_area_site_id = #{dispAreaSiteId},</if>
<if test="sendAreaId != null and sendAreaId != ''">send_area_id = #{sendAreaId},</if>
<if test="sendAreaName != null and sendAreaName != ''">send_area_name = #{sendAreaName},</if>
<if test="sendAreaSite != null and sendAreaSite != ''">send_area_site = #{sendAreaSite},</if>
<if test="sendAreaSiteId != null and sendAreaSiteId != ''">send_area_site_id = #{sendAreaSiteId},</if>
<if test="carriesNumber != null and carriesNumber != ''">carries_number = #{carriesNumber},</if>
<if test="discardsNumber != null and discardsNumber != ''">discards_number = #{discardsNumber},</if>
<if test="leastPrice != null">least_price = #{leastPrice},</if>
<if test="priceType != null and priceType != ''">price_type = #{priceType},</if>
<if test="startDate != null">start_date = #{startDate},</if>
<if test="endDate != null">end_date = #{endDate},</if>
<if test="priorityLevel != null">priority_level = #{priorityLevel},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
</trim>
where quote_id = #{quoteId}
</update>
<delete id="deleteEmisQuotePriceByQuoteId" parameterType="Long">
delete from emis_quote_price where quote_id = #{quoteId}
</delete>
<delete id="deleteEmisQuotePriceByQuoteIds" parameterType="String">
delete from emis_quote_price where quote_id in
<foreach item="quoteId" collection="array" open="(" separator="," close=")">
#{quoteId}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,146 @@
<?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.xdadan.erp.emis.mapper.EmisQuoteSendAreaMapper">
<resultMap type="EmisQuoteSendArea" id="EmisQuoteSendAreaResult">
<result property="areaId" column="area_id" />
<result property="areaName" column="area_name" />
<result property="useSite" column="use_site" />
<result property="useSiteCode" column="use_site_code" />
<result property="areaSite" column="area_site" />
<result property="areaSiteId" column="area_site_id" />
<result property="feeType" column="fee_type" />
<result property="areaType" column="area_type" />
<result property="sync" column="sync" />
<result property="status" column="status" />
<result property="remark" column="remark" />
<result property="tenantId" column="tenant_id" />
<result property="delFlag" column="del_flag" />
<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="createSite" column="create_site" />
<result property="updateSite" column="update_site" />
</resultMap>
<sql id="selectEmisQuoteSendAreaVo">
select area_id, area_name, use_site, use_site_code, area_site, area_site_id, fee_type, area_type, sync, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_quote_send_area
</sql>
<select id="selectEmisQuoteSendAreaList" parameterType="EmisQuoteSendArea" resultMap="EmisQuoteSendAreaResult">
<include refid="selectEmisQuoteSendAreaVo"/>
<where>
<if test="areaId != null "> and area_id = #{areaId}</if>
<if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if>
<if test="useSite != null and useSite != ''"> and use_site like concat('%', #{useSite}, '%')</if>
<if test="useSiteCode != null and useSiteCode != ''"> and use_site_code like concat('%', #{useSiteCode}, '%')</if>
<if test="areaSite != null and areaSite != ''"> and area_site like concat('%', #{areaSite}, '%')</if>
<if test="areaSiteId != null and areaSiteId != ''"> and area_site_id like concat('%', #{areaSiteId}, '%')</if>
<if test="feeType != null and feeType != ''"> and fee_type like concat('%', #{feeType}, '%')</if>
<if test="areaType != null and areaType != ''"> and area_type like concat('%', #{areaType}, '%')</if>
<if test="sync != null and sync != ''"> and sync like concat('%', #{sync}, '%')</if>
<if test="status != null "> and status = #{status}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
</where>
order by create_time desc
</select>
<select id="selectEmisQuoteSendAreaByAreaId" parameterType="Long" resultMap="EmisQuoteSendAreaResult">
select area_id, area_name, use_site, use_site_code, area_site, area_site_id, fee_type, area_type, sync, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_quote_send_area a
where a.area_id = #{areaId}
</select>
<insert id="insertEmisQuoteSendArea" parameterType="EmisQuoteSendArea">
insert into emis_quote_send_area
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="areaId != null">area_id,</if>
<if test="areaName != null and areaName != ''">area_name,</if>
<if test="useSite != null and useSite != ''">use_site,</if>
<if test="useSiteCode != null and useSiteCode != ''">use_site_code,</if>
<if test="areaSite != null and areaSite != ''">area_site,</if>
<if test="areaSiteId != null and areaSiteId != ''">area_site_id,</if>
<if test="feeType != null and feeType != ''">fee_type,</if>
<if test="areaType != null and areaType != ''">area_type,</if>
<if test="sync != null and sync != ''">sync,</if>
<if test="status != null">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="areaId != null">#{areaId},</if>
<if test="areaName != null and areaName != ''">#{areaName},</if>
<if test="useSite != null and useSite != ''">#{useSite},</if>
<if test="useSiteCode != null and useSiteCode != ''">#{useSiteCode},</if>
<if test="areaSite != null and areaSite != ''">#{areaSite},</if>
<if test="areaSiteId != null and areaSiteId != ''">#{areaSiteId},</if>
<if test="feeType != null and feeType != ''">#{feeType},</if>
<if test="areaType != null and areaType != ''">#{areaType},</if>
<if test="sync != null and sync != ''">#{sync},</if>
<if test="status != null">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
</trim>
</insert>
<update id="updateEmisQuoteSendArea" parameterType="EmisQuoteSendArea">
update emis_quote_send_area
<trim prefix="SET" suffixOverrides=",">
<if test="areaName != null and areaName != ''">area_name = #{areaName},</if>
<if test="useSite != null and useSite != ''">use_site = #{useSite},</if>
<if test="useSiteCode != null and useSiteCode != ''">use_site_code = #{useSiteCode},</if>
<if test="areaSite != null and areaSite != ''">area_site = #{areaSite},</if>
<if test="areaSiteId != null and areaSiteId != ''">area_site_id = #{areaSiteId},</if>
<if test="feeType != null and feeType != ''">fee_type = #{feeType},</if>
<if test="areaType != null and areaType != ''">area_type = #{areaType},</if>
<if test="sync != null and sync != ''">sync = #{sync},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
</trim>
where area_id = #{areaId}
</update>
<delete id="deleteEmisQuoteSendAreaByAreaId" parameterType="Long">
delete from emis_quote_send_area where area_id = #{areaId}
</delete>
<delete id="deleteEmisQuoteSendAreaByAreaIds" parameterType="String">
delete from emis_quote_send_area where area_id in
<foreach item="areaId" collection="array" open="(" separator="," close=")">
#{areaId}
</foreach>
</delete>
</mapper>