md
This commit is contained in:
parent
43e09edad7
commit
9255748f8c
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisWaybillAjustApplyController.java
|
||||
* @author linfso
|
||||
* @date 2024-06-25 23:39:28
|
||||
* @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.EmisWaybillAjustApply;
|
||||
import com.xdadan.erp.emis.service.IEmisWaybillAjustApplyService;
|
||||
|
||||
/**
|
||||
* 运单调整申请Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-06-25 23:39:28
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisWaybillAjustApply")
|
||||
public class EmisWaybillAjustApplyController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisWaybillAjustApplyService emisWaybillAjustApplyService;
|
||||
|
||||
/**
|
||||
* 查询运单调整申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisWaybillAjustApply:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisWaybillAjustApply emisWaybillAjustApply)
|
||||
{
|
||||
startPage();
|
||||
List<EmisWaybillAjustApply> list = emisWaybillAjustApplyService.selectEmisWaybillAjustApplyList(emisWaybillAjustApply);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisWaybillAjustApply
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisWaybillAjustApply:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisWaybillAjustApply emisWaybillAjustApply)
|
||||
{
|
||||
int cnt=emisWaybillAjustApplyService.checkUnique(emisWaybillAjustApply);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出运单调整申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisWaybillAjustApply:export')")
|
||||
@Log(title = "运单调整申请", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisWaybillAjustApply emisWaybillAjustApply)
|
||||
{
|
||||
List<EmisWaybillAjustApply> list = emisWaybillAjustApplyService.selectEmisWaybillAjustApplyList(emisWaybillAjustApply);
|
||||
ExcelUtil<EmisWaybillAjustApply> util = new ExcelUtil<EmisWaybillAjustApply>(EmisWaybillAjustApply.class);
|
||||
util.exportExcel(response, list, "运单调整申请数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取运单调整申请详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisWaybillAjustApply:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisWaybillAjustApplyService.selectEmisWaybillAjustApplyById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增运单调整申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisWaybillAjustApply:add')")
|
||||
@Log(title = "运单调整申请", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisWaybillAjustApply emisWaybillAjustApply)
|
||||
{
|
||||
return toAjax(emisWaybillAjustApplyService.insertEmisWaybillAjustApply(emisWaybillAjustApply));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改运单调整申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisWaybillAjustApply:edit')")
|
||||
@Log(title = "运单调整申请", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisWaybillAjustApply emisWaybillAjustApply)
|
||||
{
|
||||
return toAjax(emisWaybillAjustApplyService.updateEmisWaybillAjustApply(emisWaybillAjustApply));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除运单调整申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisWaybillAjustApply:remove')")
|
||||
@Log(title = "运单调整申请", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisWaybillAjustApplyService.deleteEmisWaybillAjustApplyByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,82 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisWaybillAjustApply.java
|
||||
* @author linfso
|
||||
* @date 2024-06-25 23:39:28
|
||||
* @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 EmisWaybillAjustApply
|
||||
* @Description 运单调整申请
|
||||
* @author linfso
|
||||
* @date 2024-06-25 23:39:28
|
||||
*/
|
||||
@Data
|
||||
public class EmisWaybillAjustApply extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 运单号 */
|
||||
private String billCode;
|
||||
/* 调整类型 */
|
||||
private String applyType;
|
||||
/* 申请人编码 */
|
||||
private String applyManCode;
|
||||
/* 申请站点代码 */
|
||||
private String applySiteCode;
|
||||
/* 申请财务中心编码 */
|
||||
private String applyFinanceCenterCode;
|
||||
/* 申请时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date applyDate;
|
||||
/* 目的网点是否审核 0-未审核 1-审核通过 2-审核拒绝 */
|
||||
private String blDestConfirmed;
|
||||
/* 目的站点代码 */
|
||||
private String destConfirmSiteCode;
|
||||
/* 目的网点确认时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date destConfirmDate;
|
||||
/* 目的网点审核备注 */
|
||||
private String destConfirmNote;
|
||||
/* 目的站点确认人代码 */
|
||||
private String destConfirmManCode;
|
||||
/* 改前值 */
|
||||
private String oldValue;
|
||||
/* 改后值 */
|
||||
private String newValue;
|
||||
/* 修改值是否 json 1-是 0-否 */
|
||||
private String blValueJson;
|
||||
/* 申请备注 */
|
||||
private String applyMemo;
|
||||
/* 目的财务中心编码 */
|
||||
private String destFinanceCenterCode;
|
||||
/* 中心确认编码 */
|
||||
private String centerConfirmSiteCode;
|
||||
/* 中心确认人 */
|
||||
private String centerConfirmManCode;
|
||||
/* 中心确认时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date centerConfirmDate;
|
||||
/* 中心审核备注 */
|
||||
private String centerConfirmNote;
|
||||
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisWaybillAjustApplyMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-06-25 23:39:28
|
||||
* @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.EmisWaybillAjustApply;
|
||||
/**
|
||||
* @ClassName EmisWaybillAjustApplyMapper
|
||||
* @Description <p> 运单调整申请 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-06-25 23:39:28
|
||||
*/
|
||||
public interface EmisWaybillAjustApplyMapper extends BaseMapper<EmisWaybillAjustApply>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisWaybillAjustApply selectEmisWaybillAjustApplyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisWaybillAjustApply
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisWaybillAjustApply> selectEmisWaybillAjustApplyList(EmisWaybillAjustApply emisWaybillAjustApply);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisWaybillAjustApply
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisWaybillAjustApply emisWaybillAjustApply);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisWaybillAjustApply
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisWaybillAjustApply(EmisWaybillAjustApply emisWaybillAjustApply);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisWaybillAjustApply
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisWaybillAjustApply(EmisWaybillAjustApply emisWaybillAjustApply);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisWaybillAjustApplyById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisWaybillAjustApplyByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisWaybillAjustApplyService.java
|
||||
* @author linfso
|
||||
* @date 2024-06-25 23:39:28
|
||||
* @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.EmisWaybillAjustApply;
|
||||
|
||||
/**
|
||||
* @ClassName EmisWaybillAjustApplyService
|
||||
* @Description 运单调整申请
|
||||
* @author linfso
|
||||
* @date 2024-06-25 23:39:28
|
||||
*/
|
||||
public interface IEmisWaybillAjustApplyService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisWaybillAjustApply selectEmisWaybillAjustApplyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询运单调整申请列表
|
||||
*
|
||||
* @param emisWaybillAjustApply 运单调整申请
|
||||
* @return 运单调整申请集合
|
||||
*/
|
||||
public List<EmisWaybillAjustApply> selectEmisWaybillAjustApplyList(EmisWaybillAjustApply emisWaybillAjustApply);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisWaybillAjustApply
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisWaybillAjustApply emisWaybillAjustApply);
|
||||
|
||||
/**
|
||||
* 新增运单调整申请
|
||||
*
|
||||
* @param emisWaybillAjustApply 运单调整申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisWaybillAjustApply(EmisWaybillAjustApply emisWaybillAjustApply);
|
||||
|
||||
/**
|
||||
* 修改运单调整申请
|
||||
*
|
||||
* @param emisWaybillAjustApply 运单调整申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisWaybillAjustApply(EmisWaybillAjustApply emisWaybillAjustApply);
|
||||
|
||||
/**
|
||||
* 批量删除运单调整申请
|
||||
*
|
||||
* @param ids 需要删除的运单调整申请主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisWaybillAjustApplyByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除运单调整申请信息
|
||||
*
|
||||
* @param id 运单调整申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisWaybillAjustApplyById(Long id);
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisWaybillAjustApplyServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-06-25 23:39:28
|
||||
* @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.EmisWaybillAjustApply;
|
||||
import com.xdadan.erp.emis.mapper.EmisWaybillAjustApplyMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisWaybillAjustApplyService;
|
||||
|
||||
/**
|
||||
* 运单调整申请Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-06-25 23:39:28
|
||||
*/
|
||||
@Service
|
||||
public class EmisWaybillAjustApplyServiceImpl implements IEmisWaybillAjustApplyService
|
||||
{
|
||||
@Autowired
|
||||
private EmisWaybillAjustApplyMapper emisWaybillAjustApplyMapper;
|
||||
|
||||
/**
|
||||
* 查询运单调整申请
|
||||
*
|
||||
* @param id 运单调整申请主键
|
||||
* @return 运单调整申请
|
||||
*/
|
||||
@Override
|
||||
public EmisWaybillAjustApply selectEmisWaybillAjustApplyById(Long id)
|
||||
{
|
||||
return emisWaybillAjustApplyMapper.selectEmisWaybillAjustApplyById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询运单调整申请列表
|
||||
*
|
||||
* @param emisWaybillAjustApply 运单调整申请
|
||||
* @return 运单调整申请
|
||||
*/
|
||||
@Override
|
||||
public List<EmisWaybillAjustApply> selectEmisWaybillAjustApplyList(EmisWaybillAjustApply emisWaybillAjustApply)
|
||||
{
|
||||
return emisWaybillAjustApplyMapper.selectEmisWaybillAjustApplyList(emisWaybillAjustApply);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisWaybillAjustApply
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisWaybillAjustApply emisWaybillAjustApply)
|
||||
{
|
||||
return emisWaybillAjustApplyMapper.checkUnique(emisWaybillAjustApply);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增运单调整申请
|
||||
*
|
||||
* @param emisWaybillAjustApply 运单调整申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisWaybillAjustApply(EmisWaybillAjustApply emisWaybillAjustApply)
|
||||
{
|
||||
return emisWaybillAjustApplyMapper.insertEmisWaybillAjustApply(emisWaybillAjustApply);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改运单调整申请
|
||||
*
|
||||
* @param emisWaybillAjustApply 运单调整申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisWaybillAjustApply(EmisWaybillAjustApply emisWaybillAjustApply)
|
||||
{
|
||||
return emisWaybillAjustApplyMapper.updateEmisWaybillAjustApply(emisWaybillAjustApply);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除运单调整申请
|
||||
*
|
||||
* @param ids 需要删除的运单调整申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisWaybillAjustApplyByIds(Long[] ids)
|
||||
{
|
||||
return emisWaybillAjustApplyMapper.deleteEmisWaybillAjustApplyByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除运单调整申请信息
|
||||
*
|
||||
* @param id 运单调整申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisWaybillAjustApplyById(Long id)
|
||||
{
|
||||
return emisWaybillAjustApplyMapper.deleteEmisWaybillAjustApplyById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,229 @@
|
||||
<?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.EmisWaybillAjustApplyMapper">
|
||||
|
||||
<resultMap type="EmisWaybillAjustApply" id="EmisWaybillAjustApplyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="billCode" column="bill_code" />
|
||||
<result property="applyType" column="apply_type" />
|
||||
<result property="applyManCode" column="apply_man_code" />
|
||||
<result property="applySiteCode" column="apply_site_code" />
|
||||
<result property="applyFinanceCenterCode" column="apply_finance_center_code" />
|
||||
<result property="applyDate" column="apply_date" />
|
||||
<result property="blDestConfirmed" column="bl_dest_confirmed" />
|
||||
<result property="destConfirmSiteCode" column="dest_confirm_site_code" />
|
||||
<result property="destConfirmDate" column="dest_confirm_date" />
|
||||
<result property="destConfirmNote" column="dest_confirm_note" />
|
||||
<result property="destConfirmManCode" column="dest_confirm_man_code" />
|
||||
<result property="oldValue" column="old_value" />
|
||||
<result property="newValue" column="new_value" />
|
||||
<result property="blValueJson" column="bl_value_json" />
|
||||
<result property="applyMemo" column="apply_memo" />
|
||||
<result property="destFinanceCenterCode" column="dest_finance_center_code" />
|
||||
<result property="centerConfirmSiteCode" column="center_confirm_site_code" />
|
||||
<result property="centerConfirmManCode" column="center_confirm_man_code" />
|
||||
<result property="centerConfirmDate" column="center_confirm_date" />
|
||||
<result property="centerConfirmNote" column="center_confirm_note" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisWaybillAjustApplyVo">
|
||||
select id, bill_code, apply_type, apply_man_code, apply_site_code, apply_finance_center_code, apply_date, bl_dest_confirmed, dest_confirm_site_code, dest_confirm_date, dest_confirm_note, dest_confirm_man_code, old_value, new_value, bl_value_json, apply_memo, dest_finance_center_code, center_confirm_site_code, center_confirm_man_code, center_confirm_date, center_confirm_note, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_waybill_ajust_apply
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisWaybillAjustApplyList" parameterType="EmisWaybillAjustApply" resultMap="EmisWaybillAjustApplyResult">
|
||||
<include refid="selectEmisWaybillAjustApplyVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
|
||||
<if test="applyType != null and applyType != ''"> and apply_type = #{applyType}</if>
|
||||
<if test="applyManCode != null and applyManCode != ''"> and apply_man_code = #{applyManCode}</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''"> and apply_site_code = #{applySiteCode}</if>
|
||||
<if test="applyFinanceCenterCode != null and applyFinanceCenterCode != ''"> and apply_finance_center_code = #{applyFinanceCenterCode}</if>
|
||||
<if test="applyDate != null "> and apply_date = #{applyDate}</if>
|
||||
<if test="blDestConfirmed != null and blDestConfirmed != ''"> and bl_dest_confirmed = #{blDestConfirmed}</if>
|
||||
<if test="destConfirmSiteCode != null and destConfirmSiteCode != ''"> and dest_confirm_site_code = #{destConfirmSiteCode}</if>
|
||||
<if test="destConfirmDate != null "> and dest_confirm_date = #{destConfirmDate}</if>
|
||||
<if test="destConfirmNote != null and destConfirmNote != ''"> and dest_confirm_note = #{destConfirmNote}</if>
|
||||
<if test="destConfirmManCode != null and destConfirmManCode != ''"> and dest_confirm_man_code = #{destConfirmManCode}</if>
|
||||
<if test="oldValue != null and oldValue != ''"> and old_value like concat('%', #{oldValue}, '%')</if>
|
||||
<if test="newValue != null and newValue != ''"> and new_value like concat('%', #{newValue}, '%')</if>
|
||||
<if test="blValueJson != null and blValueJson != ''"> and bl_value_json like concat('%', #{blValueJson}, '%')</if>
|
||||
<if test="applyMemo != null and applyMemo != ''"> and apply_memo like concat('%', #{applyMemo}, '%')</if>
|
||||
<if test="destFinanceCenterCode != null and destFinanceCenterCode != ''"> and dest_finance_center_code like concat('%', #{destFinanceCenterCode}, '%')</if>
|
||||
<if test="centerConfirmSiteCode != null and centerConfirmSiteCode != ''"> and center_confirm_site_code like concat('%', #{centerConfirmSiteCode}, '%')</if>
|
||||
<if test="centerConfirmManCode != null and centerConfirmManCode != ''"> and center_confirm_man_code like concat('%', #{centerConfirmManCode}, '%')</if>
|
||||
<if test="centerConfirmDate != null "> and center_confirm_date = #{centerConfirmDate}</if>
|
||||
<if test="centerConfirmNote != null and centerConfirmNote != ''"> and center_confirm_note like concat('%', #{centerConfirmNote}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisWaybillAjustApply" resultType="int">
|
||||
select count(1) from emis_waybill_ajust_apply
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and bill_code = #{billCode}
|
||||
and apply_type = #{applyType}
|
||||
and apply_man_code = #{applyManCode}
|
||||
and apply_site_code = #{applySiteCode}
|
||||
and apply_finance_center_code = #{applyFinanceCenterCode}
|
||||
and apply_date = #{applyDate}
|
||||
and bl_dest_confirmed = #{blDestConfirmed}
|
||||
and dest_confirm_site_code = #{destConfirmSiteCode}
|
||||
and dest_confirm_date = #{destConfirmDate}
|
||||
and dest_confirm_note = #{destConfirmNote}
|
||||
and dest_confirm_man_code = #{destConfirmManCode}
|
||||
and old_value = #{oldValue}
|
||||
and new_value = #{newValue}
|
||||
and bl_value_json = #{blValueJson}
|
||||
and apply_memo = #{applyMemo}
|
||||
and dest_finance_center_code = #{destFinanceCenterCode}
|
||||
and center_confirm_site_code = #{centerConfirmSiteCode}
|
||||
and center_confirm_man_code = #{centerConfirmManCode}
|
||||
and center_confirm_date = #{centerConfirmDate}
|
||||
and center_confirm_note = #{centerConfirmNote}
|
||||
and remark = #{remark}
|
||||
and tenant_id = #{tenantId}
|
||||
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="selectEmisWaybillAjustApplyById" parameterType="Long" resultMap="EmisWaybillAjustApplyResult">
|
||||
select id, bill_code, apply_type, apply_man_code, apply_site_code, apply_finance_center_code, apply_date, bl_dest_confirmed, dest_confirm_site_code, dest_confirm_date, dest_confirm_note, dest_confirm_man_code, old_value, new_value, bl_value_json, apply_memo, dest_finance_center_code, center_confirm_site_code, center_confirm_man_code, center_confirm_date, center_confirm_note, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_waybill_ajust_apply a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisWaybillAjustApply" parameterType="EmisWaybillAjustApply" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_waybill_ajust_apply
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code,</if>
|
||||
<if test="applyType != null and applyType != ''">apply_type,</if>
|
||||
<if test="applyManCode != null and applyManCode != ''">apply_man_code,</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''">apply_site_code,</if>
|
||||
<if test="applyFinanceCenterCode != null and applyFinanceCenterCode != ''">apply_finance_center_code,</if>
|
||||
<if test="applyDate != null">apply_date,</if>
|
||||
<if test="blDestConfirmed != null and blDestConfirmed != ''">bl_dest_confirmed,</if>
|
||||
<if test="destConfirmSiteCode != null and destConfirmSiteCode != ''">dest_confirm_site_code,</if>
|
||||
<if test="destConfirmDate != null">dest_confirm_date,</if>
|
||||
<if test="destConfirmNote != null and destConfirmNote != ''">dest_confirm_note,</if>
|
||||
<if test="destConfirmManCode != null and destConfirmManCode != ''">dest_confirm_man_code,</if>
|
||||
<if test="oldValue != null and oldValue != ''">old_value,</if>
|
||||
<if test="newValue != null and newValue != ''">new_value,</if>
|
||||
<if test="blValueJson != null and blValueJson != ''">bl_value_json,</if>
|
||||
<if test="applyMemo != null and applyMemo != ''">apply_memo,</if>
|
||||
<if test="destFinanceCenterCode != null and destFinanceCenterCode != ''">dest_finance_center_code,</if>
|
||||
<if test="centerConfirmSiteCode != null and centerConfirmSiteCode != ''">center_confirm_site_code,</if>
|
||||
<if test="centerConfirmManCode != null and centerConfirmManCode != ''">center_confirm_man_code,</if>
|
||||
<if test="centerConfirmDate != null">center_confirm_date,</if>
|
||||
<if test="centerConfirmNote != null and centerConfirmNote != ''">center_confirm_note,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
||||
<if test="applyType != null and applyType != ''">#{applyType},</if>
|
||||
<if test="applyManCode != null and applyManCode != ''">#{applyManCode},</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''">#{applySiteCode},</if>
|
||||
<if test="applyFinanceCenterCode != null and applyFinanceCenterCode != ''">#{applyFinanceCenterCode},</if>
|
||||
<if test="applyDate != null">#{applyDate},</if>
|
||||
<if test="blDestConfirmed != null and blDestConfirmed != ''">#{blDestConfirmed},</if>
|
||||
<if test="destConfirmSiteCode != null and destConfirmSiteCode != ''">#{destConfirmSiteCode},</if>
|
||||
<if test="destConfirmDate != null">#{destConfirmDate},</if>
|
||||
<if test="destConfirmNote != null and destConfirmNote != ''">#{destConfirmNote},</if>
|
||||
<if test="destConfirmManCode != null and destConfirmManCode != ''">#{destConfirmManCode},</if>
|
||||
<if test="oldValue != null and oldValue != ''">#{oldValue},</if>
|
||||
<if test="newValue != null and newValue != ''">#{newValue},</if>
|
||||
<if test="blValueJson != null and blValueJson != ''">#{blValueJson},</if>
|
||||
<if test="applyMemo != null and applyMemo != ''">#{applyMemo},</if>
|
||||
<if test="destFinanceCenterCode != null and destFinanceCenterCode != ''">#{destFinanceCenterCode},</if>
|
||||
<if test="centerConfirmSiteCode != null and centerConfirmSiteCode != ''">#{centerConfirmSiteCode},</if>
|
||||
<if test="centerConfirmManCode != null and centerConfirmManCode != ''">#{centerConfirmManCode},</if>
|
||||
<if test="centerConfirmDate != null">#{centerConfirmDate},</if>
|
||||
<if test="centerConfirmNote != null and centerConfirmNote != ''">#{centerConfirmNote},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisWaybillAjustApply" parameterType="EmisWaybillAjustApply">
|
||||
update emis_waybill_ajust_apply
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
||||
<if test="applyType != null and applyType != ''">apply_type = #{applyType},</if>
|
||||
<if test="applyManCode != null and applyManCode != ''">apply_man_code = #{applyManCode},</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''">apply_site_code = #{applySiteCode},</if>
|
||||
<if test="applyFinanceCenterCode != null and applyFinanceCenterCode != ''">apply_finance_center_code = #{applyFinanceCenterCode},</if>
|
||||
<if test="applyDate != null">apply_date = #{applyDate},</if>
|
||||
<if test="blDestConfirmed != null and blDestConfirmed != ''">bl_dest_confirmed = #{blDestConfirmed},</if>
|
||||
<if test="destConfirmSiteCode != null and destConfirmSiteCode != ''">dest_confirm_site_code = #{destConfirmSiteCode},</if>
|
||||
<if test="destConfirmDate != null">dest_confirm_date = #{destConfirmDate},</if>
|
||||
<if test="destConfirmNote != null and destConfirmNote != ''">dest_confirm_note = #{destConfirmNote},</if>
|
||||
<if test="destConfirmManCode != null and destConfirmManCode != ''">dest_confirm_man_code = #{destConfirmManCode},</if>
|
||||
<if test="oldValue != null and oldValue != ''">old_value = #{oldValue},</if>
|
||||
<if test="newValue != null and newValue != ''">new_value = #{newValue},</if>
|
||||
<if test="blValueJson != null and blValueJson != ''">bl_value_json = #{blValueJson},</if>
|
||||
<if test="applyMemo != null and applyMemo != ''">apply_memo = #{applyMemo},</if>
|
||||
<if test="destFinanceCenterCode != null and destFinanceCenterCode != ''">dest_finance_center_code = #{destFinanceCenterCode},</if>
|
||||
<if test="centerConfirmSiteCode != null and centerConfirmSiteCode != ''">center_confirm_site_code = #{centerConfirmSiteCode},</if>
|
||||
<if test="centerConfirmManCode != null and centerConfirmManCode != ''">center_confirm_man_code = #{centerConfirmManCode},</if>
|
||||
<if test="centerConfirmDate != null">center_confirm_date = #{centerConfirmDate},</if>
|
||||
<if test="centerConfirmNote != null and centerConfirmNote != ''">center_confirm_note = #{centerConfirmNote},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisWaybillAjustApplyById" parameterType="Long">
|
||||
delete from emis_waybill_ajust_apply where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisWaybillAjustApplyByIds" parameterType="String">
|
||||
delete from emis_waybill_ajust_apply where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user