md
This commit is contained in:
parent
a742f28a2e
commit
395495a598
@ -0,0 +1,118 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisNotCalcAgingController.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:21:31
|
||||
* @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.EmisNotCalcAging;
|
||||
import com.xdadan.erp.emis.service.IEmisNotCalcAgingService;
|
||||
|
||||
/**
|
||||
* 不计时效维护Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:21:31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisNotCalcAging")
|
||||
public class EmisNotCalcAgingController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisNotCalcAgingService emisNotCalcAgingService;
|
||||
|
||||
/**
|
||||
* 查询不计时效维护列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisNotCalcAging:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisNotCalcAging emisNotCalcAging)
|
||||
{
|
||||
startPage();
|
||||
List<EmisNotCalcAging> list = emisNotCalcAgingService.selectEmisNotCalcAgingList(emisNotCalcAging);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出不计时效维护列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisNotCalcAging:export')")
|
||||
@Log(title = "不计时效维护", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisNotCalcAging emisNotCalcAging)
|
||||
{
|
||||
List<EmisNotCalcAging> list = emisNotCalcAgingService.selectEmisNotCalcAgingList(emisNotCalcAging);
|
||||
ExcelUtil<EmisNotCalcAging> util = new ExcelUtil<EmisNotCalcAging>(EmisNotCalcAging.class);
|
||||
util.exportExcel(response, list, "不计时效维护数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取不计时效维护详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisNotCalcAging:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisNotCalcAgingService.selectEmisNotCalcAgingById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增不计时效维护
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisNotCalcAging:add')")
|
||||
@Log(title = "不计时效维护", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisNotCalcAging emisNotCalcAging)
|
||||
{
|
||||
return toAjax(emisNotCalcAgingService.insertEmisNotCalcAging(emisNotCalcAging));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改不计时效维护
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisNotCalcAging:edit')")
|
||||
@Log(title = "不计时效维护", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisNotCalcAging emisNotCalcAging)
|
||||
{
|
||||
return toAjax(emisNotCalcAgingService.updateEmisNotCalcAging(emisNotCalcAging));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除不计时效维护
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisNotCalcAging:remove')")
|
||||
@Log(title = "不计时效维护", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisNotCalcAgingService.deleteEmisNotCalcAgingByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,118 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSpecialCalcWeightController.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 06:50:43
|
||||
* @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.EmisSpecialCalcWeight;
|
||||
import com.xdadan.erp.emis.service.IEmisSpecialCalcWeightService;
|
||||
|
||||
/**
|
||||
* 特殊取重Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-01-10 06:50:43
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisSpecialCalcWeight")
|
||||
public class EmisSpecialCalcWeightController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisSpecialCalcWeightService emisSpecialCalcWeightService;
|
||||
|
||||
/**
|
||||
* 查询特殊取重列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSpecialCalcWeight:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisSpecialCalcWeight emisSpecialCalcWeight)
|
||||
{
|
||||
startPage();
|
||||
List<EmisSpecialCalcWeight> list = emisSpecialCalcWeightService.selectEmisSpecialCalcWeightList(emisSpecialCalcWeight);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出特殊取重列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSpecialCalcWeight:export')")
|
||||
@Log(title = "特殊取重", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisSpecialCalcWeight emisSpecialCalcWeight)
|
||||
{
|
||||
List<EmisSpecialCalcWeight> list = emisSpecialCalcWeightService.selectEmisSpecialCalcWeightList(emisSpecialCalcWeight);
|
||||
ExcelUtil<EmisSpecialCalcWeight> util = new ExcelUtil<EmisSpecialCalcWeight>(EmisSpecialCalcWeight.class);
|
||||
util.exportExcel(response, list, "特殊取重数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取特殊取重详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSpecialCalcWeight:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisSpecialCalcWeightService.selectEmisSpecialCalcWeightById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增特殊取重
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSpecialCalcWeight:add')")
|
||||
@Log(title = "特殊取重", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisSpecialCalcWeight emisSpecialCalcWeight)
|
||||
{
|
||||
return toAjax(emisSpecialCalcWeightService.insertEmisSpecialCalcWeight(emisSpecialCalcWeight));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改特殊取重
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSpecialCalcWeight:edit')")
|
||||
@Log(title = "特殊取重", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisSpecialCalcWeight emisSpecialCalcWeight)
|
||||
{
|
||||
return toAjax(emisSpecialCalcWeightService.updateEmisSpecialCalcWeight(emisSpecialCalcWeight));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除特殊取重
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSpecialCalcWeight:remove')")
|
||||
@Log(title = "特殊取重", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisSpecialCalcWeightService.deleteEmisSpecialCalcWeightByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisNotCalcAging.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:33:52
|
||||
* @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 EmisNotCalcAging
|
||||
* @Description 不计时效维护
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:33:52
|
||||
*/
|
||||
@Data
|
||||
public class EmisNotCalcAging extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* 序号 */
|
||||
private Long id;
|
||||
/* 不计时效名称 */
|
||||
private String name;
|
||||
/* 英文名称 */
|
||||
private String nameEn;
|
||||
/* 所属国家,可能多个国家,逗号隔开 */
|
||||
private String country;
|
||||
/* 开始日期(含当日) */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date beginDate;
|
||||
/* 结束日期(含当日) */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endDate;
|
||||
/* 启用状态 0-启用 1-停用 */
|
||||
private Integer status;
|
||||
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSpecialCalcWeight.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 06:50:43
|
||||
* @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 EmisSpecialCalcWeight
|
||||
* @Description 特殊取重
|
||||
* @author linfso
|
||||
* @date 2024-01-10 06:50:43
|
||||
*/
|
||||
@Data
|
||||
public class EmisSpecialCalcWeight extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* 序号 */
|
||||
private Long id;
|
||||
/* 产品类型代码 */
|
||||
private String prodCode;
|
||||
/* 产品类型名称 */
|
||||
private String prodName;
|
||||
/* 启用状态 0-启用 1-停用 */
|
||||
private Integer status;
|
||||
/* 取重方式 */
|
||||
private String carryType;
|
||||
/* 起始重量 */
|
||||
private BigDecimal beginWeight;
|
||||
/* 结束重量 */
|
||||
private BigDecimal endWeight;
|
||||
/* 起始时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date beginDate;
|
||||
/* 结束时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date endDate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisNotCalcAgingMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:21:31
|
||||
* @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.EmisNotCalcAging;
|
||||
/**
|
||||
* @ClassName EmisNotCalcAgingMapper
|
||||
* @Description <p> 不计时效维护 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:21:31
|
||||
*/
|
||||
public interface EmisNotCalcAgingMapper extends BaseMapper<EmisNotCalcAging>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisNotCalcAging selectEmisNotCalcAgingById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisNotCalcAging
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisNotCalcAging> selectEmisNotCalcAgingList(EmisNotCalcAging emisNotCalcAging);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisNotCalcAging
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisNotCalcAging(EmisNotCalcAging emisNotCalcAging);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisNotCalcAging
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisNotCalcAging(EmisNotCalcAging emisNotCalcAging);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisNotCalcAgingById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisNotCalcAgingByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSpecialCalcWeightMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 06:50:43
|
||||
* @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.EmisSpecialCalcWeight;
|
||||
/**
|
||||
* @ClassName EmisSpecialCalcWeightMapper
|
||||
* @Description <p> 特殊取重 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-01-10 06:50:43
|
||||
*/
|
||||
public interface EmisSpecialCalcWeightMapper extends BaseMapper<EmisSpecialCalcWeight>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSpecialCalcWeight selectEmisSpecialCalcWeightById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisSpecialCalcWeight
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisSpecialCalcWeight> selectEmisSpecialCalcWeightList(EmisSpecialCalcWeight emisSpecialCalcWeight);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisSpecialCalcWeight
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisSpecialCalcWeight(EmisSpecialCalcWeight emisSpecialCalcWeight);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisSpecialCalcWeight
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisSpecialCalcWeight(EmisSpecialCalcWeight emisSpecialCalcWeight);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSpecialCalcWeightById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSpecialCalcWeightByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisNotCalcAgingService.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:21:31
|
||||
* @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.EmisNotCalcAging;
|
||||
|
||||
/**
|
||||
* @ClassName EmisNotCalcAgingService
|
||||
* @Description 不计时效维护
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:21:31
|
||||
*/
|
||||
public interface IEmisNotCalcAgingService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisNotCalcAging selectEmisNotCalcAgingById(Long id);
|
||||
|
||||
/**
|
||||
* 查询不计时效维护列表
|
||||
*
|
||||
* @param emisNotCalcAging 不计时效维护
|
||||
* @return 不计时效维护集合
|
||||
*/
|
||||
public List<EmisNotCalcAging> selectEmisNotCalcAgingList(EmisNotCalcAging emisNotCalcAging);
|
||||
|
||||
/**
|
||||
* 新增不计时效维护
|
||||
*
|
||||
* @param emisNotCalcAging 不计时效维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisNotCalcAging(EmisNotCalcAging emisNotCalcAging);
|
||||
|
||||
/**
|
||||
* 修改不计时效维护
|
||||
*
|
||||
* @param emisNotCalcAging 不计时效维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisNotCalcAging(EmisNotCalcAging emisNotCalcAging);
|
||||
|
||||
/**
|
||||
* 批量删除不计时效维护
|
||||
*
|
||||
* @param ids 需要删除的不计时效维护主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisNotCalcAgingByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除不计时效维护信息
|
||||
*
|
||||
* @param id 不计时效维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisNotCalcAgingById(Long id);
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSpecialCalcWeightService.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 06:50:43
|
||||
* @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.EmisSpecialCalcWeight;
|
||||
|
||||
/**
|
||||
* @ClassName EmisSpecialCalcWeightService
|
||||
* @Description 特殊取重
|
||||
* @author linfso
|
||||
* @date 2024-01-10 06:50:43
|
||||
*/
|
||||
public interface IEmisSpecialCalcWeightService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSpecialCalcWeight selectEmisSpecialCalcWeightById(Long id);
|
||||
|
||||
/**
|
||||
* 查询特殊取重列表
|
||||
*
|
||||
* @param emisSpecialCalcWeight 特殊取重
|
||||
* @return 特殊取重集合
|
||||
*/
|
||||
public List<EmisSpecialCalcWeight> selectEmisSpecialCalcWeightList(EmisSpecialCalcWeight emisSpecialCalcWeight);
|
||||
|
||||
/**
|
||||
* 新增特殊取重
|
||||
*
|
||||
* @param emisSpecialCalcWeight 特殊取重
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisSpecialCalcWeight(EmisSpecialCalcWeight emisSpecialCalcWeight);
|
||||
|
||||
/**
|
||||
* 修改特殊取重
|
||||
*
|
||||
* @param emisSpecialCalcWeight 特殊取重
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisSpecialCalcWeight(EmisSpecialCalcWeight emisSpecialCalcWeight);
|
||||
|
||||
/**
|
||||
* 批量删除特殊取重
|
||||
*
|
||||
* @param ids 需要删除的特殊取重主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSpecialCalcWeightByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除特殊取重信息
|
||||
*
|
||||
* @param id 特殊取重主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSpecialCalcWeightById(Long id);
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisNotCalcAgingServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:21:31
|
||||
* @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.EmisNotCalcAging;
|
||||
import com.xdadan.erp.emis.mapper.EmisNotCalcAgingMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisNotCalcAgingService;
|
||||
|
||||
/**
|
||||
* 不计时效维护Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-01-10 07:21:31
|
||||
*/
|
||||
@Service
|
||||
public class EmisNotCalcAgingServiceImpl implements IEmisNotCalcAgingService
|
||||
{
|
||||
@Autowired
|
||||
private EmisNotCalcAgingMapper emisNotCalcAgingMapper;
|
||||
|
||||
/**
|
||||
* 查询不计时效维护
|
||||
*
|
||||
* @param id 不计时效维护主键
|
||||
* @return 不计时效维护
|
||||
*/
|
||||
@Override
|
||||
public EmisNotCalcAging selectEmisNotCalcAgingById(Long id)
|
||||
{
|
||||
return emisNotCalcAgingMapper.selectEmisNotCalcAgingById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询不计时效维护列表
|
||||
*
|
||||
* @param emisNotCalcAging 不计时效维护
|
||||
* @return 不计时效维护
|
||||
*/
|
||||
@Override
|
||||
public List<EmisNotCalcAging> selectEmisNotCalcAgingList(EmisNotCalcAging emisNotCalcAging)
|
||||
{
|
||||
return emisNotCalcAgingMapper.selectEmisNotCalcAgingList(emisNotCalcAging);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增不计时效维护
|
||||
*
|
||||
* @param emisNotCalcAging 不计时效维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisNotCalcAging(EmisNotCalcAging emisNotCalcAging)
|
||||
{
|
||||
return emisNotCalcAgingMapper.insertEmisNotCalcAging(emisNotCalcAging);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改不计时效维护
|
||||
*
|
||||
* @param emisNotCalcAging 不计时效维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisNotCalcAging(EmisNotCalcAging emisNotCalcAging)
|
||||
{
|
||||
return emisNotCalcAgingMapper.updateEmisNotCalcAging(emisNotCalcAging);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除不计时效维护
|
||||
*
|
||||
* @param ids 需要删除的不计时效维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisNotCalcAgingByIds(Long[] ids)
|
||||
{
|
||||
return emisNotCalcAgingMapper.deleteEmisNotCalcAgingByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除不计时效维护信息
|
||||
*
|
||||
* @param id 不计时效维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisNotCalcAgingById(Long id)
|
||||
{
|
||||
return emisNotCalcAgingMapper.deleteEmisNotCalcAgingById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSpecialCalcWeightServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-01-10 06:50:43
|
||||
* @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.EmisSpecialCalcWeight;
|
||||
import com.xdadan.erp.emis.mapper.EmisSpecialCalcWeightMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisSpecialCalcWeightService;
|
||||
|
||||
/**
|
||||
* 特殊取重Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-01-10 06:50:43
|
||||
*/
|
||||
@Service
|
||||
public class EmisSpecialCalcWeightServiceImpl implements IEmisSpecialCalcWeightService
|
||||
{
|
||||
@Autowired
|
||||
private EmisSpecialCalcWeightMapper emisSpecialCalcWeightMapper;
|
||||
|
||||
/**
|
||||
* 查询特殊取重
|
||||
*
|
||||
* @param id 特殊取重主键
|
||||
* @return 特殊取重
|
||||
*/
|
||||
@Override
|
||||
public EmisSpecialCalcWeight selectEmisSpecialCalcWeightById(Long id)
|
||||
{
|
||||
return emisSpecialCalcWeightMapper.selectEmisSpecialCalcWeightById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询特殊取重列表
|
||||
*
|
||||
* @param emisSpecialCalcWeight 特殊取重
|
||||
* @return 特殊取重
|
||||
*/
|
||||
@Override
|
||||
public List<EmisSpecialCalcWeight> selectEmisSpecialCalcWeightList(EmisSpecialCalcWeight emisSpecialCalcWeight)
|
||||
{
|
||||
return emisSpecialCalcWeightMapper.selectEmisSpecialCalcWeightList(emisSpecialCalcWeight);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增特殊取重
|
||||
*
|
||||
* @param emisSpecialCalcWeight 特殊取重
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisSpecialCalcWeight(EmisSpecialCalcWeight emisSpecialCalcWeight)
|
||||
{
|
||||
return emisSpecialCalcWeightMapper.insertEmisSpecialCalcWeight(emisSpecialCalcWeight);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改特殊取重
|
||||
*
|
||||
* @param emisSpecialCalcWeight 特殊取重
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisSpecialCalcWeight(EmisSpecialCalcWeight emisSpecialCalcWeight)
|
||||
{
|
||||
return emisSpecialCalcWeightMapper.updateEmisSpecialCalcWeight(emisSpecialCalcWeight);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除特殊取重
|
||||
*
|
||||
* @param ids 需要删除的特殊取重主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSpecialCalcWeightByIds(Long[] ids)
|
||||
{
|
||||
return emisSpecialCalcWeightMapper.deleteEmisSpecialCalcWeightByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除特殊取重信息
|
||||
*
|
||||
* @param id 特殊取重主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSpecialCalcWeightById(Long id)
|
||||
{
|
||||
return emisSpecialCalcWeightMapper.deleteEmisSpecialCalcWeightById(id);
|
||||
}
|
||||
|
||||
}
|
||||
121
emis-biz/src/main/resources/mapper/EmisNotCalcAgingMapper.xml
Normal file
121
emis-biz/src/main/resources/mapper/EmisNotCalcAgingMapper.xml
Normal file
@ -0,0 +1,121 @@
|
||||
<?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.EmisNotCalcAgingMapper">
|
||||
|
||||
<resultMap type="EmisNotCalcAging" id="EmisNotCalcAgingResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="nameEn" column="name_en" />
|
||||
<result property="country" column="country" />
|
||||
<result property="beginDate" column="begin_date" />
|
||||
<result property="endDate" column="end_date" />
|
||||
<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" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisNotCalcAgingVo">
|
||||
select id, name, name_en, country, begin_date, end_date, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_not_calc_aging
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisNotCalcAgingList" parameterType="EmisNotCalcAging" resultMap="EmisNotCalcAgingResult">
|
||||
<include refid="selectEmisNotCalcAgingVo"/>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="nameEn != null and nameEn != ''"> and name_en like concat('%', #{nameEn}, '%')</if>
|
||||
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
|
||||
<if test="beginDate != null "> and begin_date = #{beginDate}</if>
|
||||
<if test="endDate != null "> and end_date = #{endDate}</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>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectEmisNotCalcAgingById" parameterType="Long" resultMap="EmisNotCalcAgingResult">
|
||||
select id, name, name_en, country, begin_date, end_date, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||
from emis_not_calc_aging a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisNotCalcAging" parameterType="EmisNotCalcAging">
|
||||
insert into emis_not_calc_aging
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="nameEn != null and nameEn != ''">name_en,</if>
|
||||
<if test="country != null and country != ''">country,</if>
|
||||
<if test="beginDate != null">begin_date,</if>
|
||||
<if test="endDate != null">end_date,</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>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="nameEn != null and nameEn != ''">#{nameEn},</if>
|
||||
<if test="country != null and country != ''">#{country},</if>
|
||||
<if test="beginDate != null">#{beginDate},</if>
|
||||
<if test="endDate != null">#{endDate},</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>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisNotCalcAging" parameterType="EmisNotCalcAging">
|
||||
update emis_not_calc_aging
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="nameEn != null and nameEn != ''">name_en = #{nameEn},</if>
|
||||
<if test="country != null and country != ''">country = #{country},</if>
|
||||
<if test="beginDate != null">begin_date = #{beginDate},</if>
|
||||
<if test="endDate != null">end_date = #{endDate},</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>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisNotCalcAgingById" parameterType="Long">
|
||||
delete from emis_not_calc_aging where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisNotCalcAgingByIds" parameterType="String">
|
||||
delete from emis_not_calc_aging where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,131 @@
|
||||
<?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.EmisSpecialCalcWeightMapper">
|
||||
|
||||
<resultMap type="EmisSpecialCalcWeight" id="EmisSpecialCalcWeightResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="prodCode" column="prod_code" />
|
||||
<result property="prodName" column="prod_name" />
|
||||
<result property="status" column="status" />
|
||||
<result property="carryType" column="carry_type" />
|
||||
<result property="beginWeight" column="begin_weight" />
|
||||
<result property="endWeight" column="end_weight" />
|
||||
<result property="beginDate" column="begin_date" />
|
||||
<result property="endDate" column="end_date" />
|
||||
<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" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisSpecialCalcWeightVo">
|
||||
select id, prod_code, prod_name, status, carry_type, begin_weight, end_weight, begin_date, end_date, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_special_calc_weight
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisSpecialCalcWeightList" parameterType="EmisSpecialCalcWeight" resultMap="EmisSpecialCalcWeightResult">
|
||||
<include refid="selectEmisSpecialCalcWeightVo"/>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</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="status != null "> and status = #{status}</if>
|
||||
<if test="carryType != null and carryType != ''"> and carry_type like concat('%', #{carryType}, '%')</if>
|
||||
<if test="beginWeight != null "> and begin_weight = #{beginWeight}</if>
|
||||
<if test="endWeight != null "> and end_weight = #{endWeight}</if>
|
||||
<if test="beginDate != null "> and begin_date = #{beginDate}</if>
|
||||
<if test="endDate != null "> and end_date = #{endDate}</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>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectEmisSpecialCalcWeightById" parameterType="Long" resultMap="EmisSpecialCalcWeightResult">
|
||||
select id, prod_code, prod_name, status, carry_type, begin_weight, end_weight, begin_date, end_date, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||
from emis_special_calc_weight a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisSpecialCalcWeight" parameterType="EmisSpecialCalcWeight">
|
||||
insert into emis_special_calc_weight
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="prodCode != null and prodCode != ''">prod_code,</if>
|
||||
<if test="prodName != null and prodName != ''">prod_name,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="carryType != null and carryType != ''">carry_type,</if>
|
||||
<if test="beginWeight != null">begin_weight,</if>
|
||||
<if test="endWeight != null">end_weight,</if>
|
||||
<if test="beginDate != null">begin_date,</if>
|
||||
<if test="endDate != null">end_date,</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>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="prodCode != null and prodCode != ''">#{prodCode},</if>
|
||||
<if test="prodName != null and prodName != ''">#{prodName},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="carryType != null and carryType != ''">#{carryType},</if>
|
||||
<if test="beginWeight != null">#{beginWeight},</if>
|
||||
<if test="endWeight != null">#{endWeight},</if>
|
||||
<if test="beginDate != null">#{beginDate},</if>
|
||||
<if test="endDate != null">#{endDate},</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>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisSpecialCalcWeight" parameterType="EmisSpecialCalcWeight">
|
||||
update emis_special_calc_weight
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="prodCode != null and prodCode != ''">prod_code = #{prodCode},</if>
|
||||
<if test="prodName != null and prodName != ''">prod_name = #{prodName},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="carryType != null and carryType != ''">carry_type = #{carryType},</if>
|
||||
<if test="beginWeight != null">begin_weight = #{beginWeight},</if>
|
||||
<if test="endWeight != null">end_weight = #{endWeight},</if>
|
||||
<if test="beginDate != null">begin_date = #{beginDate},</if>
|
||||
<if test="endDate != null">end_date = #{endDate},</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>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisSpecialCalcWeightById" parameterType="Long">
|
||||
delete from emis_special_calc_weight where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisSpecialCalcWeightByIds" parameterType="String">
|
||||
delete from emis_special_calc_weight where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user