md
This commit is contained in:
parent
b740d4ace4
commit
d0090f2398
@ -0,0 +1,118 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisElectronicPagApplyController.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:50
|
||||
* @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.EmisElectronicPagApply;
|
||||
import com.xdadan.erp.emis.service.IEmisElectronicPagApplyService;
|
||||
|
||||
/**
|
||||
* 网点电子面单申请Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:50
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisElectronicPagApply")
|
||||
public class EmisElectronicPagApplyController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisElectronicPagApplyService emisElectronicPagApplyService;
|
||||
|
||||
/**
|
||||
* 查询网点电子面单申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPagApply:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisElectronicPagApply emisElectronicPagApply)
|
||||
{
|
||||
startPage();
|
||||
List<EmisElectronicPagApply> list = emisElectronicPagApplyService.selectEmisElectronicPagApplyList(emisElectronicPagApply);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出网点电子面单申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPagApply:export')")
|
||||
@Log(title = "网点电子面单申请", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisElectronicPagApply emisElectronicPagApply)
|
||||
{
|
||||
List<EmisElectronicPagApply> list = emisElectronicPagApplyService.selectEmisElectronicPagApplyList(emisElectronicPagApply);
|
||||
ExcelUtil<EmisElectronicPagApply> util = new ExcelUtil<EmisElectronicPagApply>(EmisElectronicPagApply.class);
|
||||
util.exportExcel(response, list, "网点电子面单申请数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取网点电子面单申请详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPagApply:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisElectronicPagApplyService.selectEmisElectronicPagApplyById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网点电子面单申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPagApply:add')")
|
||||
@Log(title = "网点电子面单申请", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisElectronicPagApply emisElectronicPagApply)
|
||||
{
|
||||
return toAjax(emisElectronicPagApplyService.insertEmisElectronicPagApply(emisElectronicPagApply));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网点电子面单申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPagApply:edit')")
|
||||
@Log(title = "网点电子面单申请", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisElectronicPagApply emisElectronicPagApply)
|
||||
{
|
||||
return toAjax(emisElectronicPagApplyService.updateEmisElectronicPagApply(emisElectronicPagApply));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网点电子面单申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPagApply:remove')")
|
||||
@Log(title = "网点电子面单申请", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisElectronicPagApplyService.deleteEmisElectronicPagApplyByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,118 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisElectronicPagController.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:49
|
||||
* @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.EmisElectronicPag;
|
||||
import com.xdadan.erp.emis.service.IEmisElectronicPagService;
|
||||
|
||||
/**
|
||||
* 电子面单Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:49
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisElectronicPag")
|
||||
public class EmisElectronicPagController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisElectronicPagService emisElectronicPagService;
|
||||
|
||||
/**
|
||||
* 查询电子面单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPag:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisElectronicPag emisElectronicPag)
|
||||
{
|
||||
startPage();
|
||||
List<EmisElectronicPag> list = emisElectronicPagService.selectEmisElectronicPagList(emisElectronicPag);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出电子面单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPag:export')")
|
||||
@Log(title = "电子面单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisElectronicPag emisElectronicPag)
|
||||
{
|
||||
List<EmisElectronicPag> list = emisElectronicPagService.selectEmisElectronicPagList(emisElectronicPag);
|
||||
ExcelUtil<EmisElectronicPag> util = new ExcelUtil<EmisElectronicPag>(EmisElectronicPag.class);
|
||||
util.exportExcel(response, list, "电子面单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取电子面单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPag:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisElectronicPagService.selectEmisElectronicPagById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电子面单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPag:add')")
|
||||
@Log(title = "电子面单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisElectronicPag emisElectronicPag)
|
||||
{
|
||||
return toAjax(emisElectronicPagService.insertEmisElectronicPag(emisElectronicPag));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电子面单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPag:edit')")
|
||||
@Log(title = "电子面单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisElectronicPag emisElectronicPag)
|
||||
{
|
||||
return toAjax(emisElectronicPagService.updateEmisElectronicPag(emisElectronicPag));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电子面单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisElectronicPag:remove')")
|
||||
@Log(title = "电子面单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisElectronicPagService.deleteEmisElectronicPagByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisElectronicPag.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:49
|
||||
* @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 EmisElectronicPag
|
||||
* @Description 电子面单
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:49
|
||||
*/
|
||||
@Data
|
||||
public class EmisElectronicPag extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 开始编号 */
|
||||
private String startNo;
|
||||
/* 结束编号 */
|
||||
private String endNo;
|
||||
/* 单号数量 */
|
||||
private String billCount;
|
||||
/* 面单费 */
|
||||
private String billFee;
|
||||
/* 已分配当前编号 */
|
||||
private String curStartNo;
|
||||
/* 剩余数量 */
|
||||
private String hasBillCount;
|
||||
/* 提供日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date provideDate;
|
||||
/* 提供人 */
|
||||
private String provideMan;
|
||||
/* 提供站点 */
|
||||
private String provideSite;
|
||||
/* 状态 0-未启用 1-启用 */
|
||||
private String status;
|
||||
/* 创建站点代码 */
|
||||
private String createSiteCode;
|
||||
/* 修改站点代码 */
|
||||
private String modifySiteCode;
|
||||
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisElectronicPagApply.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:50
|
||||
* @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 EmisElectronicPagApply
|
||||
* @Description 网点电子面单申请
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:50
|
||||
*/
|
||||
@Data
|
||||
public class EmisElectronicPagApply extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 申购序号 */
|
||||
private String applySeq;
|
||||
/* 申购时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date applyDate;
|
||||
/* 申购类型:网点 */
|
||||
private String provideType;
|
||||
/* 物料名称:电子面单 */
|
||||
private String applyName;
|
||||
/* 申购人 */
|
||||
private String applyMan;
|
||||
/* 申购人编号 */
|
||||
private String applyManCode;
|
||||
/* 申购站点 */
|
||||
private String applySite;
|
||||
/* 申购站点编号 */
|
||||
private String applySiteCode;
|
||||
/* 单价 */
|
||||
private String unitMoney;
|
||||
/* 申请数量 */
|
||||
private String applyCount;
|
||||
/* 总金额 */
|
||||
private String sumMoney;
|
||||
/* 是否已发放 */
|
||||
private String blSend;
|
||||
/* 发放时间 */
|
||||
private String sendDate;
|
||||
/* 发放人 */
|
||||
private String sendMan;
|
||||
/* 发放人编号 */
|
||||
private String sendManCode;
|
||||
/* 发放站点 */
|
||||
private String sendSite;
|
||||
/* 发放站点代码 */
|
||||
private String sendSiteCode;
|
||||
/* 是否取消 */
|
||||
private String blCancel;
|
||||
/* 取消人 */
|
||||
private String cancelMan;
|
||||
/* 取消人代码 */
|
||||
private String cancelManCode;
|
||||
/* 取消时间 */
|
||||
private String cancelDate;
|
||||
/* 取消站点 */
|
||||
private String cancelSite;
|
||||
/* 取消站点代码 */
|
||||
private String cancelSiteCode;
|
||||
/* 面单用户站点 */
|
||||
private String userSite;
|
||||
/* 面单用户站点代码 */
|
||||
private String userSiteCode;
|
||||
/* 分配开始编号 */
|
||||
private String startNo;
|
||||
/* 分配结束编号 */
|
||||
private String endNo;
|
||||
/* 已使用当前编号 */
|
||||
private String curStartNo;
|
||||
/* 剩余数量 */
|
||||
private String hasBillCount;
|
||||
/* 是否允许自动分配单号 */
|
||||
private String blAllowAllocate;
|
||||
/* 创建站点代码 */
|
||||
private String createSiteCode;
|
||||
/* 修改站点代码 */
|
||||
private String modifySiteCode;
|
||||
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisElectronicPagApplyMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:50
|
||||
* @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.EmisElectronicPagApply;
|
||||
/**
|
||||
* @ClassName EmisElectronicPagApplyMapper
|
||||
* @Description <p> 网点电子面单申请 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:50
|
||||
*/
|
||||
public interface EmisElectronicPagApplyMapper extends BaseMapper<EmisElectronicPagApply>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisElectronicPagApply selectEmisElectronicPagApplyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisElectronicPagApply
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisElectronicPagApply> selectEmisElectronicPagApplyList(EmisElectronicPagApply emisElectronicPagApply);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisElectronicPagApply
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisElectronicPagApply(EmisElectronicPagApply emisElectronicPagApply);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisElectronicPagApply
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisElectronicPagApply(EmisElectronicPagApply emisElectronicPagApply);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisElectronicPagApplyById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisElectronicPagApplyByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisElectronicPagMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:49
|
||||
* @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.EmisElectronicPag;
|
||||
/**
|
||||
* @ClassName EmisElectronicPagMapper
|
||||
* @Description <p> 电子面单 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:49
|
||||
*/
|
||||
public interface EmisElectronicPagMapper extends BaseMapper<EmisElectronicPag>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisElectronicPag selectEmisElectronicPagById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisElectronicPag
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisElectronicPag> selectEmisElectronicPagList(EmisElectronicPag emisElectronicPag);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisElectronicPag
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisElectronicPag(EmisElectronicPag emisElectronicPag);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisElectronicPag
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisElectronicPag(EmisElectronicPag emisElectronicPag);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisElectronicPagById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisElectronicPagByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisElectronicPagApplyService.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:50
|
||||
* @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.EmisElectronicPagApply;
|
||||
|
||||
/**
|
||||
* @ClassName EmisElectronicPagApplyService
|
||||
* @Description 网点电子面单申请
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:50
|
||||
*/
|
||||
public interface IEmisElectronicPagApplyService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisElectronicPagApply selectEmisElectronicPagApplyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网点电子面单申请列表
|
||||
*
|
||||
* @param emisElectronicPagApply 网点电子面单申请
|
||||
* @return 网点电子面单申请集合
|
||||
*/
|
||||
public List<EmisElectronicPagApply> selectEmisElectronicPagApplyList(EmisElectronicPagApply emisElectronicPagApply);
|
||||
|
||||
/**
|
||||
* 新增网点电子面单申请
|
||||
*
|
||||
* @param emisElectronicPagApply 网点电子面单申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisElectronicPagApply(EmisElectronicPagApply emisElectronicPagApply);
|
||||
|
||||
/**
|
||||
* 修改网点电子面单申请
|
||||
*
|
||||
* @param emisElectronicPagApply 网点电子面单申请
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisElectronicPagApply(EmisElectronicPagApply emisElectronicPagApply);
|
||||
|
||||
/**
|
||||
* 批量删除网点电子面单申请
|
||||
*
|
||||
* @param ids 需要删除的网点电子面单申请主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisElectronicPagApplyByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除网点电子面单申请信息
|
||||
*
|
||||
* @param id 网点电子面单申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisElectronicPagApplyById(Long id);
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisElectronicPagService.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:49
|
||||
* @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.EmisElectronicPag;
|
||||
|
||||
/**
|
||||
* @ClassName EmisElectronicPagService
|
||||
* @Description 电子面单
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:49
|
||||
*/
|
||||
public interface IEmisElectronicPagService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisElectronicPag selectEmisElectronicPagById(Long id);
|
||||
|
||||
/**
|
||||
* 查询电子面单列表
|
||||
*
|
||||
* @param emisElectronicPag 电子面单
|
||||
* @return 电子面单集合
|
||||
*/
|
||||
public List<EmisElectronicPag> selectEmisElectronicPagList(EmisElectronicPag emisElectronicPag);
|
||||
|
||||
/**
|
||||
* 新增电子面单
|
||||
*
|
||||
* @param emisElectronicPag 电子面单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisElectronicPag(EmisElectronicPag emisElectronicPag);
|
||||
|
||||
/**
|
||||
* 修改电子面单
|
||||
*
|
||||
* @param emisElectronicPag 电子面单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisElectronicPag(EmisElectronicPag emisElectronicPag);
|
||||
|
||||
/**
|
||||
* 批量删除电子面单
|
||||
*
|
||||
* @param ids 需要删除的电子面单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisElectronicPagByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除电子面单信息
|
||||
*
|
||||
* @param id 电子面单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisElectronicPagById(Long id);
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisElectronicPagApplyServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:50
|
||||
* @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.EmisElectronicPagApply;
|
||||
import com.xdadan.erp.emis.mapper.EmisElectronicPagApplyMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisElectronicPagApplyService;
|
||||
|
||||
/**
|
||||
* 网点电子面单申请Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:50
|
||||
*/
|
||||
@Service
|
||||
public class EmisElectronicPagApplyServiceImpl implements IEmisElectronicPagApplyService
|
||||
{
|
||||
@Autowired
|
||||
private EmisElectronicPagApplyMapper emisElectronicPagApplyMapper;
|
||||
|
||||
/**
|
||||
* 查询网点电子面单申请
|
||||
*
|
||||
* @param id 网点电子面单申请主键
|
||||
* @return 网点电子面单申请
|
||||
*/
|
||||
@Override
|
||||
public EmisElectronicPagApply selectEmisElectronicPagApplyById(Long id)
|
||||
{
|
||||
return emisElectronicPagApplyMapper.selectEmisElectronicPagApplyById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询网点电子面单申请列表
|
||||
*
|
||||
* @param emisElectronicPagApply 网点电子面单申请
|
||||
* @return 网点电子面单申请
|
||||
*/
|
||||
@Override
|
||||
public List<EmisElectronicPagApply> selectEmisElectronicPagApplyList(EmisElectronicPagApply emisElectronicPagApply)
|
||||
{
|
||||
return emisElectronicPagApplyMapper.selectEmisElectronicPagApplyList(emisElectronicPagApply);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网点电子面单申请
|
||||
*
|
||||
* @param emisElectronicPagApply 网点电子面单申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisElectronicPagApply(EmisElectronicPagApply emisElectronicPagApply)
|
||||
{
|
||||
return emisElectronicPagApplyMapper.insertEmisElectronicPagApply(emisElectronicPagApply);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网点电子面单申请
|
||||
*
|
||||
* @param emisElectronicPagApply 网点电子面单申请
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisElectronicPagApply(EmisElectronicPagApply emisElectronicPagApply)
|
||||
{
|
||||
return emisElectronicPagApplyMapper.updateEmisElectronicPagApply(emisElectronicPagApply);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除网点电子面单申请
|
||||
*
|
||||
* @param ids 需要删除的网点电子面单申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisElectronicPagApplyByIds(Long[] ids)
|
||||
{
|
||||
return emisElectronicPagApplyMapper.deleteEmisElectronicPagApplyByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网点电子面单申请信息
|
||||
*
|
||||
* @param id 网点电子面单申请主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisElectronicPagApplyById(Long id)
|
||||
{
|
||||
return emisElectronicPagApplyMapper.deleteEmisElectronicPagApplyById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,104 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisElectronicPagServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:49
|
||||
* @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.EmisElectronicPag;
|
||||
import com.xdadan.erp.emis.mapper.EmisElectronicPagMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisElectronicPagService;
|
||||
|
||||
/**
|
||||
* 电子面单Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-03-01 10:49:49
|
||||
*/
|
||||
@Service
|
||||
public class EmisElectronicPagServiceImpl implements IEmisElectronicPagService
|
||||
{
|
||||
@Autowired
|
||||
private EmisElectronicPagMapper emisElectronicPagMapper;
|
||||
|
||||
/**
|
||||
* 查询电子面单
|
||||
*
|
||||
* @param id 电子面单主键
|
||||
* @return 电子面单
|
||||
*/
|
||||
@Override
|
||||
public EmisElectronicPag selectEmisElectronicPagById(Long id)
|
||||
{
|
||||
return emisElectronicPagMapper.selectEmisElectronicPagById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询电子面单列表
|
||||
*
|
||||
* @param emisElectronicPag 电子面单
|
||||
* @return 电子面单
|
||||
*/
|
||||
@Override
|
||||
public List<EmisElectronicPag> selectEmisElectronicPagList(EmisElectronicPag emisElectronicPag)
|
||||
{
|
||||
return emisElectronicPagMapper.selectEmisElectronicPagList(emisElectronicPag);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电子面单
|
||||
*
|
||||
* @param emisElectronicPag 电子面单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisElectronicPag(EmisElectronicPag emisElectronicPag)
|
||||
{
|
||||
return emisElectronicPagMapper.insertEmisElectronicPag(emisElectronicPag);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电子面单
|
||||
*
|
||||
* @param emisElectronicPag 电子面单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisElectronicPag(EmisElectronicPag emisElectronicPag)
|
||||
{
|
||||
return emisElectronicPagMapper.updateEmisElectronicPag(emisElectronicPag);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除电子面单
|
||||
*
|
||||
* @param ids 需要删除的电子面单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisElectronicPagByIds(Long[] ids)
|
||||
{
|
||||
return emisElectronicPagMapper.deleteEmisElectronicPagByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电子面单信息
|
||||
*
|
||||
* @param id 电子面单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisElectronicPagById(Long id)
|
||||
{
|
||||
return emisElectronicPagMapper.deleteEmisElectronicPagById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,246 @@
|
||||
<?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.EmisElectronicPagApplyMapper">
|
||||
|
||||
<resultMap type="EmisElectronicPagApply" id="EmisElectronicPagApplyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="applySeq" column="apply_seq" />
|
||||
<result property="applyDate" column="apply_date" />
|
||||
<result property="provideType" column="provide_type" />
|
||||
<result property="applyName" column="apply_name" />
|
||||
<result property="applyMan" column="apply_man" />
|
||||
<result property="applyManCode" column="apply_man_code" />
|
||||
<result property="applySite" column="apply_site" />
|
||||
<result property="applySiteCode" column="apply_site_code" />
|
||||
<result property="unitMoney" column="unit_money" />
|
||||
<result property="applyCount" column="apply_count" />
|
||||
<result property="sumMoney" column="sum_money" />
|
||||
<result property="blSend" column="bl_send" />
|
||||
<result property="sendDate" column="send_date" />
|
||||
<result property="sendMan" column="send_man" />
|
||||
<result property="sendManCode" column="send_man_code" />
|
||||
<result property="sendSite" column="send_site" />
|
||||
<result property="sendSiteCode" column="send_site_code" />
|
||||
<result property="blCancel" column="bl_cancel" />
|
||||
<result property="cancelMan" column="cancel_man" />
|
||||
<result property="cancelManCode" column="cancel_man_code" />
|
||||
<result property="cancelDate" column="cancel_date" />
|
||||
<result property="cancelSite" column="cancel_site" />
|
||||
<result property="cancelSiteCode" column="cancel_site_code" />
|
||||
<result property="userSite" column="user_site" />
|
||||
<result property="userSiteCode" column="user_site_code" />
|
||||
<result property="startNo" column="start_no" />
|
||||
<result property="endNo" column="end_no" />
|
||||
<result property="curStartNo" column="cur_start_no" />
|
||||
<result property="hasBillCount" column="has_bill_count" />
|
||||
<result property="blAllowAllocate" column="bl_allow_allocate" />
|
||||
<result property="createSiteCode" column="create_site_code" />
|
||||
<result property="modifySiteCode" column="modify_site_code" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisElectronicPagApplyVo">
|
||||
select id, apply_seq, apply_date, provide_type, apply_name, apply_man, apply_man_code, apply_site, apply_site_code, unit_money, apply_count, sum_money, bl_send, send_date, send_man, send_man_code, send_site, send_site_code, bl_cancel, cancel_man, cancel_man_code, cancel_date, cancel_site, cancel_site_code, user_site, user_site_code, start_no, end_no, cur_start_no, has_bill_count, bl_allow_allocate, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark from emis_electronic_pag_apply
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisElectronicPagApplyList" parameterType="EmisElectronicPagApply" resultMap="EmisElectronicPagApplyResult">
|
||||
<include refid="selectEmisElectronicPagApplyVo"/>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="applySeq != null and applySeq != ''"> and apply_seq like concat('%', #{applySeq}, '%')</if>
|
||||
<if test="applyDate != null "> and apply_date = #{applyDate}</if>
|
||||
<if test="provideType != null and provideType != ''"> and provide_type like concat('%', #{provideType}, '%')</if>
|
||||
<if test="applyName != null and applyName != ''"> and apply_name like concat('%', #{applyName}, '%')</if>
|
||||
<if test="applyMan != null and applyMan != ''"> and apply_man like concat('%', #{applyMan}, '%')</if>
|
||||
<if test="applyManCode != null and applyManCode != ''"> and apply_man_code like concat('%', #{applyManCode}, '%')</if>
|
||||
<if test="applySite != null and applySite != ''"> and apply_site like concat('%', #{applySite}, '%')</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''"> and apply_site_code like concat('%', #{applySiteCode}, '%')</if>
|
||||
<if test="unitMoney != null and unitMoney != ''"> and unit_money like concat('%', #{unitMoney}, '%')</if>
|
||||
<if test="applyCount != null and applyCount != ''"> and apply_count like concat('%', #{applyCount}, '%')</if>
|
||||
<if test="sumMoney != null and sumMoney != ''"> and sum_money like concat('%', #{sumMoney}, '%')</if>
|
||||
<if test="blSend != null and blSend != ''"> and bl_send like concat('%', #{blSend}, '%')</if>
|
||||
<if test="sendDate != null and sendDate != ''"> and send_date like concat('%', #{sendDate}, '%')</if>
|
||||
<if test="sendMan != null and sendMan != ''"> and send_man like concat('%', #{sendMan}, '%')</if>
|
||||
<if test="sendManCode != null and sendManCode != ''"> and send_man_code like concat('%', #{sendManCode}, '%')</if>
|
||||
<if test="sendSite != null and sendSite != ''"> and send_site like concat('%', #{sendSite}, '%')</if>
|
||||
<if test="sendSiteCode != null and sendSiteCode != ''"> and send_site_code like concat('%', #{sendSiteCode}, '%')</if>
|
||||
<if test="blCancel != null and blCancel != ''"> and bl_cancel like concat('%', #{blCancel}, '%')</if>
|
||||
<if test="cancelMan != null and cancelMan != ''"> and cancel_man like concat('%', #{cancelMan}, '%')</if>
|
||||
<if test="cancelManCode != null and cancelManCode != ''"> and cancel_man_code like concat('%', #{cancelManCode}, '%')</if>
|
||||
<if test="cancelDate != null and cancelDate != ''"> and cancel_date like concat('%', #{cancelDate}, '%')</if>
|
||||
<if test="cancelSite != null and cancelSite != ''"> and cancel_site like concat('%', #{cancelSite}, '%')</if>
|
||||
<if test="cancelSiteCode != null and cancelSiteCode != ''"> and cancel_site_code like concat('%', #{cancelSiteCode}, '%')</if>
|
||||
<if test="userSite != null and userSite != ''"> and user_site like concat('%', #{userSite}, '%')</if>
|
||||
<if test="userSiteCode != null and userSiteCode != ''"> and user_site_code like concat('%', #{userSiteCode}, '%')</if>
|
||||
<if test="startNo != null and startNo != ''"> and start_no like concat('%', #{startNo}, '%')</if>
|
||||
<if test="endNo != null and endNo != ''"> and end_no like concat('%', #{endNo}, '%')</if>
|
||||
<if test="curStartNo != null and curStartNo != ''"> and cur_start_no like concat('%', #{curStartNo}, '%')</if>
|
||||
<if test="hasBillCount != null and hasBillCount != ''"> and has_bill_count like concat('%', #{hasBillCount}, '%')</if>
|
||||
<if test="blAllowAllocate != null and blAllowAllocate != ''"> and bl_allow_allocate like concat('%', #{blAllowAllocate}, '%')</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''"> and create_site_code like concat('%', #{createSiteCode}, '%')</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''"> and modify_site_code like concat('%', #{modifySiteCode}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectEmisElectronicPagApplyById" parameterType="Long" resultMap="EmisElectronicPagApplyResult">
|
||||
select id, apply_seq, apply_date, provide_type, apply_name, apply_man, apply_man_code, apply_site, apply_site_code, unit_money, apply_count, sum_money, bl_send, send_date, send_man, send_man_code, send_site, send_site_code, bl_cancel, cancel_man, cancel_man_code, cancel_date, cancel_site, cancel_site_code, user_site, user_site_code, start_no, end_no, cur_start_no, has_bill_count, bl_allow_allocate, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark
|
||||
from emis_electronic_pag_apply a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisElectronicPagApply" parameterType="EmisElectronicPagApply">
|
||||
insert into emis_electronic_pag_apply
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="applySeq != null and applySeq != ''">apply_seq,</if>
|
||||
<if test="applyDate != null">apply_date,</if>
|
||||
<if test="provideType != null and provideType != ''">provide_type,</if>
|
||||
<if test="applyName != null and applyName != ''">apply_name,</if>
|
||||
<if test="applyMan != null and applyMan != ''">apply_man,</if>
|
||||
<if test="applyManCode != null and applyManCode != ''">apply_man_code,</if>
|
||||
<if test="applySite != null and applySite != ''">apply_site,</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''">apply_site_code,</if>
|
||||
<if test="unitMoney != null and unitMoney != ''">unit_money,</if>
|
||||
<if test="applyCount != null and applyCount != ''">apply_count,</if>
|
||||
<if test="sumMoney != null and sumMoney != ''">sum_money,</if>
|
||||
<if test="blSend != null and blSend != ''">bl_send,</if>
|
||||
<if test="sendDate != null and sendDate != ''">send_date,</if>
|
||||
<if test="sendMan != null and sendMan != ''">send_man,</if>
|
||||
<if test="sendManCode != null and sendManCode != ''">send_man_code,</if>
|
||||
<if test="sendSite != null and sendSite != ''">send_site,</if>
|
||||
<if test="sendSiteCode != null and sendSiteCode != ''">send_site_code,</if>
|
||||
<if test="blCancel != null and blCancel != ''">bl_cancel,</if>
|
||||
<if test="cancelMan != null and cancelMan != ''">cancel_man,</if>
|
||||
<if test="cancelManCode != null and cancelManCode != ''">cancel_man_code,</if>
|
||||
<if test="cancelDate != null and cancelDate != ''">cancel_date,</if>
|
||||
<if test="cancelSite != null and cancelSite != ''">cancel_site,</if>
|
||||
<if test="cancelSiteCode != null and cancelSiteCode != ''">cancel_site_code,</if>
|
||||
<if test="userSite != null and userSite != ''">user_site,</if>
|
||||
<if test="userSiteCode != null and userSiteCode != ''">user_site_code,</if>
|
||||
<if test="startNo != null and startNo != ''">start_no,</if>
|
||||
<if test="endNo != null and endNo != ''">end_no,</if>
|
||||
<if test="curStartNo != null and curStartNo != ''">cur_start_no,</if>
|
||||
<if test="hasBillCount != null and hasBillCount != ''">has_bill_count,</if>
|
||||
<if test="blAllowAllocate != null and blAllowAllocate != ''">bl_allow_allocate,</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">create_site_code,</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="applySeq != null and applySeq != ''">#{applySeq},</if>
|
||||
<if test="applyDate != null">#{applyDate},</if>
|
||||
<if test="provideType != null and provideType != ''">#{provideType},</if>
|
||||
<if test="applyName != null and applyName != ''">#{applyName},</if>
|
||||
<if test="applyMan != null and applyMan != ''">#{applyMan},</if>
|
||||
<if test="applyManCode != null and applyManCode != ''">#{applyManCode},</if>
|
||||
<if test="applySite != null and applySite != ''">#{applySite},</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''">#{applySiteCode},</if>
|
||||
<if test="unitMoney != null and unitMoney != ''">#{unitMoney},</if>
|
||||
<if test="applyCount != null and applyCount != ''">#{applyCount},</if>
|
||||
<if test="sumMoney != null and sumMoney != ''">#{sumMoney},</if>
|
||||
<if test="blSend != null and blSend != ''">#{blSend},</if>
|
||||
<if test="sendDate != null and sendDate != ''">#{sendDate},</if>
|
||||
<if test="sendMan != null and sendMan != ''">#{sendMan},</if>
|
||||
<if test="sendManCode != null and sendManCode != ''">#{sendManCode},</if>
|
||||
<if test="sendSite != null and sendSite != ''">#{sendSite},</if>
|
||||
<if test="sendSiteCode != null and sendSiteCode != ''">#{sendSiteCode},</if>
|
||||
<if test="blCancel != null and blCancel != ''">#{blCancel},</if>
|
||||
<if test="cancelMan != null and cancelMan != ''">#{cancelMan},</if>
|
||||
<if test="cancelManCode != null and cancelManCode != ''">#{cancelManCode},</if>
|
||||
<if test="cancelDate != null and cancelDate != ''">#{cancelDate},</if>
|
||||
<if test="cancelSite != null and cancelSite != ''">#{cancelSite},</if>
|
||||
<if test="cancelSiteCode != null and cancelSiteCode != ''">#{cancelSiteCode},</if>
|
||||
<if test="userSite != null and userSite != ''">#{userSite},</if>
|
||||
<if test="userSiteCode != null and userSiteCode != ''">#{userSiteCode},</if>
|
||||
<if test="startNo != null and startNo != ''">#{startNo},</if>
|
||||
<if test="endNo != null and endNo != ''">#{endNo},</if>
|
||||
<if test="curStartNo != null and curStartNo != ''">#{curStartNo},</if>
|
||||
<if test="hasBillCount != null and hasBillCount != ''">#{hasBillCount},</if>
|
||||
<if test="blAllowAllocate != null and blAllowAllocate != ''">#{blAllowAllocate},</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">#{createSiteCode},</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">#{modifySiteCode},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisElectronicPagApply" parameterType="EmisElectronicPagApply">
|
||||
update emis_electronic_pag_apply
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="applySeq != null and applySeq != ''">apply_seq = #{applySeq},</if>
|
||||
<if test="applyDate != null">apply_date = #{applyDate},</if>
|
||||
<if test="provideType != null and provideType != ''">provide_type = #{provideType},</if>
|
||||
<if test="applyName != null and applyName != ''">apply_name = #{applyName},</if>
|
||||
<if test="applyMan != null and applyMan != ''">apply_man = #{applyMan},</if>
|
||||
<if test="applyManCode != null and applyManCode != ''">apply_man_code = #{applyManCode},</if>
|
||||
<if test="applySite != null and applySite != ''">apply_site = #{applySite},</if>
|
||||
<if test="applySiteCode != null and applySiteCode != ''">apply_site_code = #{applySiteCode},</if>
|
||||
<if test="unitMoney != null and unitMoney != ''">unit_money = #{unitMoney},</if>
|
||||
<if test="applyCount != null and applyCount != ''">apply_count = #{applyCount},</if>
|
||||
<if test="sumMoney != null and sumMoney != ''">sum_money = #{sumMoney},</if>
|
||||
<if test="blSend != null and blSend != ''">bl_send = #{blSend},</if>
|
||||
<if test="sendDate != null and sendDate != ''">send_date = #{sendDate},</if>
|
||||
<if test="sendMan != null and sendMan != ''">send_man = #{sendMan},</if>
|
||||
<if test="sendManCode != null and sendManCode != ''">send_man_code = #{sendManCode},</if>
|
||||
<if test="sendSite != null and sendSite != ''">send_site = #{sendSite},</if>
|
||||
<if test="sendSiteCode != null and sendSiteCode != ''">send_site_code = #{sendSiteCode},</if>
|
||||
<if test="blCancel != null and blCancel != ''">bl_cancel = #{blCancel},</if>
|
||||
<if test="cancelMan != null and cancelMan != ''">cancel_man = #{cancelMan},</if>
|
||||
<if test="cancelManCode != null and cancelManCode != ''">cancel_man_code = #{cancelManCode},</if>
|
||||
<if test="cancelDate != null and cancelDate != ''">cancel_date = #{cancelDate},</if>
|
||||
<if test="cancelSite != null and cancelSite != ''">cancel_site = #{cancelSite},</if>
|
||||
<if test="cancelSiteCode != null and cancelSiteCode != ''">cancel_site_code = #{cancelSiteCode},</if>
|
||||
<if test="userSite != null and userSite != ''">user_site = #{userSite},</if>
|
||||
<if test="userSiteCode != null and userSiteCode != ''">user_site_code = #{userSiteCode},</if>
|
||||
<if test="startNo != null and startNo != ''">start_no = #{startNo},</if>
|
||||
<if test="endNo != null and endNo != ''">end_no = #{endNo},</if>
|
||||
<if test="curStartNo != null and curStartNo != ''">cur_start_no = #{curStartNo},</if>
|
||||
<if test="hasBillCount != null and hasBillCount != ''">has_bill_count = #{hasBillCount},</if>
|
||||
<if test="blAllowAllocate != null and blAllowAllocate != ''">bl_allow_allocate = #{blAllowAllocate},</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">create_site_code = #{createSiteCode},</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code = #{modifySiteCode},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisElectronicPagApplyById" parameterType="Long">
|
||||
delete from emis_electronic_pag_apply where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisElectronicPagApplyByIds" parameterType="String">
|
||||
delete from emis_electronic_pag_apply where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
146
emis-biz/src/main/resources/mapper/EmisElectronicPagMapper.xml
Normal file
146
emis-biz/src/main/resources/mapper/EmisElectronicPagMapper.xml
Normal file
@ -0,0 +1,146 @@
|
||||
<?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.EmisElectronicPagMapper">
|
||||
|
||||
<resultMap type="EmisElectronicPag" id="EmisElectronicPagResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="startNo" column="start_no" />
|
||||
<result property="endNo" column="end_no" />
|
||||
<result property="billCount" column="bill_count" />
|
||||
<result property="billFee" column="bill_fee" />
|
||||
<result property="curStartNo" column="cur_start_no" />
|
||||
<result property="hasBillCount" column="has_bill_count" />
|
||||
<result property="provideDate" column="provide_date" />
|
||||
<result property="provideMan" column="provide_man" />
|
||||
<result property="provideSite" column="provide_site" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createSiteCode" column="create_site_code" />
|
||||
<result property="modifySiteCode" column="modify_site_code" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisElectronicPagVo">
|
||||
select id, start_no, end_no, bill_count, bill_fee, cur_start_no, has_bill_count, provide_date, provide_man, provide_site, status, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark from emis_electronic_pag
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisElectronicPagList" parameterType="EmisElectronicPag" resultMap="EmisElectronicPagResult">
|
||||
<include refid="selectEmisElectronicPagVo"/>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="startNo != null and startNo != ''"> and start_no like concat('%', #{startNo}, '%')</if>
|
||||
<if test="endNo != null and endNo != ''"> and end_no like concat('%', #{endNo}, '%')</if>
|
||||
<if test="billCount != null and billCount != ''"> and bill_count like concat('%', #{billCount}, '%')</if>
|
||||
<if test="billFee != null and billFee != ''"> and bill_fee like concat('%', #{billFee}, '%')</if>
|
||||
<if test="curStartNo != null and curStartNo != ''"> and cur_start_no like concat('%', #{curStartNo}, '%')</if>
|
||||
<if test="hasBillCount != null and hasBillCount != ''"> and has_bill_count like concat('%', #{hasBillCount}, '%')</if>
|
||||
<if test="provideDate != null "> and provide_date = #{provideDate}</if>
|
||||
<if test="provideMan != null and provideMan != ''"> and provide_man like concat('%', #{provideMan}, '%')</if>
|
||||
<if test="provideSite != null and provideSite != ''"> and provide_site like concat('%', #{provideSite}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status like concat('%', #{status}, '%')</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''"> and create_site_code like concat('%', #{createSiteCode}, '%')</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''"> and modify_site_code like concat('%', #{modifySiteCode}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectEmisElectronicPagById" parameterType="Long" resultMap="EmisElectronicPagResult">
|
||||
select id, start_no, end_no, bill_count, bill_fee, cur_start_no, has_bill_count, provide_date, provide_man, provide_site, status, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark
|
||||
from emis_electronic_pag a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisElectronicPag" parameterType="EmisElectronicPag">
|
||||
insert into emis_electronic_pag
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="startNo != null and startNo != ''">start_no,</if>
|
||||
<if test="endNo != null and endNo != ''">end_no,</if>
|
||||
<if test="billCount != null and billCount != ''">bill_count,</if>
|
||||
<if test="billFee != null and billFee != ''">bill_fee,</if>
|
||||
<if test="curStartNo != null and curStartNo != ''">cur_start_no,</if>
|
||||
<if test="hasBillCount != null and hasBillCount != ''">has_bill_count,</if>
|
||||
<if test="provideDate != null">provide_date,</if>
|
||||
<if test="provideMan != null and provideMan != ''">provide_man,</if>
|
||||
<if test="provideSite != null and provideSite != ''">provide_site,</if>
|
||||
<if test="status != null and status != ''">status,</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">create_site_code,</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="startNo != null and startNo != ''">#{startNo},</if>
|
||||
<if test="endNo != null and endNo != ''">#{endNo},</if>
|
||||
<if test="billCount != null and billCount != ''">#{billCount},</if>
|
||||
<if test="billFee != null and billFee != ''">#{billFee},</if>
|
||||
<if test="curStartNo != null and curStartNo != ''">#{curStartNo},</if>
|
||||
<if test="hasBillCount != null and hasBillCount != ''">#{hasBillCount},</if>
|
||||
<if test="provideDate != null">#{provideDate},</if>
|
||||
<if test="provideMan != null and provideMan != ''">#{provideMan},</if>
|
||||
<if test="provideSite != null and provideSite != ''">#{provideSite},</if>
|
||||
<if test="status != null and status != ''">#{status},</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">#{createSiteCode},</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">#{modifySiteCode},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisElectronicPag" parameterType="EmisElectronicPag">
|
||||
update emis_electronic_pag
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="startNo != null and startNo != ''">start_no = #{startNo},</if>
|
||||
<if test="endNo != null and endNo != ''">end_no = #{endNo},</if>
|
||||
<if test="billCount != null and billCount != ''">bill_count = #{billCount},</if>
|
||||
<if test="billFee != null and billFee != ''">bill_fee = #{billFee},</if>
|
||||
<if test="curStartNo != null and curStartNo != ''">cur_start_no = #{curStartNo},</if>
|
||||
<if test="hasBillCount != null and hasBillCount != ''">has_bill_count = #{hasBillCount},</if>
|
||||
<if test="provideDate != null">provide_date = #{provideDate},</if>
|
||||
<if test="provideMan != null and provideMan != ''">provide_man = #{provideMan},</if>
|
||||
<if test="provideSite != null and provideSite != ''">provide_site = #{provideSite},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">create_site_code = #{createSiteCode},</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code = #{modifySiteCode},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisElectronicPagById" parameterType="Long">
|
||||
delete from emis_electronic_pag where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisElectronicPagByIds" parameterType="String">
|
||||
delete from emis_electronic_pag where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user