md
This commit is contained in:
parent
64ae4941db
commit
de0f3b9f4d
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisBaseInvoiceChInfoController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:07
|
||||
* @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.EmisBaseInvoiceChInfo;
|
||||
import com.xdadan.erp.emis.service.IEmisBaseInvoiceChInfoService;
|
||||
|
||||
/**
|
||||
* 航信等渠道开票信息维护Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:07
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisBaseInvoiceChInfo")
|
||||
public class EmisBaseInvoiceChInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisBaseInvoiceChInfoService emisBaseInvoiceChInfoService;
|
||||
|
||||
/**
|
||||
* 查询航信等渠道开票信息维护列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceChInfo:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo)
|
||||
{
|
||||
startPage();
|
||||
List<EmisBaseInvoiceChInfo> list = emisBaseInvoiceChInfoService.selectEmisBaseInvoiceChInfoList(emisBaseInvoiceChInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceChInfo:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo)
|
||||
{
|
||||
int cnt=emisBaseInvoiceChInfoService.checkUnique(emisBaseInvoiceChInfo);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出航信等渠道开票信息维护列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceChInfo:export')")
|
||||
@Log(title = "航信等渠道开票信息维护", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisBaseInvoiceChInfo emisBaseInvoiceChInfo)
|
||||
{
|
||||
List<EmisBaseInvoiceChInfo> list = emisBaseInvoiceChInfoService.selectEmisBaseInvoiceChInfoList(emisBaseInvoiceChInfo);
|
||||
ExcelUtil<EmisBaseInvoiceChInfo> util = new ExcelUtil<EmisBaseInvoiceChInfo>(EmisBaseInvoiceChInfo.class);
|
||||
util.exportExcel(response, list, "航信等渠道开票信息维护数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取航信等渠道开票信息维护详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceChInfo:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisBaseInvoiceChInfoService.selectEmisBaseInvoiceChInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增航信等渠道开票信息维护
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceChInfo:add')")
|
||||
@Log(title = "航信等渠道开票信息维护", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisBaseInvoiceChInfo emisBaseInvoiceChInfo)
|
||||
{
|
||||
return toAjax(emisBaseInvoiceChInfoService.insertEmisBaseInvoiceChInfo(emisBaseInvoiceChInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改航信等渠道开票信息维护
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceChInfo:edit')")
|
||||
@Log(title = "航信等渠道开票信息维护", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisBaseInvoiceChInfo emisBaseInvoiceChInfo)
|
||||
{
|
||||
return toAjax(emisBaseInvoiceChInfoService.updateEmisBaseInvoiceChInfo(emisBaseInvoiceChInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除航信等渠道开票信息维护
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisBaseInvoiceChInfo:remove')")
|
||||
@Log(title = "航信等渠道开票信息维护", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisBaseInvoiceChInfoService.deleteEmisBaseInvoiceChInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceChRecordController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:08
|
||||
* @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.EmisSettleInvoiceChRecord;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleInvoiceChRecordService;
|
||||
|
||||
/**
|
||||
* 渠道开票记录表Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:08
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisSettleInvoiceChRecord")
|
||||
public class EmisSettleInvoiceChRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisSettleInvoiceChRecordService emisSettleInvoiceChRecordService;
|
||||
|
||||
/**
|
||||
* 查询渠道开票记录表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceChRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord)
|
||||
{
|
||||
startPage();
|
||||
List<EmisSettleInvoiceChRecord> list = emisSettleInvoiceChRecordService.selectEmisSettleInvoiceChRecordList(emisSettleInvoiceChRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceChRecord:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord)
|
||||
{
|
||||
int cnt=emisSettleInvoiceChRecordService.checkUnique(emisSettleInvoiceChRecord);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出渠道开票记录表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceChRecord:export')")
|
||||
@Log(title = "渠道开票记录表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisSettleInvoiceChRecord emisSettleInvoiceChRecord)
|
||||
{
|
||||
List<EmisSettleInvoiceChRecord> list = emisSettleInvoiceChRecordService.selectEmisSettleInvoiceChRecordList(emisSettleInvoiceChRecord);
|
||||
ExcelUtil<EmisSettleInvoiceChRecord> util = new ExcelUtil<EmisSettleInvoiceChRecord>(EmisSettleInvoiceChRecord.class);
|
||||
util.exportExcel(response, list, "渠道开票记录表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取渠道开票记录表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceChRecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisSettleInvoiceChRecordService.selectEmisSettleInvoiceChRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增渠道开票记录表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceChRecord:add')")
|
||||
@Log(title = "渠道开票记录表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisSettleInvoiceChRecord emisSettleInvoiceChRecord)
|
||||
{
|
||||
return toAjax(emisSettleInvoiceChRecordService.insertEmisSettleInvoiceChRecord(emisSettleInvoiceChRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改渠道开票记录表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceChRecord:edit')")
|
||||
@Log(title = "渠道开票记录表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisSettleInvoiceChRecord emisSettleInvoiceChRecord)
|
||||
{
|
||||
return toAjax(emisSettleInvoiceChRecordService.updateEmisSettleInvoiceChRecord(emisSettleInvoiceChRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除渠道开票记录表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleInvoiceChRecord:remove')")
|
||||
@Log(title = "渠道开票记录表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisSettleInvoiceChRecordService.deleteEmisSettleInvoiceChRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisBaseInvoiceChInfo.java
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:07
|
||||
* @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 EmisBaseInvoiceChInfo
|
||||
* @Description 航信等渠道开票信息维护
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:07
|
||||
*/
|
||||
@Data
|
||||
public class EmisBaseInvoiceChInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 渠道id */
|
||||
private String chId;
|
||||
/* 渠道名称 */
|
||||
private String chName;
|
||||
/* 公司名称 */
|
||||
private String companyName;
|
||||
/* 公司税号 */
|
||||
private String companyTaxNo;
|
||||
/* 电票编号 */
|
||||
private String ecAccount;
|
||||
/* 数电人名称 */
|
||||
private String ecName;
|
||||
/* app_key */
|
||||
private String appKey;
|
||||
/* app_secret */
|
||||
private String appSecret;
|
||||
/* token */
|
||||
private String token;
|
||||
/* token失效时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date tokenExpireTime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceChRecord.java
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:08
|
||||
* @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 EmisSettleInvoiceChRecord
|
||||
* @Description 渠道开票记录表
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:08
|
||||
*/
|
||||
@Data
|
||||
public class EmisSettleInvoiceChRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 渠道请求号 */
|
||||
private String reqNo;
|
||||
/* 发票申请序号 */
|
||||
private String applySeqNo;
|
||||
/* 是否电子发票 1-电子发票 2-纸质发票 */
|
||||
private String blEcinv;
|
||||
/* 开票类型 1-增值电子 */
|
||||
private String invoiceType;
|
||||
/* 实际开票类型 1-增值电子 */
|
||||
private String realInvoiceType;
|
||||
/* 开票名称 */
|
||||
private String companyName;
|
||||
/* 开票税号 */
|
||||
private String companyTaxNo;
|
||||
/* 开票电话 */
|
||||
private String companyTel;
|
||||
/* 开票地址 */
|
||||
private String companyAddress;
|
||||
/* 开户行 */
|
||||
private String bankName;
|
||||
/* 开户账号 */
|
||||
private String bankAccNo;
|
||||
/* 联系人 */
|
||||
private String contact;
|
||||
/* 联系电话 */
|
||||
private String phone;
|
||||
/* 税率 */
|
||||
private String taxRate;
|
||||
/* 开票金额 */
|
||||
private BigDecimal openMoney;
|
||||
/* 发票投递邮箱 */
|
||||
private String email;
|
||||
/* 销方开票名称 */
|
||||
private String salerCompanyName;
|
||||
/* 销方开票税号 */
|
||||
private String salerCompanyTaxNo;
|
||||
/* 销方开票电话 */
|
||||
private String salerCompanyTel;
|
||||
/* 销方开票地址 */
|
||||
private String salerCompanyAddress;
|
||||
/* 销方开户行 */
|
||||
private String salerBankName;
|
||||
/* 销方开户账号 */
|
||||
private String salerBankAccNo;
|
||||
/* 销方联系人 */
|
||||
private String salerContact;
|
||||
/* 销方联系电话 */
|
||||
private String salerPhone;
|
||||
/* 发票号 */
|
||||
private String invoiceNo;
|
||||
/* pdf下载路径 */
|
||||
private String filePath;
|
||||
/* qr路径 */
|
||||
private String qrPath;
|
||||
/* 操作人 */
|
||||
private String opManCode;
|
||||
/* 操作时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date opDate;
|
||||
/* 操作站点 */
|
||||
private String opSiteCode;
|
||||
/* 开票渠道编号 code -航信 HX */
|
||||
private String openChId;
|
||||
/* 开票渠道状态 0-待开票 1-已开票 2-拒绝开票 */
|
||||
private String openChStatus;
|
||||
/* 开票渠道描述 */
|
||||
private String openChStatusDesc;
|
||||
/* 使用的开票企业代码 */
|
||||
private String openComCode;
|
||||
/* 扩展信息,货物名称 */
|
||||
private String extData;
|
||||
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisBaseInvoiceChInfoMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:07
|
||||
* @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.EmisBaseInvoiceChInfo;
|
||||
/**
|
||||
* @ClassName EmisBaseInvoiceChInfoMapper
|
||||
* @Description <p> 航信等渠道开票信息维护 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:07
|
||||
*/
|
||||
public interface EmisBaseInvoiceChInfoMapper extends BaseMapper<EmisBaseInvoiceChInfo>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisBaseInvoiceChInfo selectEmisBaseInvoiceChInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisBaseInvoiceChInfo> selectEmisBaseInvoiceChInfoList(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisBaseInvoiceChInfo(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisBaseInvoiceChInfo(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisBaseInvoiceChInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisBaseInvoiceChInfoByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceChRecordMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:08
|
||||
* @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.EmisSettleInvoiceChRecord;
|
||||
/**
|
||||
* @ClassName EmisSettleInvoiceChRecordMapper
|
||||
* @Description <p> 渠道开票记录表 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:08
|
||||
*/
|
||||
public interface EmisSettleInvoiceChRecordMapper extends BaseMapper<EmisSettleInvoiceChRecord>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleInvoiceChRecord selectEmisSettleInvoiceChRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisSettleInvoiceChRecord> selectEmisSettleInvoiceChRecordList(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisSettleInvoiceChRecord(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisSettleInvoiceChRecord(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceChRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceChRecordByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisBaseInvoiceChInfoService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:07
|
||||
* @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.EmisBaseInvoiceChInfo;
|
||||
|
||||
/**
|
||||
* @ClassName EmisBaseInvoiceChInfoService
|
||||
* @Description 航信等渠道开票信息维护
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:07
|
||||
*/
|
||||
public interface IEmisBaseInvoiceChInfoService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisBaseInvoiceChInfo selectEmisBaseInvoiceChInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询航信等渠道开票信息维护列表
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo 航信等渠道开票信息维护
|
||||
* @return 航信等渠道开票信息维护集合
|
||||
*/
|
||||
public List<EmisBaseInvoiceChInfo> selectEmisBaseInvoiceChInfoList(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo);
|
||||
|
||||
/**
|
||||
* 新增航信等渠道开票信息维护
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo 航信等渠道开票信息维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisBaseInvoiceChInfo(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo);
|
||||
|
||||
/**
|
||||
* 修改航信等渠道开票信息维护
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo 航信等渠道开票信息维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisBaseInvoiceChInfo(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo);
|
||||
|
||||
/**
|
||||
* 批量删除航信等渠道开票信息维护
|
||||
*
|
||||
* @param ids 需要删除的航信等渠道开票信息维护主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisBaseInvoiceChInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除航信等渠道开票信息维护信息
|
||||
*
|
||||
* @param id 航信等渠道开票信息维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisBaseInvoiceChInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceChRecordService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:08
|
||||
* @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.EmisSettleInvoiceChRecord;
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleInvoiceChRecordService
|
||||
* @Description 渠道开票记录表
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:08
|
||||
*/
|
||||
public interface IEmisSettleInvoiceChRecordService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleInvoiceChRecord selectEmisSettleInvoiceChRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询渠道开票记录表列表
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord 渠道开票记录表
|
||||
* @return 渠道开票记录表集合
|
||||
*/
|
||||
public List<EmisSettleInvoiceChRecord> selectEmisSettleInvoiceChRecordList(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
||||
|
||||
/**
|
||||
* 新增渠道开票记录表
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord 渠道开票记录表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisSettleInvoiceChRecord(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
||||
|
||||
/**
|
||||
* 修改渠道开票记录表
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord 渠道开票记录表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisSettleInvoiceChRecord(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
||||
|
||||
/**
|
||||
* 批量删除渠道开票记录表
|
||||
*
|
||||
* @param ids 需要删除的渠道开票记录表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceChRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除渠道开票记录表信息
|
||||
*
|
||||
* @param id 渠道开票记录表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleInvoiceChRecordById(Long id);
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisBaseInvoiceChInfoServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:07
|
||||
* @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.EmisBaseInvoiceChInfo;
|
||||
import com.xdadan.erp.emis.mapper.EmisBaseInvoiceChInfoMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisBaseInvoiceChInfoService;
|
||||
|
||||
/**
|
||||
* 航信等渠道开票信息维护Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:07
|
||||
*/
|
||||
@Service
|
||||
public class EmisBaseInvoiceChInfoServiceImpl implements IEmisBaseInvoiceChInfoService
|
||||
{
|
||||
@Autowired
|
||||
private EmisBaseInvoiceChInfoMapper emisBaseInvoiceChInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询航信等渠道开票信息维护
|
||||
*
|
||||
* @param id 航信等渠道开票信息维护主键
|
||||
* @return 航信等渠道开票信息维护
|
||||
*/
|
||||
@Override
|
||||
public EmisBaseInvoiceChInfo selectEmisBaseInvoiceChInfoById(Long id)
|
||||
{
|
||||
return emisBaseInvoiceChInfoMapper.selectEmisBaseInvoiceChInfoById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询航信等渠道开票信息维护列表
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo 航信等渠道开票信息维护
|
||||
* @return 航信等渠道开票信息维护
|
||||
*/
|
||||
@Override
|
||||
public List<EmisBaseInvoiceChInfo> selectEmisBaseInvoiceChInfoList(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo)
|
||||
{
|
||||
return emisBaseInvoiceChInfoMapper.selectEmisBaseInvoiceChInfoList(emisBaseInvoiceChInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo)
|
||||
{
|
||||
return emisBaseInvoiceChInfoMapper.checkUnique(emisBaseInvoiceChInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增航信等渠道开票信息维护
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo 航信等渠道开票信息维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisBaseInvoiceChInfo(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo)
|
||||
{
|
||||
return emisBaseInvoiceChInfoMapper.insertEmisBaseInvoiceChInfo(emisBaseInvoiceChInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改航信等渠道开票信息维护
|
||||
*
|
||||
* @param emisBaseInvoiceChInfo 航信等渠道开票信息维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisBaseInvoiceChInfo(EmisBaseInvoiceChInfo emisBaseInvoiceChInfo)
|
||||
{
|
||||
return emisBaseInvoiceChInfoMapper.updateEmisBaseInvoiceChInfo(emisBaseInvoiceChInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除航信等渠道开票信息维护
|
||||
*
|
||||
* @param ids 需要删除的航信等渠道开票信息维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisBaseInvoiceChInfoByIds(Long[] ids)
|
||||
{
|
||||
return emisBaseInvoiceChInfoMapper.deleteEmisBaseInvoiceChInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除航信等渠道开票信息维护信息
|
||||
*
|
||||
* @param id 航信等渠道开票信息维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisBaseInvoiceChInfoById(Long id)
|
||||
{
|
||||
return emisBaseInvoiceChInfoMapper.deleteEmisBaseInvoiceChInfoById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleInvoiceChRecordServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:08
|
||||
* @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.EmisSettleInvoiceChRecord;
|
||||
import com.xdadan.erp.emis.mapper.EmisSettleInvoiceChRecordMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleInvoiceChRecordService;
|
||||
|
||||
/**
|
||||
* 渠道开票记录表Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-24 23:39:08
|
||||
*/
|
||||
@Service
|
||||
public class EmisSettleInvoiceChRecordServiceImpl implements IEmisSettleInvoiceChRecordService
|
||||
{
|
||||
@Autowired
|
||||
private EmisSettleInvoiceChRecordMapper emisSettleInvoiceChRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询渠道开票记录表
|
||||
*
|
||||
* @param id 渠道开票记录表主键
|
||||
* @return 渠道开票记录表
|
||||
*/
|
||||
@Override
|
||||
public EmisSettleInvoiceChRecord selectEmisSettleInvoiceChRecordById(Long id)
|
||||
{
|
||||
return emisSettleInvoiceChRecordMapper.selectEmisSettleInvoiceChRecordById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询渠道开票记录表列表
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord 渠道开票记录表
|
||||
* @return 渠道开票记录表
|
||||
*/
|
||||
@Override
|
||||
public List<EmisSettleInvoiceChRecord> selectEmisSettleInvoiceChRecordList(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord)
|
||||
{
|
||||
return emisSettleInvoiceChRecordMapper.selectEmisSettleInvoiceChRecordList(emisSettleInvoiceChRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord)
|
||||
{
|
||||
return emisSettleInvoiceChRecordMapper.checkUnique(emisSettleInvoiceChRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增渠道开票记录表
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord 渠道开票记录表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisSettleInvoiceChRecord(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord)
|
||||
{
|
||||
return emisSettleInvoiceChRecordMapper.insertEmisSettleInvoiceChRecord(emisSettleInvoiceChRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改渠道开票记录表
|
||||
*
|
||||
* @param emisSettleInvoiceChRecord 渠道开票记录表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisSettleInvoiceChRecord(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord)
|
||||
{
|
||||
return emisSettleInvoiceChRecordMapper.updateEmisSettleInvoiceChRecord(emisSettleInvoiceChRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除渠道开票记录表
|
||||
*
|
||||
* @param ids 需要删除的渠道开票记录表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleInvoiceChRecordByIds(Long[] ids)
|
||||
{
|
||||
return emisSettleInvoiceChRecordMapper.deleteEmisSettleInvoiceChRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除渠道开票记录表信息
|
||||
*
|
||||
* @param id 渠道开票记录表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleInvoiceChRecordById(Long id)
|
||||
{
|
||||
return emisSettleInvoiceChRecordMapper.deleteEmisSettleInvoiceChRecordById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,164 @@
|
||||
<?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.EmisBaseInvoiceChInfoMapper">
|
||||
|
||||
<resultMap type="EmisBaseInvoiceChInfo" id="EmisBaseInvoiceChInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="chId" column="ch_id" />
|
||||
<result property="chName" column="ch_name" />
|
||||
<result property="companyName" column="company_name" />
|
||||
<result property="companyTaxNo" column="company_tax_no" />
|
||||
<result property="ecAccount" column="ec_account" />
|
||||
<result property="ecName" column="ec_name" />
|
||||
<result property="appKey" column="app_key" />
|
||||
<result property="appSecret" column="app_secret" />
|
||||
<result property="token" column="token" />
|
||||
<result property="tokenExpireTime" column="token_expire_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisBaseInvoiceChInfoVo">
|
||||
select id, ch_id, ch_name, company_name, company_tax_no, ec_account, ec_name, app_key, app_secret, token, token_expire_time, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_base_invoice_ch_info
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisBaseInvoiceChInfoList" parameterType="EmisBaseInvoiceChInfo" resultMap="EmisBaseInvoiceChInfoResult">
|
||||
<include refid="selectEmisBaseInvoiceChInfoVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="chId != null and chId != ''"> and ch_id like concat('%', #{chId}, '%')</if>
|
||||
<if test="chName != null and chName != ''"> and ch_name like concat('%', #{chName}, '%')</if>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''"> and company_tax_no like concat('%', #{companyTaxNo}, '%')</if>
|
||||
<if test="ecAccount != null and ecAccount != ''"> and ec_account like concat('%', #{ecAccount}, '%')</if>
|
||||
<if test="ecName != null and ecName != ''"> and ec_name like concat('%', #{ecName}, '%')</if>
|
||||
<if test="appKey != null and appKey != ''"> and app_key like concat('%', #{appKey}, '%')</if>
|
||||
<if test="appSecret != null and appSecret != ''"> and app_secret like concat('%', #{appSecret}, '%')</if>
|
||||
<if test="token != null and token != ''"> and token like concat('%', #{token}, '%')</if>
|
||||
<if test="tokenExpireTime != null "> and token_expire_time = #{tokenExpireTime}</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="EmisBaseInvoiceChInfo" resultType="int">
|
||||
select count(1) from emis_base_invoice_ch_info
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and ch_id = #{chId}
|
||||
and ch_name = #{chName}
|
||||
and company_name = #{companyName}
|
||||
and company_tax_no = #{companyTaxNo}
|
||||
and ec_account = #{ecAccount}
|
||||
and ec_name = #{ecName}
|
||||
and app_key = #{appKey}
|
||||
and app_secret = #{appSecret}
|
||||
and token = #{token}
|
||||
and token_expire_time = #{tokenExpireTime}
|
||||
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="selectEmisBaseInvoiceChInfoById" parameterType="Long" resultMap="EmisBaseInvoiceChInfoResult">
|
||||
select id, ch_id, ch_name, company_name, company_tax_no, ec_account, ec_name, app_key, app_secret, token, token_expire_time, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_base_invoice_ch_info a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisBaseInvoiceChInfo" parameterType="EmisBaseInvoiceChInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_base_invoice_ch_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="chId != null and chId != ''">ch_id,</if>
|
||||
<if test="chName != null and chName != ''">ch_name,</if>
|
||||
<if test="companyName != null and companyName != ''">company_name,</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">company_tax_no,</if>
|
||||
<if test="ecAccount != null and ecAccount != ''">ec_account,</if>
|
||||
<if test="ecName != null and ecName != ''">ec_name,</if>
|
||||
<if test="appKey != null and appKey != ''">app_key,</if>
|
||||
<if test="appSecret != null and appSecret != ''">app_secret,</if>
|
||||
<if test="token != null and token != ''">token,</if>
|
||||
<if test="tokenExpireTime != null">token_expire_time,</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="chId != null and chId != ''">#{chId},</if>
|
||||
<if test="chName != null and chName != ''">#{chName},</if>
|
||||
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">#{companyTaxNo},</if>
|
||||
<if test="ecAccount != null and ecAccount != ''">#{ecAccount},</if>
|
||||
<if test="ecName != null and ecName != ''">#{ecName},</if>
|
||||
<if test="appKey != null and appKey != ''">#{appKey},</if>
|
||||
<if test="appSecret != null and appSecret != ''">#{appSecret},</if>
|
||||
<if test="token != null and token != ''">#{token},</if>
|
||||
<if test="tokenExpireTime != null">#{tokenExpireTime},</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="updateEmisBaseInvoiceChInfo" parameterType="EmisBaseInvoiceChInfo">
|
||||
update emis_base_invoice_ch_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="chId != null and chId != ''">ch_id = #{chId},</if>
|
||||
<if test="chName != null and chName != ''">ch_name = #{chName},</if>
|
||||
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">company_tax_no = #{companyTaxNo},</if>
|
||||
<if test="ecAccount != null and ecAccount != ''">ec_account = #{ecAccount},</if>
|
||||
<if test="ecName != null and ecName != ''">ec_name = #{ecName},</if>
|
||||
<if test="appKey != null and appKey != ''">app_key = #{appKey},</if>
|
||||
<if test="appSecret != null and appSecret != ''">app_secret = #{appSecret},</if>
|
||||
<if test="token != null and token != ''">token = #{token},</if>
|
||||
<if test="tokenExpireTime != null">token_expire_time = #{tokenExpireTime},</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="deleteEmisBaseInvoiceChInfoById" parameterType="Long">
|
||||
delete from emis_base_invoice_ch_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisBaseInvoiceChInfoByIds" parameterType="String">
|
||||
delete from emis_base_invoice_ch_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,314 @@
|
||||
<?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.EmisSettleInvoiceChRecordMapper">
|
||||
|
||||
<resultMap type="EmisSettleInvoiceChRecord" id="EmisSettleInvoiceChRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="reqNo" column="req_no" />
|
||||
<result property="applySeqNo" column="apply_seq_no" />
|
||||
<result property="blEcinv" column="bl_ecinv" />
|
||||
<result property="invoiceType" column="invoice_type" />
|
||||
<result property="realInvoiceType" column="real_invoice_type" />
|
||||
<result property="companyName" column="company_name" />
|
||||
<result property="companyTaxNo" column="company_tax_no" />
|
||||
<result property="companyTel" column="company_tel" />
|
||||
<result property="companyAddress" column="company_address" />
|
||||
<result property="bankName" column="bank_name" />
|
||||
<result property="bankAccNo" column="bank_acc_no" />
|
||||
<result property="contact" column="contact" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="taxRate" column="tax_rate" />
|
||||
<result property="openMoney" column="open_money" />
|
||||
<result property="email" column="email" />
|
||||
<result property="salerCompanyName" column="saler_company_name" />
|
||||
<result property="salerCompanyTaxNo" column="saler_company_tax_no" />
|
||||
<result property="salerCompanyTel" column="saler_company_tel" />
|
||||
<result property="salerCompanyAddress" column="saler_company_address" />
|
||||
<result property="salerBankName" column="saler_bank_name" />
|
||||
<result property="salerBankAccNo" column="saler_bank_acc_no" />
|
||||
<result property="salerContact" column="saler_contact" />
|
||||
<result property="salerPhone" column="saler_phone" />
|
||||
<result property="invoiceNo" column="invoice_no" />
|
||||
<result property="filePath" column="file_path" />
|
||||
<result property="qrPath" column="qr_path" />
|
||||
<result property="opManCode" column="op_man_code" />
|
||||
<result property="opDate" column="op_date" />
|
||||
<result property="opSiteCode" column="op_site_code" />
|
||||
<result property="openChId" column="open_ch_id" />
|
||||
<result property="openChStatus" column="open_ch_status" />
|
||||
<result property="openChStatusDesc" column="open_ch_status_desc" />
|
||||
<result property="openComCode" column="open_com_code" />
|
||||
<result property="extData" column="ext_data" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisSettleInvoiceChRecordVo">
|
||||
select id, req_no, apply_seq_no, bl_ecinv, invoice_type, real_invoice_type, company_name, company_tax_no, company_tel, company_address, bank_name, bank_acc_no, contact, phone, tax_rate, open_money, email, saler_company_name, saler_company_tax_no, saler_company_tel, saler_company_address, saler_bank_name, saler_bank_acc_no, saler_contact, saler_phone, invoice_no, file_path, qr_path, op_man_code, op_date, op_site_code, open_ch_id, open_ch_status, open_ch_status_desc, open_com_code, ext_data, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_invoice_ch_record
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisSettleInvoiceChRecordList" parameterType="EmisSettleInvoiceChRecord" resultMap="EmisSettleInvoiceChRecordResult">
|
||||
<include refid="selectEmisSettleInvoiceChRecordVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="reqNo != null and reqNo != ''"> and req_no = #{reqNo}</if>
|
||||
<if test="applySeqNo != null and applySeqNo != ''"> and apply_seq_no = #{applySeqNo}</if>
|
||||
<if test="blEcinv != null and blEcinv != ''"> and bl_ecinv = #{blEcinv}</if>
|
||||
<if test="invoiceType != null and invoiceType != ''"> and invoice_type = #{invoiceType}</if>
|
||||
<if test="realInvoiceType != null and realInvoiceType != ''"> and real_invoice_type = #{realInvoiceType}</if>
|
||||
<if test="companyName != null and companyName != ''"> and company_name = #{companyName}</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''"> and company_tax_no = #{companyTaxNo}</if>
|
||||
<if test="companyTel != null and companyTel != ''"> and company_tel = #{companyTel}</if>
|
||||
<if test="companyAddress != null and companyAddress != ''"> and company_address = #{companyAddress}</if>
|
||||
<if test="bankName != null and bankName != ''"> and bank_name = #{bankName}</if>
|
||||
<if test="bankAccNo != null and bankAccNo != ''"> and bank_acc_no = #{bankAccNo}</if>
|
||||
<if test="contact != null and contact != ''"> and contact = #{contact}</if>
|
||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||
<if test="taxRate != null and taxRate != ''"> and tax_rate = #{taxRate}</if>
|
||||
<if test="openMoney != null "> and open_money = #{openMoney}</if>
|
||||
<if test="email != null and email != ''"> and email = #{email}</if>
|
||||
<if test="salerCompanyName != null and salerCompanyName != ''"> and saler_company_name = #{salerCompanyName}</if>
|
||||
<if test="salerCompanyTaxNo != null and salerCompanyTaxNo != ''"> and saler_company_tax_no = #{salerCompanyTaxNo}</if>
|
||||
<if test="salerCompanyTel != null and salerCompanyTel != ''"> and saler_company_tel = #{salerCompanyTel}</if>
|
||||
<if test="salerCompanyAddress != null and salerCompanyAddress != ''"> and saler_company_address = #{salerCompanyAddress}</if>
|
||||
<if test="salerBankName != null and salerBankName != ''"> and saler_bank_name = #{salerBankName}</if>
|
||||
<if test="salerBankAccNo != null and salerBankAccNo != ''"> and saler_bank_acc_no = #{salerBankAccNo}</if>
|
||||
<if test="salerContact != null and salerContact != ''"> and saler_contact = #{salerContact}</if>
|
||||
<if test="salerPhone != null and salerPhone != ''"> and saler_phone = #{salerPhone}</if>
|
||||
<if test="invoiceNo != null and invoiceNo != ''"> and invoice_no = #{invoiceNo}</if>
|
||||
<if test="filePath != null and filePath != ''"> and file_path like concat('%', #{filePath}, '%')</if>
|
||||
<if test="qrPath != null and qrPath != ''"> and qr_path like concat('%', #{qrPath}, '%')</if>
|
||||
<if test="opManCode != null and opManCode != ''"> and op_man_code = #{opManCode}</if>
|
||||
<if test="opDate != null "> and op_date = #{opDate}</if>
|
||||
<if test="opSiteCode != null and opSiteCode != ''"> and op_site_code = #{opSiteCode}</if>
|
||||
<if test="openChId != null and openChId != ''"> and open_ch_id = #{openChId}</if>
|
||||
<if test="openChStatus != null and openChStatus != ''"> and open_ch_status = #{openChStatus}</if>
|
||||
<if test="openChStatusDesc != null and openChStatusDesc != ''"> and open_ch_status_desc like concat('%', #{openChStatusDesc}, '%')</if>
|
||||
<if test="openComCode != null and openComCode != ''"> and open_com_code = #{openComCode}</if>
|
||||
<if test="extData != null and extData != ''"> and ext_data like concat('%', #{extData}, '%')</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="EmisSettleInvoiceChRecord" resultType="int">
|
||||
select count(1) from emis_settle_invoice_ch_record
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and req_no = #{reqNo}
|
||||
and apply_seq_no = #{applySeqNo}
|
||||
and bl_ecinv = #{blEcinv}
|
||||
and invoice_type = #{invoiceType}
|
||||
and real_invoice_type = #{realInvoiceType}
|
||||
and company_name = #{companyName}
|
||||
and company_tax_no = #{companyTaxNo}
|
||||
and company_tel = #{companyTel}
|
||||
and company_address = #{companyAddress}
|
||||
and bank_name = #{bankName}
|
||||
and bank_acc_no = #{bankAccNo}
|
||||
and contact = #{contact}
|
||||
and phone = #{phone}
|
||||
and tax_rate = #{taxRate}
|
||||
and open_money = #{openMoney}
|
||||
and email = #{email}
|
||||
and saler_company_name = #{salerCompanyName}
|
||||
and saler_company_tax_no = #{salerCompanyTaxNo}
|
||||
and saler_company_tel = #{salerCompanyTel}
|
||||
and saler_company_address = #{salerCompanyAddress}
|
||||
and saler_bank_name = #{salerBankName}
|
||||
and saler_bank_acc_no = #{salerBankAccNo}
|
||||
and saler_contact = #{salerContact}
|
||||
and saler_phone = #{salerPhone}
|
||||
and invoice_no = #{invoiceNo}
|
||||
and file_path = #{filePath}
|
||||
and qr_path = #{qrPath}
|
||||
and op_man_code = #{opManCode}
|
||||
and op_date = #{opDate}
|
||||
and op_site_code = #{opSiteCode}
|
||||
and open_ch_id = #{openChId}
|
||||
and open_ch_status = #{openChStatus}
|
||||
and open_ch_status_desc = #{openChStatusDesc}
|
||||
and open_com_code = #{openComCode}
|
||||
and ext_data = #{extData}
|
||||
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="selectEmisSettleInvoiceChRecordById" parameterType="Long" resultMap="EmisSettleInvoiceChRecordResult">
|
||||
select id, req_no, apply_seq_no, bl_ecinv, invoice_type, real_invoice_type, company_name, company_tax_no, company_tel, company_address, bank_name, bank_acc_no, contact, phone, tax_rate, open_money, email, saler_company_name, saler_company_tax_no, saler_company_tel, saler_company_address, saler_bank_name, saler_bank_acc_no, saler_contact, saler_phone, invoice_no, file_path, qr_path, op_man_code, op_date, op_site_code, open_ch_id, open_ch_status, open_ch_status_desc, open_com_code, ext_data, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_settle_invoice_ch_record a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisSettleInvoiceChRecord" parameterType="EmisSettleInvoiceChRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_settle_invoice_ch_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="reqNo != null and reqNo != ''">req_no,</if>
|
||||
<if test="applySeqNo != null and applySeqNo != ''">apply_seq_no,</if>
|
||||
<if test="blEcinv != null and blEcinv != ''">bl_ecinv,</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">invoice_type,</if>
|
||||
<if test="realInvoiceType != null and realInvoiceType != ''">real_invoice_type,</if>
|
||||
<if test="companyName != null and companyName != ''">company_name,</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">company_tax_no,</if>
|
||||
<if test="companyTel != null and companyTel != ''">company_tel,</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">company_address,</if>
|
||||
<if test="bankName != null and bankName != ''">bank_name,</if>
|
||||
<if test="bankAccNo != null and bankAccNo != ''">bank_acc_no,</if>
|
||||
<if test="contact != null and contact != ''">contact,</if>
|
||||
<if test="phone != null and phone != ''">phone,</if>
|
||||
<if test="taxRate != null and taxRate != ''">tax_rate,</if>
|
||||
<if test="openMoney != null">open_money,</if>
|
||||
<if test="email != null and email != ''">email,</if>
|
||||
<if test="salerCompanyName != null and salerCompanyName != ''">saler_company_name,</if>
|
||||
<if test="salerCompanyTaxNo != null and salerCompanyTaxNo != ''">saler_company_tax_no,</if>
|
||||
<if test="salerCompanyTel != null and salerCompanyTel != ''">saler_company_tel,</if>
|
||||
<if test="salerCompanyAddress != null and salerCompanyAddress != ''">saler_company_address,</if>
|
||||
<if test="salerBankName != null and salerBankName != ''">saler_bank_name,</if>
|
||||
<if test="salerBankAccNo != null and salerBankAccNo != ''">saler_bank_acc_no,</if>
|
||||
<if test="salerContact != null and salerContact != ''">saler_contact,</if>
|
||||
<if test="salerPhone != null and salerPhone != ''">saler_phone,</if>
|
||||
<if test="invoiceNo != null and invoiceNo != ''">invoice_no,</if>
|
||||
<if test="filePath != null and filePath != ''">file_path,</if>
|
||||
<if test="qrPath != null and qrPath != ''">qr_path,</if>
|
||||
<if test="opManCode != null and opManCode != ''">op_man_code,</if>
|
||||
<if test="opDate != null">op_date,</if>
|
||||
<if test="opSiteCode != null and opSiteCode != ''">op_site_code,</if>
|
||||
<if test="openChId != null and openChId != ''">open_ch_id,</if>
|
||||
<if test="openChStatus != null and openChStatus != ''">open_ch_status,</if>
|
||||
<if test="openChStatusDesc != null and openChStatusDesc != ''">open_ch_status_desc,</if>
|
||||
<if test="openComCode != null and openComCode != ''">open_com_code,</if>
|
||||
<if test="extData != null and extData != ''">ext_data,</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="reqNo != null and reqNo != ''">#{reqNo},</if>
|
||||
<if test="applySeqNo != null and applySeqNo != ''">#{applySeqNo},</if>
|
||||
<if test="blEcinv != null and blEcinv != ''">#{blEcinv},</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">#{invoiceType},</if>
|
||||
<if test="realInvoiceType != null and realInvoiceType != ''">#{realInvoiceType},</if>
|
||||
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">#{companyTaxNo},</if>
|
||||
<if test="companyTel != null and companyTel != ''">#{companyTel},</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">#{companyAddress},</if>
|
||||
<if test="bankName != null and bankName != ''">#{bankName},</if>
|
||||
<if test="bankAccNo != null and bankAccNo != ''">#{bankAccNo},</if>
|
||||
<if test="contact != null and contact != ''">#{contact},</if>
|
||||
<if test="phone != null and phone != ''">#{phone},</if>
|
||||
<if test="taxRate != null and taxRate != ''">#{taxRate},</if>
|
||||
<if test="openMoney != null">#{openMoney},</if>
|
||||
<if test="email != null and email != ''">#{email},</if>
|
||||
<if test="salerCompanyName != null and salerCompanyName != ''">#{salerCompanyName},</if>
|
||||
<if test="salerCompanyTaxNo != null and salerCompanyTaxNo != ''">#{salerCompanyTaxNo},</if>
|
||||
<if test="salerCompanyTel != null and salerCompanyTel != ''">#{salerCompanyTel},</if>
|
||||
<if test="salerCompanyAddress != null and salerCompanyAddress != ''">#{salerCompanyAddress},</if>
|
||||
<if test="salerBankName != null and salerBankName != ''">#{salerBankName},</if>
|
||||
<if test="salerBankAccNo != null and salerBankAccNo != ''">#{salerBankAccNo},</if>
|
||||
<if test="salerContact != null and salerContact != ''">#{salerContact},</if>
|
||||
<if test="salerPhone != null and salerPhone != ''">#{salerPhone},</if>
|
||||
<if test="invoiceNo != null and invoiceNo != ''">#{invoiceNo},</if>
|
||||
<if test="filePath != null and filePath != ''">#{filePath},</if>
|
||||
<if test="qrPath != null and qrPath != ''">#{qrPath},</if>
|
||||
<if test="opManCode != null and opManCode != ''">#{opManCode},</if>
|
||||
<if test="opDate != null">#{opDate},</if>
|
||||
<if test="opSiteCode != null and opSiteCode != ''">#{opSiteCode},</if>
|
||||
<if test="openChId != null and openChId != ''">#{openChId},</if>
|
||||
<if test="openChStatus != null and openChStatus != ''">#{openChStatus},</if>
|
||||
<if test="openChStatusDesc != null and openChStatusDesc != ''">#{openChStatusDesc},</if>
|
||||
<if test="openComCode != null and openComCode != ''">#{openComCode},</if>
|
||||
<if test="extData != null and extData != ''">#{extData},</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="updateEmisSettleInvoiceChRecord" parameterType="EmisSettleInvoiceChRecord">
|
||||
update emis_settle_invoice_ch_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="reqNo != null and reqNo != ''">req_no = #{reqNo},</if>
|
||||
<if test="applySeqNo != null and applySeqNo != ''">apply_seq_no = #{applySeqNo},</if>
|
||||
<if test="blEcinv != null and blEcinv != ''">bl_ecinv = #{blEcinv},</if>
|
||||
<if test="invoiceType != null and invoiceType != ''">invoice_type = #{invoiceType},</if>
|
||||
<if test="realInvoiceType != null and realInvoiceType != ''">real_invoice_type = #{realInvoiceType},</if>
|
||||
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
|
||||
<if test="companyTaxNo != null and companyTaxNo != ''">company_tax_no = #{companyTaxNo},</if>
|
||||
<if test="companyTel != null and companyTel != ''">company_tel = #{companyTel},</if>
|
||||
<if test="companyAddress != null and companyAddress != ''">company_address = #{companyAddress},</if>
|
||||
<if test="bankName != null and bankName != ''">bank_name = #{bankName},</if>
|
||||
<if test="bankAccNo != null and bankAccNo != ''">bank_acc_no = #{bankAccNo},</if>
|
||||
<if test="contact != null and contact != ''">contact = #{contact},</if>
|
||||
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
||||
<if test="taxRate != null and taxRate != ''">tax_rate = #{taxRate},</if>
|
||||
<if test="openMoney != null">open_money = #{openMoney},</if>
|
||||
<if test="email != null and email != ''">email = #{email},</if>
|
||||
<if test="salerCompanyName != null and salerCompanyName != ''">saler_company_name = #{salerCompanyName},</if>
|
||||
<if test="salerCompanyTaxNo != null and salerCompanyTaxNo != ''">saler_company_tax_no = #{salerCompanyTaxNo},</if>
|
||||
<if test="salerCompanyTel != null and salerCompanyTel != ''">saler_company_tel = #{salerCompanyTel},</if>
|
||||
<if test="salerCompanyAddress != null and salerCompanyAddress != ''">saler_company_address = #{salerCompanyAddress},</if>
|
||||
<if test="salerBankName != null and salerBankName != ''">saler_bank_name = #{salerBankName},</if>
|
||||
<if test="salerBankAccNo != null and salerBankAccNo != ''">saler_bank_acc_no = #{salerBankAccNo},</if>
|
||||
<if test="salerContact != null and salerContact != ''">saler_contact = #{salerContact},</if>
|
||||
<if test="salerPhone != null and salerPhone != ''">saler_phone = #{salerPhone},</if>
|
||||
<if test="invoiceNo != null and invoiceNo != ''">invoice_no = #{invoiceNo},</if>
|
||||
<if test="filePath != null and filePath != ''">file_path = #{filePath},</if>
|
||||
<if test="qrPath != null and qrPath != ''">qr_path = #{qrPath},</if>
|
||||
<if test="opManCode != null and opManCode != ''">op_man_code = #{opManCode},</if>
|
||||
<if test="opDate != null">op_date = #{opDate},</if>
|
||||
<if test="opSiteCode != null and opSiteCode != ''">op_site_code = #{opSiteCode},</if>
|
||||
<if test="openChId != null and openChId != ''">open_ch_id = #{openChId},</if>
|
||||
<if test="openChStatus != null and openChStatus != ''">open_ch_status = #{openChStatus},</if>
|
||||
<if test="openChStatusDesc != null and openChStatusDesc != ''">open_ch_status_desc = #{openChStatusDesc},</if>
|
||||
<if test="openComCode != null and openComCode != ''">open_com_code = #{openComCode},</if>
|
||||
<if test="extData != null and extData != ''">ext_data = #{extData},</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="deleteEmisSettleInvoiceChRecordById" parameterType="Long">
|
||||
delete from emis_settle_invoice_ch_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisSettleInvoiceChRecordByIds" parameterType="String">
|
||||
delete from emis_settle_invoice_ch_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user