md
This commit is contained in:
parent
373d8ed225
commit
40af6e50fe
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayBillRelController.java
|
||||
* @author linfso
|
||||
* @date 2025-05-05 08:31:36
|
||||
* @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.EmisSettlePayBillRel;
|
||||
import com.xdadan.erp.emis.service.IEmisSettlePayBillRelService;
|
||||
|
||||
/**
|
||||
* 付款账单关联表Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-05-05 08:31:36
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisSettlePayBillRel")
|
||||
public class EmisSettlePayBillRelController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisSettlePayBillRelService emisSettlePayBillRelService;
|
||||
|
||||
/**
|
||||
* 查询付款账单关联表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayBillRel:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisSettlePayBillRel emisSettlePayBillRel)
|
||||
{
|
||||
startPage();
|
||||
List<EmisSettlePayBillRel> list = emisSettlePayBillRelService.selectEmisSettlePayBillRelList(emisSettlePayBillRel);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayBillRel
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayBillRel:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisSettlePayBillRel emisSettlePayBillRel)
|
||||
{
|
||||
int cnt=emisSettlePayBillRelService.checkUnique(emisSettlePayBillRel);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出付款账单关联表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayBillRel:export')")
|
||||
@Log(title = "付款账单关联表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisSettlePayBillRel emisSettlePayBillRel)
|
||||
{
|
||||
List<EmisSettlePayBillRel> list = emisSettlePayBillRelService.selectEmisSettlePayBillRelList(emisSettlePayBillRel);
|
||||
ExcelUtil<EmisSettlePayBillRel> util = new ExcelUtil<EmisSettlePayBillRel>(EmisSettlePayBillRel.class);
|
||||
util.exportExcel(response, list, "付款账单关联表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取付款账单关联表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayBillRel:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisSettlePayBillRelService.selectEmisSettlePayBillRelById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增付款账单关联表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayBillRel:add')")
|
||||
@Log(title = "付款账单关联表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisSettlePayBillRel emisSettlePayBillRel)
|
||||
{
|
||||
return toAjax(emisSettlePayBillRelService.insertEmisSettlePayBillRel(emisSettlePayBillRel));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改付款账单关联表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayBillRel:edit')")
|
||||
@Log(title = "付款账单关联表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisSettlePayBillRel emisSettlePayBillRel)
|
||||
{
|
||||
return toAjax(emisSettlePayBillRelService.updateEmisSettlePayBillRel(emisSettlePayBillRel));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除付款账单关联表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettlePayBillRel:remove')")
|
||||
@Log(title = "付款账单关联表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisSettlePayBillRelService.deleteEmisSettlePayBillRelByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayBillRel.java
|
||||
* @author linfso
|
||||
* @date 2025-05-05 08:31:36
|
||||
* @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 EmisSettlePayBillRel
|
||||
* @Description 付款账单关联表
|
||||
* @author linfso
|
||||
* @date 2025-05-05 08:31:36
|
||||
*/
|
||||
@Data
|
||||
public class EmisSettlePayBillRel extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 支付序号 */
|
||||
private String payId;
|
||||
/* 账单号编号 */
|
||||
private String settleBillNo;
|
||||
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayBillRelMapper.java
|
||||
* @author linfso
|
||||
* @date 2025-05-05 08:31:36
|
||||
* @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.EmisSettlePayBillRel;
|
||||
/**
|
||||
* @ClassName EmisSettlePayBillRelMapper
|
||||
* @Description <p> 付款账单关联表 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2025-05-05 08:31:36
|
||||
*/
|
||||
public interface EmisSettlePayBillRelMapper extends BaseMapper<EmisSettlePayBillRel>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettlePayBillRel selectEmisSettlePayBillRelById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisSettlePayBillRel
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisSettlePayBillRel> selectEmisSettlePayBillRelList(EmisSettlePayBillRel emisSettlePayBillRel);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayBillRel
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettlePayBillRel emisSettlePayBillRel);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisSettlePayBillRel
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisSettlePayBillRel(EmisSettlePayBillRel emisSettlePayBillRel);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisSettlePayBillRel
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisSettlePayBillRel(EmisSettlePayBillRel emisSettlePayBillRel);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayBillRelById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayBillRelByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayBillRelService.java
|
||||
* @author linfso
|
||||
* @date 2025-05-05 08:31:36
|
||||
* @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.EmisSettlePayBillRel;
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettlePayBillRelService
|
||||
* @Description 付款账单关联表
|
||||
* @author linfso
|
||||
* @date 2025-05-05 08:31:36
|
||||
*/
|
||||
public interface IEmisSettlePayBillRelService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettlePayBillRel selectEmisSettlePayBillRelById(Long id);
|
||||
|
||||
/**
|
||||
* 查询付款账单关联表列表
|
||||
*
|
||||
* @param emisSettlePayBillRel 付款账单关联表
|
||||
* @return 付款账单关联表集合
|
||||
*/
|
||||
public List<EmisSettlePayBillRel> selectEmisSettlePayBillRelList(EmisSettlePayBillRel emisSettlePayBillRel);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayBillRel
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettlePayBillRel emisSettlePayBillRel);
|
||||
|
||||
/**
|
||||
* 新增付款账单关联表
|
||||
*
|
||||
* @param emisSettlePayBillRel 付款账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisSettlePayBillRel(EmisSettlePayBillRel emisSettlePayBillRel);
|
||||
|
||||
/**
|
||||
* 修改付款账单关联表
|
||||
*
|
||||
* @param emisSettlePayBillRel 付款账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisSettlePayBillRel(EmisSettlePayBillRel emisSettlePayBillRel);
|
||||
|
||||
/**
|
||||
* 批量删除付款账单关联表
|
||||
*
|
||||
* @param ids 需要删除的付款账单关联表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayBillRelByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除付款账单关联表信息
|
||||
*
|
||||
* @param id 付款账单关联表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettlePayBillRelById(Long id);
|
||||
}
|
||||
@ -591,6 +591,8 @@ public class EmisSettleBillServiceImpl extends EmisBaseService implements IEmisS
|
||||
if (sumMoney.compareTo(subBill.getBillFee()) >= 0) {
|
||||
openBillStatusDesc="已开票";
|
||||
updEmisSettleSubBill.setOpenBillStatus("1");
|
||||
// 更新每一单的开票状态
|
||||
emisSettleSubBillMapper.updateOpenBillStatus(updEmisSettleSubBill);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettlePayBillRelServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2025-05-05 08:31:36
|
||||
* @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.EmisSettlePayBillRel;
|
||||
import com.xdadan.erp.emis.mapper.EmisSettlePayBillRelMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisSettlePayBillRelService;
|
||||
|
||||
/**
|
||||
* 付款账单关联表Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2025-05-05 08:31:36
|
||||
*/
|
||||
@Service
|
||||
public class EmisSettlePayBillRelServiceImpl implements IEmisSettlePayBillRelService
|
||||
{
|
||||
@Autowired
|
||||
private EmisSettlePayBillRelMapper emisSettlePayBillRelMapper;
|
||||
|
||||
/**
|
||||
* 查询付款账单关联表
|
||||
*
|
||||
* @param id 付款账单关联表主键
|
||||
* @return 付款账单关联表
|
||||
*/
|
||||
@Override
|
||||
public EmisSettlePayBillRel selectEmisSettlePayBillRelById(Long id)
|
||||
{
|
||||
return emisSettlePayBillRelMapper.selectEmisSettlePayBillRelById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询付款账单关联表列表
|
||||
*
|
||||
* @param emisSettlePayBillRel 付款账单关联表
|
||||
* @return 付款账单关联表
|
||||
*/
|
||||
@Override
|
||||
public List<EmisSettlePayBillRel> selectEmisSettlePayBillRelList(EmisSettlePayBillRel emisSettlePayBillRel)
|
||||
{
|
||||
return emisSettlePayBillRelMapper.selectEmisSettlePayBillRelList(emisSettlePayBillRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettlePayBillRel
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisSettlePayBillRel emisSettlePayBillRel)
|
||||
{
|
||||
return emisSettlePayBillRelMapper.checkUnique(emisSettlePayBillRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增付款账单关联表
|
||||
*
|
||||
* @param emisSettlePayBillRel 付款账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisSettlePayBillRel(EmisSettlePayBillRel emisSettlePayBillRel)
|
||||
{
|
||||
return emisSettlePayBillRelMapper.insertEmisSettlePayBillRel(emisSettlePayBillRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改付款账单关联表
|
||||
*
|
||||
* @param emisSettlePayBillRel 付款账单关联表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisSettlePayBillRel(EmisSettlePayBillRel emisSettlePayBillRel)
|
||||
{
|
||||
return emisSettlePayBillRelMapper.updateEmisSettlePayBillRel(emisSettlePayBillRel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除付款账单关联表
|
||||
*
|
||||
* @param ids 需要删除的付款账单关联表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettlePayBillRelByIds(Long[] ids)
|
||||
{
|
||||
return emisSettlePayBillRelMapper.deleteEmisSettlePayBillRelByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除付款账单关联表信息
|
||||
*
|
||||
* @param id 付款账单关联表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettlePayBillRelById(Long id)
|
||||
{
|
||||
return emisSettlePayBillRelMapper.deleteEmisSettlePayBillRelById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,111 @@
|
||||
<?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.EmisSettlePayBillRelMapper">
|
||||
|
||||
<resultMap type="EmisSettlePayBillRel" id="EmisSettlePayBillRelResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="payId" column="pay_id" />
|
||||
<result property="settleBillNo" column="settle_bill_no" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisSettlePayBillRelVo">
|
||||
select id, pay_id, settle_bill_no, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_pay_bill_rel
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisSettlePayBillRelList" parameterType="EmisSettlePayBillRel" resultMap="EmisSettlePayBillRelResult">
|
||||
<include refid="selectEmisSettlePayBillRelVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="payId != null and payId != ''"> and pay_id like concat('%', #{payId}, '%')</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''"> and settle_bill_no like concat('%', #{settleBillNo}, '%')</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="EmisSettlePayBillRel" resultType="int">
|
||||
select count(1) from emis_settle_pay_bill_rel
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and pay_id = #{payId}
|
||||
and settle_bill_no = #{settleBillNo}
|
||||
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="selectEmisSettlePayBillRelById" parameterType="Long" resultMap="EmisSettlePayBillRelResult">
|
||||
select id, pay_id, settle_bill_no, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_settle_pay_bill_rel a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisSettlePayBillRel" parameterType="EmisSettlePayBillRel" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_settle_pay_bill_rel
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="payId != null and payId != ''">pay_id,</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no,</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="payId != null and payId != ''">#{payId},</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">#{settleBillNo},</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="updateEmisSettlePayBillRel" parameterType="EmisSettlePayBillRel">
|
||||
update emis_settle_pay_bill_rel
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="payId != null and payId != ''">pay_id = #{payId},</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no = #{settleBillNo},</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="deleteEmisSettlePayBillRelById" parameterType="Long">
|
||||
delete from emis_settle_pay_bill_rel where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisSettlePayBillRelByIds" parameterType="String">
|
||||
delete from emis_settle_pay_bill_rel where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user