md
This commit is contained in:
parent
07e484e522
commit
b0b3fae096
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsCostFeeFeeitemController.java
|
||||
* @author linfso
|
||||
* @date 2025-02-17 10:33:19
|
||||
* @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.EmisTmsCostFeeFeeitem;
|
||||
import com.xdadan.erp.emis.service.IEmisTmsCostFeeFeeitemService;
|
||||
|
||||
/**
|
||||
* 成本费用条目Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-02-17 10:33:19
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisTmsCostFeeFeeitem")
|
||||
public class EmisTmsCostFeeFeeitemController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisTmsCostFeeFeeitemService emisTmsCostFeeFeeitemService;
|
||||
|
||||
/**
|
||||
* 查询成本费用条目列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeFeeitem:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem)
|
||||
{
|
||||
startPage();
|
||||
List<EmisTmsCostFeeFeeitem> list = emisTmsCostFeeFeeitemService.selectEmisTmsCostFeeFeeitemList(emisTmsCostFeeFeeitem);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeFeeitem:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem)
|
||||
{
|
||||
int cnt=emisTmsCostFeeFeeitemService.checkUnique(emisTmsCostFeeFeeitem);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出成本费用条目列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeFeeitem:export')")
|
||||
@Log(title = "成本费用条目", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem)
|
||||
{
|
||||
List<EmisTmsCostFeeFeeitem> list = emisTmsCostFeeFeeitemService.selectEmisTmsCostFeeFeeitemList(emisTmsCostFeeFeeitem);
|
||||
ExcelUtil<EmisTmsCostFeeFeeitem> util = new ExcelUtil<EmisTmsCostFeeFeeitem>(EmisTmsCostFeeFeeitem.class);
|
||||
util.exportExcel(response, list, "成本费用条目数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取成本费用条目详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeFeeitem:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisTmsCostFeeFeeitemService.selectEmisTmsCostFeeFeeitemById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增成本费用条目
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeFeeitem:add')")
|
||||
@Log(title = "成本费用条目", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem)
|
||||
{
|
||||
return toAjax(emisTmsCostFeeFeeitemService.insertEmisTmsCostFeeFeeitem(emisTmsCostFeeFeeitem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成本费用条目
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeFeeitem:edit')")
|
||||
@Log(title = "成本费用条目", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem)
|
||||
{
|
||||
return toAjax(emisTmsCostFeeFeeitemService.updateEmisTmsCostFeeFeeitem(emisTmsCostFeeFeeitem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成本费用条目
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeFeeitem:remove')")
|
||||
@Log(title = "成本费用条目", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisTmsCostFeeFeeitemService.deleteEmisTmsCostFeeFeeitemByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsCostFeeSplitController.java
|
||||
* @author linfso
|
||||
* @date 2025-02-17 11:42:30
|
||||
* @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.EmisTmsCostFeeSplit;
|
||||
import com.xdadan.erp.emis.service.IEmisTmsCostFeeSplitService;
|
||||
|
||||
/**
|
||||
* 成本费用分摊明细Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-02-17 11:42:30
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisTmsCostFeeSplit")
|
||||
public class EmisTmsCostFeeSplitController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisTmsCostFeeSplitService emisTmsCostFeeSplitService;
|
||||
|
||||
/**
|
||||
* 查询成本费用分摊明细列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeSplit:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisTmsCostFeeSplit emisTmsCostFeeSplit)
|
||||
{
|
||||
startPage();
|
||||
List<EmisTmsCostFeeSplit> list = emisTmsCostFeeSplitService.selectEmisTmsCostFeeSplitList(emisTmsCostFeeSplit);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisTmsCostFeeSplit
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeSplit:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisTmsCostFeeSplit emisTmsCostFeeSplit)
|
||||
{
|
||||
int cnt=emisTmsCostFeeSplitService.checkUnique(emisTmsCostFeeSplit);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出成本费用分摊明细列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeSplit:export')")
|
||||
@Log(title = "成本费用分摊明细", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisTmsCostFeeSplit emisTmsCostFeeSplit)
|
||||
{
|
||||
List<EmisTmsCostFeeSplit> list = emisTmsCostFeeSplitService.selectEmisTmsCostFeeSplitList(emisTmsCostFeeSplit);
|
||||
ExcelUtil<EmisTmsCostFeeSplit> util = new ExcelUtil<EmisTmsCostFeeSplit>(EmisTmsCostFeeSplit.class);
|
||||
util.exportExcel(response, list, "成本费用分摊明细数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取成本费用分摊明细详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeSplit:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisTmsCostFeeSplitService.selectEmisTmsCostFeeSplitById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增成本费用分摊明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeSplit:add')")
|
||||
@Log(title = "成本费用分摊明细", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisTmsCostFeeSplit emisTmsCostFeeSplit)
|
||||
{
|
||||
return toAjax(emisTmsCostFeeSplitService.insertEmisTmsCostFeeSplit(emisTmsCostFeeSplit));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成本费用分摊明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeSplit:edit')")
|
||||
@Log(title = "成本费用分摊明细", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisTmsCostFeeSplit emisTmsCostFeeSplit)
|
||||
{
|
||||
return toAjax(emisTmsCostFeeSplitService.updateEmisTmsCostFeeSplit(emisTmsCostFeeSplit));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成本费用分摊明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisTmsCostFeeSplit:remove')")
|
||||
@Log(title = "成本费用分摊明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisTmsCostFeeSplitService.deleteEmisTmsCostFeeSplitByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -110,4 +110,7 @@ public class EmisTmsCostFee extends BaseEntity
|
||||
// 关联单号
|
||||
private List<EmisTmsCostFeeRel> billRelList;
|
||||
|
||||
// 关联费用
|
||||
List<EmisTmsCostFeeFeeitem> feeItemList;
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,53 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsCostFeeFeeitem.java
|
||||
* @author linfso
|
||||
* @date 2025-02-17 10:33:18
|
||||
* @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.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisTmsCostFeeFeeitem
|
||||
* @Description 成本费用条目
|
||||
* @author linfso
|
||||
* @date 2025-02-17 10:33:18
|
||||
*/
|
||||
@Data
|
||||
public class EmisTmsCostFeeFeeitem extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 成本序号 */
|
||||
private String costNo;
|
||||
/* 费用类型 */
|
||||
private String feeType;
|
||||
/* 费用值 */
|
||||
private BigDecimal fee;
|
||||
/* 费用币种 */
|
||||
private String currency;
|
||||
/* 人民币汇率 */
|
||||
private BigDecimal currecyToCnyRate;
|
||||
/* 实收人民币费用 */
|
||||
private BigDecimal cnyFee;
|
||||
/* 排序 */
|
||||
private Integer orderNum;
|
||||
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsCostFeeSplit.java
|
||||
* @author linfso
|
||||
* @date 2025-02-17 11:42:29
|
||||
* @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.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisTmsCostFeeSplit
|
||||
* @Description 成本费用分摊明细
|
||||
* @author linfso
|
||||
* @date 2025-02-17 11:42:29
|
||||
*/
|
||||
@Data
|
||||
public class EmisTmsCostFeeSplit extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 支付序号 */
|
||||
private String costNo;
|
||||
/* 费用项ID */
|
||||
private Long feeItemId;
|
||||
/* 运单号 */
|
||||
private String billCode;
|
||||
/* 成本费用类型 字典 emis_cost_fee_type */
|
||||
private String feeType;
|
||||
/* 成本分摊类型 1-按重量 2-按体积 3-按票 */
|
||||
private String splitType;
|
||||
/* 分摊成本 */
|
||||
private BigDecimal costFee;
|
||||
/* 总体积 */
|
||||
private BigDecimal totalVolume;
|
||||
/* 实际重量 */
|
||||
private BigDecimal billWeight;
|
||||
/* 计算备注 */
|
||||
private String calcRemark;
|
||||
|
||||
}
|
||||
@ -0,0 +1,87 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsCostFeeFeeitemMapper.java
|
||||
* @author linfso
|
||||
* @date 2025-02-17 10:33:18
|
||||
* @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.EmisTmsCostFeeFeeitem;
|
||||
/**
|
||||
* @ClassName EmisTmsCostFeeFeeitemMapper
|
||||
* @Description <p> 成本费用条目 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2025-02-17 10:33:18
|
||||
*/
|
||||
public interface EmisTmsCostFeeFeeitemMapper extends BaseMapper<EmisTmsCostFeeFeeitem>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisTmsCostFeeFeeitem selectEmisTmsCostFeeFeeitemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisTmsCostFeeFeeitem> selectEmisTmsCostFeeFeeitemList(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisTmsCostFeeFeeitem(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisTmsCostFeeFeeitem(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param costNo
|
||||
* @return
|
||||
*/
|
||||
public int deleteEmisTmsCostFeeFeeitemByCostNo(String costNo);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisTmsCostFeeFeeitemById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisTmsCostFeeFeeitemByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsCostFeeSplitMapper.java
|
||||
* @author linfso
|
||||
* @date 2025-02-17 11:42:29
|
||||
* @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.EmisTmsCostFeeSplit;
|
||||
/**
|
||||
* @ClassName EmisTmsCostFeeSplitMapper
|
||||
* @Description <p> 成本费用分摊明细 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2025-02-17 11:42:29
|
||||
*/
|
||||
public interface EmisTmsCostFeeSplitMapper extends BaseMapper<EmisTmsCostFeeSplit>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisTmsCostFeeSplit selectEmisTmsCostFeeSplitById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisTmsCostFeeSplit
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisTmsCostFeeSplit> selectEmisTmsCostFeeSplitList(EmisTmsCostFeeSplit emisTmsCostFeeSplit);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisTmsCostFeeSplit
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisTmsCostFeeSplit emisTmsCostFeeSplit);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisTmsCostFeeSplit
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisTmsCostFeeSplit(EmisTmsCostFeeSplit emisTmsCostFeeSplit);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisTmsCostFeeSplit
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisTmsCostFeeSplit(EmisTmsCostFeeSplit emisTmsCostFeeSplit);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisTmsCostFeeSplitById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisTmsCostFeeSplitByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsCostFeeFeeitemService.java
|
||||
* @author linfso
|
||||
* @date 2025-02-17 10:33:19
|
||||
* @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.EmisTmsCostFeeFeeitem;
|
||||
|
||||
/**
|
||||
* @ClassName EmisTmsCostFeeFeeitemService
|
||||
* @Description 成本费用条目
|
||||
* @author linfso
|
||||
* @date 2025-02-17 10:33:19
|
||||
*/
|
||||
public interface IEmisTmsCostFeeFeeitemService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisTmsCostFeeFeeitem selectEmisTmsCostFeeFeeitemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询成本费用条目列表
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem 成本费用条目
|
||||
* @return 成本费用条目集合
|
||||
*/
|
||||
public List<EmisTmsCostFeeFeeitem> selectEmisTmsCostFeeFeeitemList(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem);
|
||||
|
||||
/**
|
||||
* 新增成本费用条目
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem 成本费用条目
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisTmsCostFeeFeeitem(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem);
|
||||
|
||||
/**
|
||||
* 修改成本费用条目
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem 成本费用条目
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisTmsCostFeeFeeitem(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem);
|
||||
|
||||
/**
|
||||
* 批量删除成本费用条目
|
||||
*
|
||||
* @param ids 需要删除的成本费用条目主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisTmsCostFeeFeeitemByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除成本费用条目信息
|
||||
*
|
||||
* @param id 成本费用条目主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisTmsCostFeeFeeitemById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsCostFeeSplitService.java
|
||||
* @author linfso
|
||||
* @date 2025-02-17 11:42:30
|
||||
* @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.EmisTmsCostFeeSplit;
|
||||
|
||||
/**
|
||||
* @ClassName EmisTmsCostFeeSplitService
|
||||
* @Description 成本费用分摊明细
|
||||
* @author linfso
|
||||
* @date 2025-02-17 11:42:30
|
||||
*/
|
||||
public interface IEmisTmsCostFeeSplitService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisTmsCostFeeSplit selectEmisTmsCostFeeSplitById(Long id);
|
||||
|
||||
/**
|
||||
* 查询成本费用分摊明细列表
|
||||
*
|
||||
* @param emisTmsCostFeeSplit 成本费用分摊明细
|
||||
* @return 成本费用分摊明细集合
|
||||
*/
|
||||
public List<EmisTmsCostFeeSplit> selectEmisTmsCostFeeSplitList(EmisTmsCostFeeSplit emisTmsCostFeeSplit);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisTmsCostFeeSplit
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisTmsCostFeeSplit emisTmsCostFeeSplit);
|
||||
|
||||
/**
|
||||
* 新增成本费用分摊明细
|
||||
*
|
||||
* @param emisTmsCostFeeSplit 成本费用分摊明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisTmsCostFeeSplit(EmisTmsCostFeeSplit emisTmsCostFeeSplit);
|
||||
|
||||
/**
|
||||
* 修改成本费用分摊明细
|
||||
*
|
||||
* @param emisTmsCostFeeSplit 成本费用分摊明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisTmsCostFeeSplit(EmisTmsCostFeeSplit emisTmsCostFeeSplit);
|
||||
|
||||
/**
|
||||
* 批量删除成本费用分摊明细
|
||||
*
|
||||
* @param ids 需要删除的成本费用分摊明细主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisTmsCostFeeSplitByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除成本费用分摊明细信息
|
||||
*
|
||||
* @param id 成本费用分摊明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisTmsCostFeeSplitById(Long id);
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsCostFeeFeeitemServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2025-02-17 10:33:19
|
||||
* @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.EmisTmsCostFeeFeeitem;
|
||||
import com.xdadan.erp.emis.mapper.EmisTmsCostFeeFeeitemMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisTmsCostFeeFeeitemService;
|
||||
|
||||
/**
|
||||
* 成本费用条目Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-02-17 10:33:19
|
||||
*/
|
||||
@Service
|
||||
public class EmisTmsCostFeeFeeitemServiceImpl implements IEmisTmsCostFeeFeeitemService
|
||||
{
|
||||
@Autowired
|
||||
private EmisTmsCostFeeFeeitemMapper emisTmsCostFeeFeeitemMapper;
|
||||
|
||||
/**
|
||||
* 查询成本费用条目
|
||||
*
|
||||
* @param id 成本费用条目主键
|
||||
* @return 成本费用条目
|
||||
*/
|
||||
@Override
|
||||
public EmisTmsCostFeeFeeitem selectEmisTmsCostFeeFeeitemById(Long id)
|
||||
{
|
||||
return emisTmsCostFeeFeeitemMapper.selectEmisTmsCostFeeFeeitemById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询成本费用条目列表
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem 成本费用条目
|
||||
* @return 成本费用条目
|
||||
*/
|
||||
@Override
|
||||
public List<EmisTmsCostFeeFeeitem> selectEmisTmsCostFeeFeeitemList(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem)
|
||||
{
|
||||
return emisTmsCostFeeFeeitemMapper.selectEmisTmsCostFeeFeeitemList(emisTmsCostFeeFeeitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem)
|
||||
{
|
||||
return emisTmsCostFeeFeeitemMapper.checkUnique(emisTmsCostFeeFeeitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增成本费用条目
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem 成本费用条目
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisTmsCostFeeFeeitem(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem)
|
||||
{
|
||||
return emisTmsCostFeeFeeitemMapper.insertEmisTmsCostFeeFeeitem(emisTmsCostFeeFeeitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成本费用条目
|
||||
*
|
||||
* @param emisTmsCostFeeFeeitem 成本费用条目
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisTmsCostFeeFeeitem(EmisTmsCostFeeFeeitem emisTmsCostFeeFeeitem)
|
||||
{
|
||||
return emisTmsCostFeeFeeitemMapper.updateEmisTmsCostFeeFeeitem(emisTmsCostFeeFeeitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除成本费用条目
|
||||
*
|
||||
* @param ids 需要删除的成本费用条目主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisTmsCostFeeFeeitemByIds(Long[] ids)
|
||||
{
|
||||
return emisTmsCostFeeFeeitemMapper.deleteEmisTmsCostFeeFeeitemByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成本费用条目信息
|
||||
*
|
||||
* @param id 成本费用条目主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisTmsCostFeeFeeitemById(Long id)
|
||||
{
|
||||
return emisTmsCostFeeFeeitemMapper.deleteEmisTmsCostFeeFeeitemById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -17,16 +17,13 @@ import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.xdadan.erp.emis.domain.*;
|
||||
import com.xdadan.erp.emis.domain.enumtype.EmisBizErrorType;
|
||||
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
||||
import com.xdadan.erp.emis.mapper.EmisTmsCostFeeRelMapper;
|
||||
import com.xdadan.erp.emis.mapper.EmisTmsCostProfitMapper;
|
||||
import com.xdadan.erp.emis.mapper.EmisWaybillMapper;
|
||||
import com.xdadan.erp.emis.mapper.*;
|
||||
import com.xdadan.erp.emis.utils.WaybillHelper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.mapper.EmisTmsCostFeeMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisTmsCostFeeService;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@ -46,6 +43,9 @@ public class EmisTmsCostFeeServiceImpl implements IEmisTmsCostFeeService
|
||||
@Autowired
|
||||
private EmisTmsCostFeeRelMapper emisTmsCostFeeRelMapper;
|
||||
|
||||
@Autowired
|
||||
private EmisTmsCostFeeFeeitemMapper emisTmsCostFeeFeeitemMapper;
|
||||
|
||||
@Autowired
|
||||
private EmisTmsCostProfitMapper emisTmsCostProfitMapper;
|
||||
|
||||
@ -118,6 +118,17 @@ public class EmisTmsCostFeeServiceImpl implements IEmisTmsCostFeeService
|
||||
|
||||
emisTmsCostFeeMapper.insertEmisTmsCostFee(emisTmsCostFee);
|
||||
|
||||
// 插入关联费用
|
||||
for (EmisTmsCostFeeFeeitem feeItem:emisTmsCostFee.getFeeItemList()
|
||||
) {
|
||||
EmisTmsCostFeeFeeitem newFeeItem = new EmisTmsCostFeeFeeitem();
|
||||
newFeeItem.setCostNo(costNo);
|
||||
newFeeItem.setFeeType(feeItem.getFeeType());
|
||||
newFeeItem.setFee(feeItem.getFee());
|
||||
newFeeItem.setCurrency(feeItem.getCurrency());
|
||||
emisTmsCostFeeFeeitemMapper.insertEmisTmsCostFeeFeeitem(newFeeItem);
|
||||
}
|
||||
|
||||
// 计算分摊费用
|
||||
// reCalcSplitCostFee(costNo);
|
||||
|
||||
@ -274,6 +285,19 @@ public class EmisTmsCostFeeServiceImpl implements IEmisTmsCostFeeService
|
||||
emisTmsCostFeeRelMapper.insertEmisTmsCostFeeRel(newCostFeeRel);
|
||||
}
|
||||
|
||||
// 删除旧的费用
|
||||
emisTmsCostFeeFeeitemMapper.deleteEmisTmsCostFeeFeeitemByCostNo(emisTmsCostFee.getCostNo());
|
||||
// 插入关联费用
|
||||
for (EmisTmsCostFeeFeeitem feeItem:emisTmsCostFee.getFeeItemList()
|
||||
) {
|
||||
EmisTmsCostFeeFeeitem newFeeItem = new EmisTmsCostFeeFeeitem();
|
||||
newFeeItem.setCostNo(costNo);
|
||||
newFeeItem.setFeeType(feeItem.getFeeType());
|
||||
newFeeItem.setFee(feeItem.getFee());
|
||||
newFeeItem.setCurrency(feeItem.getCurrency());
|
||||
emisTmsCostFeeFeeitemMapper.insertEmisTmsCostFeeFeeitem(newFeeItem);
|
||||
}
|
||||
|
||||
emisTmsCostFeeMapper.updateEmisTmsCostFee(emisTmsCostFee);
|
||||
|
||||
// 计算分摊费用
|
||||
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisTmsCostFeeSplitServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2025-02-17 11:42:30
|
||||
* @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.EmisTmsCostFeeSplit;
|
||||
import com.xdadan.erp.emis.mapper.EmisTmsCostFeeSplitMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisTmsCostFeeSplitService;
|
||||
|
||||
/**
|
||||
* 成本费用分摊明细Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-02-17 11:42:30
|
||||
*/
|
||||
@Service
|
||||
public class EmisTmsCostFeeSplitServiceImpl implements IEmisTmsCostFeeSplitService
|
||||
{
|
||||
@Autowired
|
||||
private EmisTmsCostFeeSplitMapper emisTmsCostFeeSplitMapper;
|
||||
|
||||
/**
|
||||
* 查询成本费用分摊明细
|
||||
*
|
||||
* @param id 成本费用分摊明细主键
|
||||
* @return 成本费用分摊明细
|
||||
*/
|
||||
@Override
|
||||
public EmisTmsCostFeeSplit selectEmisTmsCostFeeSplitById(Long id)
|
||||
{
|
||||
return emisTmsCostFeeSplitMapper.selectEmisTmsCostFeeSplitById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询成本费用分摊明细列表
|
||||
*
|
||||
* @param emisTmsCostFeeSplit 成本费用分摊明细
|
||||
* @return 成本费用分摊明细
|
||||
*/
|
||||
@Override
|
||||
public List<EmisTmsCostFeeSplit> selectEmisTmsCostFeeSplitList(EmisTmsCostFeeSplit emisTmsCostFeeSplit)
|
||||
{
|
||||
return emisTmsCostFeeSplitMapper.selectEmisTmsCostFeeSplitList(emisTmsCostFeeSplit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisTmsCostFeeSplit
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisTmsCostFeeSplit emisTmsCostFeeSplit)
|
||||
{
|
||||
return emisTmsCostFeeSplitMapper.checkUnique(emisTmsCostFeeSplit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增成本费用分摊明细
|
||||
*
|
||||
* @param emisTmsCostFeeSplit 成本费用分摊明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisTmsCostFeeSplit(EmisTmsCostFeeSplit emisTmsCostFeeSplit)
|
||||
{
|
||||
return emisTmsCostFeeSplitMapper.insertEmisTmsCostFeeSplit(emisTmsCostFeeSplit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成本费用分摊明细
|
||||
*
|
||||
* @param emisTmsCostFeeSplit 成本费用分摊明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisTmsCostFeeSplit(EmisTmsCostFeeSplit emisTmsCostFeeSplit)
|
||||
{
|
||||
return emisTmsCostFeeSplitMapper.updateEmisTmsCostFeeSplit(emisTmsCostFeeSplit);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除成本费用分摊明细
|
||||
*
|
||||
* @param ids 需要删除的成本费用分摊明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisTmsCostFeeSplitByIds(Long[] ids)
|
||||
{
|
||||
return emisTmsCostFeeSplitMapper.deleteEmisTmsCostFeeSplitByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成本费用分摊明细信息
|
||||
*
|
||||
* @param id 成本费用分摊明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisTmsCostFeeSplitById(Long id)
|
||||
{
|
||||
return emisTmsCostFeeSplitMapper.deleteEmisTmsCostFeeSplitById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,138 @@
|
||||
<?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.EmisTmsCostFeeFeeitemMapper">
|
||||
|
||||
<resultMap type="EmisTmsCostFeeFeeitem" id="EmisTmsCostFeeFeeitemResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="costNo" column="cost_no" />
|
||||
<result property="feeType" column="fee_type" />
|
||||
<result property="fee" column="fee" />
|
||||
<result property="currency" column="currency" />
|
||||
<result property="currecyToCnyRate" column="currecy_to_cny_rate" />
|
||||
<result property="cnyFee" column="cny_fee" />
|
||||
<result property="orderNum" column="order_num" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisTmsCostFeeFeeitemVo">
|
||||
select id, cost_no, fee_type, fee, currency, currecy_to_cny_rate, cny_fee, order_num, del_flag, create_by, create_time, update_by, update_time, remark from emis_tms_cost_fee_feeitem
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisTmsCostFeeFeeitemList" parameterType="EmisTmsCostFeeFeeitem" resultMap="EmisTmsCostFeeFeeitemResult">
|
||||
<include refid="selectEmisTmsCostFeeFeeitemVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="costNo != null and costNo != ''"> and cost_no like concat('%', #{costNo}, '%')</if>
|
||||
<if test="feeType != null and feeType != ''"> and fee_type like concat('%', #{feeType}, '%')</if>
|
||||
<if test="fee != null "> and fee = #{fee}</if>
|
||||
<if test="currency != null and currency != ''"> and currency like concat('%', #{currency}, '%')</if>
|
||||
<if test="currecyToCnyRate != null "> and currecy_to_cny_rate = #{currecyToCnyRate}</if>
|
||||
<if test="cnyFee != null "> and cny_fee = #{cnyFee}</if>
|
||||
<if test="orderNum != null "> and order_num = #{orderNum}</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="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisTmsCostFeeFeeitem" resultType="int">
|
||||
select count(1) from emis_tms_cost_fee_feeitem
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and cost_no = #{costNo}
|
||||
and fee_type = #{feeType}
|
||||
and fee = #{fee}
|
||||
and currency = #{currency}
|
||||
and currecy_to_cny_rate = #{currecyToCnyRate}
|
||||
and cny_fee = #{cnyFee}
|
||||
and order_num = #{orderNum}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and remark = #{remark}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisTmsCostFeeFeeitemById" parameterType="Long" resultMap="EmisTmsCostFeeFeeitemResult">
|
||||
select id, cost_no, fee_type, fee, currency, currecy_to_cny_rate, cny_fee, order_num, del_flag, create_by, create_time, update_by, update_time, remark
|
||||
from emis_tms_cost_fee_feeitem a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisTmsCostFeeFeeitem" parameterType="EmisTmsCostFeeFeeitem" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_tms_cost_fee_feeitem
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="costNo != null and costNo != ''">cost_no,</if>
|
||||
<if test="feeType != null and feeType != ''">fee_type,</if>
|
||||
<if test="fee != null">fee,</if>
|
||||
<if test="currency != null and currency != ''">currency,</if>
|
||||
<if test="currecyToCnyRate != null">currecy_to_cny_rate,</if>
|
||||
<if test="cnyFee != null">cny_fee,</if>
|
||||
<if test="orderNum != null">order_num,</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="remark != null and remark != ''">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="costNo != null and costNo != ''">#{costNo},</if>
|
||||
<if test="feeType != null and feeType != ''">#{feeType},</if>
|
||||
<if test="fee != null">#{fee},</if>
|
||||
<if test="currency != null and currency != ''">#{currency},</if>
|
||||
<if test="currecyToCnyRate != null">#{currecyToCnyRate},</if>
|
||||
<if test="cnyFee != null">#{cnyFee},</if>
|
||||
<if test="orderNum != null">#{orderNum},</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="remark != null and remark != ''">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisTmsCostFeeFeeitem" parameterType="EmisTmsCostFeeFeeitem">
|
||||
update emis_tms_cost_fee_feeitem
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="costNo != null and costNo != ''">cost_no = #{costNo},</if>
|
||||
<if test="feeType != null and feeType != ''">fee_type = #{feeType},</if>
|
||||
<if test="fee != null">fee = #{fee},</if>
|
||||
<if test="currency != null and currency != ''">currency = #{currency},</if>
|
||||
<if test="currecyToCnyRate != null">currecy_to_cny_rate = #{currecyToCnyRate},</if>
|
||||
<if test="cnyFee != null">cny_fee = #{cnyFee},</if>
|
||||
<if test="orderNum != null">order_num = #{orderNum},</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="remark != null and remark != ''">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisTmsCostFeeFeeitemByCostNo" parameterType="String">
|
||||
update emis_tms_cost_fee_feeitem set del_flag='1' where cost_no = #{costNo}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisTmsCostFeeFeeitemById" parameterType="Long">
|
||||
update emis_tms_cost_fee_feeitem set del_flag='1' where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisTmsCostFeeFeeitemByIds" parameterType="String">
|
||||
update emis_tms_cost_fee_feeitem set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
158
emis-biz/src/main/resources/mapper/EmisTmsCostFeeSplitMapper.xml
Normal file
158
emis-biz/src/main/resources/mapper/EmisTmsCostFeeSplitMapper.xml
Normal file
@ -0,0 +1,158 @@
|
||||
<?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.EmisTmsCostFeeSplitMapper">
|
||||
|
||||
<resultMap type="EmisTmsCostFeeSplit" id="EmisTmsCostFeeSplitResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="costNo" column="cost_no" />
|
||||
<result property="feeItemId" column="fee_item_id" />
|
||||
<result property="billCode" column="bill_code" />
|
||||
<result property="feeType" column="fee_type" />
|
||||
<result property="splitType" column="split_type" />
|
||||
<result property="costFee" column="cost_fee" />
|
||||
<result property="totalVolume" column="total_volume" />
|
||||
<result property="billWeight" column="bill_weight" />
|
||||
<result property="calcRemark" column="calc_remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisTmsCostFeeSplitVo">
|
||||
select id, cost_no, fee_item_id, bill_code, fee_type, split_type, cost_fee, total_volume, bill_weight, calc_remark, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_tms_cost_fee_split
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisTmsCostFeeSplitList" parameterType="EmisTmsCostFeeSplit" resultMap="EmisTmsCostFeeSplitResult">
|
||||
<include refid="selectEmisTmsCostFeeSplitVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="costNo != null and costNo != ''"> and cost_no like concat('%', #{costNo}, '%')</if>
|
||||
<if test="feeItemId != null "> and fee_item_id = #{feeItemId}</if>
|
||||
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
|
||||
<if test="feeType != null and feeType != ''"> and fee_type like concat('%', #{feeType}, '%')</if>
|
||||
<if test="splitType != null and splitType != ''"> and split_type like concat('%', #{splitType}, '%')</if>
|
||||
<if test="costFee != null "> and cost_fee = #{costFee}</if>
|
||||
<if test="totalVolume != null "> and total_volume = #{totalVolume}</if>
|
||||
<if test="billWeight != null "> and bill_weight = #{billWeight}</if>
|
||||
<if test="calcRemark != null and calcRemark != ''"> and calc_remark like concat('%', #{calcRemark}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</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="checkUnique" parameterType="EmisTmsCostFeeSplit" resultType="int">
|
||||
select count(1) from emis_tms_cost_fee_split
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and cost_no = #{costNo}
|
||||
and fee_item_id = #{feeItemId}
|
||||
and bill_code = #{billCode}
|
||||
and fee_type = #{feeType}
|
||||
and split_type = #{splitType}
|
||||
and cost_fee = #{costFee}
|
||||
and total_volume = #{totalVolume}
|
||||
and bill_weight = #{billWeight}
|
||||
and calc_remark = #{calcRemark}
|
||||
and remark = #{remark}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisTmsCostFeeSplitById" parameterType="Long" resultMap="EmisTmsCostFeeSplitResult">
|
||||
select id, cost_no, fee_item_id, bill_code, fee_type, split_type, cost_fee, total_volume, bill_weight, calc_remark, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_tms_cost_fee_split a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisTmsCostFeeSplit" parameterType="EmisTmsCostFeeSplit" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_tms_cost_fee_split
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="costNo != null and costNo != ''">cost_no,</if>
|
||||
<if test="feeItemId != null">fee_item_id,</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code,</if>
|
||||
<if test="feeType != null and feeType != ''">fee_type,</if>
|
||||
<if test="splitType != null and splitType != ''">split_type,</if>
|
||||
<if test="costFee != null">cost_fee,</if>
|
||||
<if test="totalVolume != null">total_volume,</if>
|
||||
<if test="billWeight != null">bill_weight,</if>
|
||||
<if test="calcRemark != null and calcRemark != ''">calc_remark,</if>
|
||||
<if test="remark != null and remark != ''">remark,</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="costNo != null and costNo != ''">#{costNo},</if>
|
||||
<if test="feeItemId != null">#{feeItemId},</if>
|
||||
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
||||
<if test="feeType != null and feeType != ''">#{feeType},</if>
|
||||
<if test="splitType != null and splitType != ''">#{splitType},</if>
|
||||
<if test="costFee != null">#{costFee},</if>
|
||||
<if test="totalVolume != null">#{totalVolume},</if>
|
||||
<if test="billWeight != null">#{billWeight},</if>
|
||||
<if test="calcRemark != null and calcRemark != ''">#{calcRemark},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</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="updateEmisTmsCostFeeSplit" parameterType="EmisTmsCostFeeSplit">
|
||||
update emis_tms_cost_fee_split
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="costNo != null and costNo != ''">cost_no = #{costNo},</if>
|
||||
<if test="feeItemId != null">fee_item_id = #{feeItemId},</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
||||
<if test="feeType != null and feeType != ''">fee_type = #{feeType},</if>
|
||||
<if test="splitType != null and splitType != ''">split_type = #{splitType},</if>
|
||||
<if test="costFee != null">cost_fee = #{costFee},</if>
|
||||
<if test="totalVolume != null">total_volume = #{totalVolume},</if>
|
||||
<if test="billWeight != null">bill_weight = #{billWeight},</if>
|
||||
<if test="calcRemark != null and calcRemark != ''">calc_remark = #{calcRemark},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</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="deleteEmisTmsCostFeeSplitById" parameterType="Long">
|
||||
delete from emis_tms_cost_fee_split where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisTmsCostFeeSplitByIds" parameterType="String">
|
||||
delete from emis_tms_cost_fee_split where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user