diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisPrintTplController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisPrintTplController.java new file mode 100644 index 000000000..c07ff456f --- /dev/null +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisPrintTplController.java @@ -0,0 +1,118 @@ + +/** + * @Project: emis + * @Title: EmisPrintTplController.java + * @author linfso + * @date 2024-05-12 11:28:34 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

快递打印模板 控制器

+ */ + +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.EmisPrintTpl; +import com.xdadan.erp.emis.service.IEmisPrintTplService; + +/** + * 快递打印模板Controller + * + * @author linfso + * @date 2024-05-12 11:28:34 + */ +@RestController +@RequestMapping("/emis/emisPrintTpl") +public class EmisPrintTplController extends BaseController +{ + @Autowired + private IEmisPrintTplService emisPrintTplService; + + /** + * 查询快递打印模板列表 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTpl:list')") + @GetMapping("/list") + public TableDataInfo list(EmisPrintTpl emisPrintTpl) + { + startPage(); + List list = emisPrintTplService.selectEmisPrintTplList(emisPrintTpl); + return getDataTable(list); + } + + /** + * 导出快递打印模板列表 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTpl:export')") + @Log(title = "快递打印模板", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, EmisPrintTpl emisPrintTpl) + { + List list = emisPrintTplService.selectEmisPrintTplList(emisPrintTpl); + ExcelUtil util = new ExcelUtil(EmisPrintTpl.class); + util.exportExcel(response, list, "快递打印模板数据"); + } + + /** + * 获取快递打印模板详细信息 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTpl:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(emisPrintTplService.selectEmisPrintTplById(id)); + } + + /** + * 新增快递打印模板 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTpl:add')") + @Log(title = "快递打印模板", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody EmisPrintTpl emisPrintTpl) + { + return toAjax(emisPrintTplService.insertEmisPrintTpl(emisPrintTpl)); + } + + /** + * 修改快递打印模板 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTpl:edit')") + @Log(title = "快递打印模板", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody EmisPrintTpl emisPrintTpl) + { + return toAjax(emisPrintTplService.updateEmisPrintTpl(emisPrintTpl)); + } + + /** + * 删除快递打印模板 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTpl:remove')") + @Log(title = "快递打印模板", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(emisPrintTplService.deleteEmisPrintTplByIds(ids)); + } +} diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisPrintTplRelController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisPrintTplRelController.java new file mode 100644 index 000000000..24436304e --- /dev/null +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisPrintTplRelController.java @@ -0,0 +1,118 @@ + +/** + * @Project: emis + * @Title: EmisPrintTplRelController.java + * @author linfso + * @date 2024-05-12 11:28:34 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

快递商户关联表 控制器

+ */ + +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.EmisPrintTplRel; +import com.xdadan.erp.emis.service.IEmisPrintTplRelService; + +/** + * 快递商户关联表Controller + * + * @author linfso + * @date 2024-05-12 11:28:34 + */ +@RestController +@RequestMapping("/emis/emisPrintTplRel") +public class EmisPrintTplRelController extends BaseController +{ + @Autowired + private IEmisPrintTplRelService emisPrintTplRelService; + + /** + * 查询快递商户关联表列表 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTplRel:list')") + @GetMapping("/list") + public TableDataInfo list(EmisPrintTplRel emisPrintTplRel) + { + startPage(); + List list = emisPrintTplRelService.selectEmisPrintTplRelList(emisPrintTplRel); + return getDataTable(list); + } + + /** + * 导出快递商户关联表列表 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTplRel:export')") + @Log(title = "快递商户关联表", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, EmisPrintTplRel emisPrintTplRel) + { + List list = emisPrintTplRelService.selectEmisPrintTplRelList(emisPrintTplRel); + ExcelUtil util = new ExcelUtil(EmisPrintTplRel.class); + util.exportExcel(response, list, "快递商户关联表数据"); + } + + /** + * 获取快递商户关联表详细信息 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTplRel:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(emisPrintTplRelService.selectEmisPrintTplRelById(id)); + } + + /** + * 新增快递商户关联表 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTplRel:add')") + @Log(title = "快递商户关联表", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody EmisPrintTplRel emisPrintTplRel) + { + return toAjax(emisPrintTplRelService.insertEmisPrintTplRel(emisPrintTplRel)); + } + + /** + * 修改快递商户关联表 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTplRel:edit')") + @Log(title = "快递商户关联表", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody EmisPrintTplRel emisPrintTplRel) + { + return toAjax(emisPrintTplRelService.updateEmisPrintTplRel(emisPrintTplRel)); + } + + /** + * 删除快递商户关联表 + */ + @PreAuthorize("@ss.hasPermi('emis:emisPrintTplRel:remove')") + @Log(title = "快递商户关联表", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(emisPrintTplRelService.deleteEmisPrintTplRelByIds(ids)); + } +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisPrintTpl.java b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisPrintTpl.java new file mode 100644 index 000000000..291e3a948 --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisPrintTpl.java @@ -0,0 +1,61 @@ +/** + * @Project: emis + * @Title: EmisPrintTpl.java + * @author linfso + * @date 2024-05-12 11:28:34 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

快递打印模板 实体类

+ */ + +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 EmisPrintTpl + * @Description 快递打印模板 + * @author linfso + * @date 2024-05-12 11:28:34 + */ + @Data +public class EmisPrintTpl extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /* id */ + private Long id; + /* 模版代码 */ + private String code; + /* 模板名称 */ + private String name; + /* 模板版本例如1.0.0 */ + private String version; + /* 公共模板标识 0-私有模板 1-公共模板 */ + private Integer isPublic; + /* 模板所有者 */ + private Long merchId; + /* 快递类型 NONE-通用 YD-韵达 SF-顺丰 ZTO-中通 */ + private String expressType; + /* 模板内容-在线模版 */ + private String tplData; + /* 加密模版 */ + private String tplEncData; + /* 在线pdf模版 */ + private String tplPdfData; + /* 在线图片 */ + private String tplPicUrl; + /* 0-初始 1-启用 2-禁用 */ + private Integer status; + +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisPrintTplRel.java b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisPrintTplRel.java new file mode 100644 index 000000000..5cb75946c --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisPrintTplRel.java @@ -0,0 +1,47 @@ +/** + * @Project: emis + * @Title: EmisPrintTplRel.java + * @author linfso + * @date 2024-05-12 11:28:34 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

快递商户关联表 实体类

+ */ + +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 EmisPrintTplRel + * @Description 快递商户关联表 + * @author linfso + * @date 2024-05-12 11:28:34 + */ + @Data +public class EmisPrintTplRel extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /* id */ + private Long id; + /* 商户号 */ + private String merchId; + /* 模板ID */ + private Long tplId; + /* 模版代码 */ + private String tplCode; + /* 模板名称 */ + private String tplName; + +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/mapper/EmisPrintTplMapper.java b/emis-biz/src/main/java/com/xdadan/erp/emis/mapper/EmisPrintTplMapper.java new file mode 100644 index 000000000..6547ce5db --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/mapper/EmisPrintTplMapper.java @@ -0,0 +1,70 @@ +/** + * @Project: emis + * @Title: EmisPrintTplMapper.java + * @author linfso + * @date 2024-05-12 11:28:34 + * @Copyright: ShangHai Doitinfo 2022 All rights reserved. + * @version v1.0 + * @Description:

快递打印模板 Mapper 接口

+ * Warning : This file is generate by ai tools,don't edit!!! + */ +package com.xdadan.erp.emis.mapper; + +import java.util.List; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.xdadan.erp.emis.domain.EmisPrintTpl; +/** + * @ClassName EmisPrintTplMapper + * @Description

快递打印模板 Mapper 接口

+ * @author linfso + * @date 2024-05-12 11:28:34 + */ +public interface EmisPrintTplMapper extends BaseMapper +{ + /** + * 主键查询 + * @param id + * @return + */ + public EmisPrintTpl selectEmisPrintTplById(Long id); + + /** + * 查询列表 + * + * @param emisPrintTpl + * @return 集合 + */ + public List selectEmisPrintTplList(EmisPrintTpl emisPrintTpl); + + /** + * 新增 + * + * @param emisPrintTpl + * @return + */ + public int insertEmisPrintTpl(EmisPrintTpl emisPrintTpl); + + /** + * 修改 + * + * @param emisPrintTpl + * @return + */ + public int updateEmisPrintTpl(EmisPrintTpl emisPrintTpl); + + /** + * 删除 + * + * @param id 主键 + * @return 结果 + */ + public int deleteEmisPrintTplById(Long id); + + /** + * 批量删除 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteEmisPrintTplByIds(Long[] ids); +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/mapper/EmisPrintTplRelMapper.java b/emis-biz/src/main/java/com/xdadan/erp/emis/mapper/EmisPrintTplRelMapper.java new file mode 100644 index 000000000..cf8519dba --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/mapper/EmisPrintTplRelMapper.java @@ -0,0 +1,70 @@ +/** + * @Project: emis + * @Title: EmisPrintTplRelMapper.java + * @author linfso + * @date 2024-05-12 11:28:34 + * @Copyright: ShangHai Doitinfo 2022 All rights reserved. + * @version v1.0 + * @Description:

快递商户关联表 Mapper 接口

+ * Warning : This file is generate by ai tools,don't edit!!! + */ +package com.xdadan.erp.emis.mapper; + +import java.util.List; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.xdadan.erp.emis.domain.EmisPrintTplRel; +/** + * @ClassName EmisPrintTplRelMapper + * @Description

快递商户关联表 Mapper 接口

+ * @author linfso + * @date 2024-05-12 11:28:34 + */ +public interface EmisPrintTplRelMapper extends BaseMapper +{ + /** + * 主键查询 + * @param id + * @return + */ + public EmisPrintTplRel selectEmisPrintTplRelById(Long id); + + /** + * 查询列表 + * + * @param emisPrintTplRel + * @return 集合 + */ + public List selectEmisPrintTplRelList(EmisPrintTplRel emisPrintTplRel); + + /** + * 新增 + * + * @param emisPrintTplRel + * @return + */ + public int insertEmisPrintTplRel(EmisPrintTplRel emisPrintTplRel); + + /** + * 修改 + * + * @param emisPrintTplRel + * @return + */ + public int updateEmisPrintTplRel(EmisPrintTplRel emisPrintTplRel); + + /** + * 删除 + * + * @param id 主键 + * @return 结果 + */ + public int deleteEmisPrintTplRelById(Long id); + + /** + * 批量删除 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteEmisPrintTplRelByIds(Long[] ids); +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/IEmisPrintTplRelService.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/IEmisPrintTplRelService.java new file mode 100644 index 000000000..133ff2f24 --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/IEmisPrintTplRelService.java @@ -0,0 +1,69 @@ + /** + * @Project: emis + * @Title: EmisPrintTplRelService.java + * @author linfso + * @date 2024-05-12 11:28:34 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

快递商户关联表 服务类接口

+ */ +package com.xdadan.erp.emis.service; + +import java.util.List; +import com.xdadan.erp.emis.domain.EmisPrintTplRel; + +/** + * @ClassName EmisPrintTplRelService + * @Description 快递商户关联表 + * @author linfso + * @date 2024-05-12 11:28:34 + */ +public interface IEmisPrintTplRelService +{ + /** + * 主键查询 + * @param id + * @return + */ + public EmisPrintTplRel selectEmisPrintTplRelById(Long id); + + /** + * 查询快递商户关联表列表 + * + * @param emisPrintTplRel 快递商户关联表 + * @return 快递商户关联表集合 + */ + public List selectEmisPrintTplRelList(EmisPrintTplRel emisPrintTplRel); + + /** + * 新增快递商户关联表 + * + * @param emisPrintTplRel 快递商户关联表 + * @return 结果 + */ + public int insertEmisPrintTplRel(EmisPrintTplRel emisPrintTplRel); + + /** + * 修改快递商户关联表 + * + * @param emisPrintTplRel 快递商户关联表 + * @return 结果 + */ + public int updateEmisPrintTplRel(EmisPrintTplRel emisPrintTplRel); + + /** + * 批量删除快递商户关联表 + * + * @param ids 需要删除的快递商户关联表主键集合 + * @return 结果 + */ + public int deleteEmisPrintTplRelByIds(Long[] ids); + + /** + * 删除快递商户关联表信息 + * + * @param id 快递商户关联表主键 + * @return 结果 + */ + public int deleteEmisPrintTplRelById(Long id); +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/IEmisPrintTplService.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/IEmisPrintTplService.java new file mode 100644 index 000000000..69cc3bf89 --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/IEmisPrintTplService.java @@ -0,0 +1,69 @@ + /** + * @Project: emis + * @Title: EmisPrintTplService.java + * @author linfso + * @date 2024-05-12 11:28:34 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

快递打印模板 服务类接口

+ */ +package com.xdadan.erp.emis.service; + +import java.util.List; +import com.xdadan.erp.emis.domain.EmisPrintTpl; + +/** + * @ClassName EmisPrintTplService + * @Description 快递打印模板 + * @author linfso + * @date 2024-05-12 11:28:34 + */ +public interface IEmisPrintTplService +{ + /** + * 主键查询 + * @param id + * @return + */ + public EmisPrintTpl selectEmisPrintTplById(Long id); + + /** + * 查询快递打印模板列表 + * + * @param emisPrintTpl 快递打印模板 + * @return 快递打印模板集合 + */ + public List selectEmisPrintTplList(EmisPrintTpl emisPrintTpl); + + /** + * 新增快递打印模板 + * + * @param emisPrintTpl 快递打印模板 + * @return 结果 + */ + public int insertEmisPrintTpl(EmisPrintTpl emisPrintTpl); + + /** + * 修改快递打印模板 + * + * @param emisPrintTpl 快递打印模板 + * @return 结果 + */ + public int updateEmisPrintTpl(EmisPrintTpl emisPrintTpl); + + /** + * 批量删除快递打印模板 + * + * @param ids 需要删除的快递打印模板主键集合 + * @return 结果 + */ + public int deleteEmisPrintTplByIds(Long[] ids); + + /** + * 删除快递打印模板信息 + * + * @param id 快递打印模板主键 + * @return 结果 + */ + public int deleteEmisPrintTplById(Long id); +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisPrintTplRelServiceImpl.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisPrintTplRelServiceImpl.java new file mode 100644 index 000000000..1c2cf6704 --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisPrintTplRelServiceImpl.java @@ -0,0 +1,104 @@ + /** + * @Project: emis + * @Title: EmisPrintTplRelServiceImpl.java + * @author linfso + * @date 2024-05-12 11:28:34 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

快递商户关联表 实体类

+ */ + +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.EmisPrintTplRel; +import com.xdadan.erp.emis.mapper.EmisPrintTplRelMapper; +import com.xdadan.erp.emis.service.IEmisPrintTplRelService; + +/** + * 快递商户关联表Service业务层处理 + * + * @author linfso + * @date 2024-05-12 11:28:34 + */ +@Service +public class EmisPrintTplRelServiceImpl implements IEmisPrintTplRelService +{ + @Autowired + private EmisPrintTplRelMapper emisPrintTplRelMapper; + + /** + * 查询快递商户关联表 + * + * @param id 快递商户关联表主键 + * @return 快递商户关联表 + */ + @Override + public EmisPrintTplRel selectEmisPrintTplRelById(Long id) + { + return emisPrintTplRelMapper.selectEmisPrintTplRelById(id); + } + + /** + * 查询快递商户关联表列表 + * + * @param emisPrintTplRel 快递商户关联表 + * @return 快递商户关联表 + */ + @Override + public List selectEmisPrintTplRelList(EmisPrintTplRel emisPrintTplRel) + { + return emisPrintTplRelMapper.selectEmisPrintTplRelList(emisPrintTplRel); + } + + /** + * 新增快递商户关联表 + * + * @param emisPrintTplRel 快递商户关联表 + * @return 结果 + */ + @Override + public int insertEmisPrintTplRel(EmisPrintTplRel emisPrintTplRel) + { + return emisPrintTplRelMapper.insertEmisPrintTplRel(emisPrintTplRel); + } + + /** + * 修改快递商户关联表 + * + * @param emisPrintTplRel 快递商户关联表 + * @return 结果 + */ + @Override + public int updateEmisPrintTplRel(EmisPrintTplRel emisPrintTplRel) + { + return emisPrintTplRelMapper.updateEmisPrintTplRel(emisPrintTplRel); + } + + /** + * 批量删除快递商户关联表 + * + * @param ids 需要删除的快递商户关联表主键 + * @return 结果 + */ + @Override + public int deleteEmisPrintTplRelByIds(Long[] ids) + { + return emisPrintTplRelMapper.deleteEmisPrintTplRelByIds(ids); + } + + /** + * 删除快递商户关联表信息 + * + * @param id 快递商户关联表主键 + * @return 结果 + */ + @Override + public int deleteEmisPrintTplRelById(Long id) + { + return emisPrintTplRelMapper.deleteEmisPrintTplRelById(id); + } + +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisPrintTplServiceImpl.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisPrintTplServiceImpl.java new file mode 100644 index 000000000..ab5f226d7 --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisPrintTplServiceImpl.java @@ -0,0 +1,104 @@ + /** + * @Project: emis + * @Title: EmisPrintTplServiceImpl.java + * @author linfso + * @date 2024-05-12 11:28:34 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

快递打印模板 实体类

+ */ + +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.EmisPrintTpl; +import com.xdadan.erp.emis.mapper.EmisPrintTplMapper; +import com.xdadan.erp.emis.service.IEmisPrintTplService; + +/** + * 快递打印模板Service业务层处理 + * + * @author linfso + * @date 2024-05-12 11:28:34 + */ +@Service +public class EmisPrintTplServiceImpl implements IEmisPrintTplService +{ + @Autowired + private EmisPrintTplMapper emisPrintTplMapper; + + /** + * 查询快递打印模板 + * + * @param id 快递打印模板主键 + * @return 快递打印模板 + */ + @Override + public EmisPrintTpl selectEmisPrintTplById(Long id) + { + return emisPrintTplMapper.selectEmisPrintTplById(id); + } + + /** + * 查询快递打印模板列表 + * + * @param emisPrintTpl 快递打印模板 + * @return 快递打印模板 + */ + @Override + public List selectEmisPrintTplList(EmisPrintTpl emisPrintTpl) + { + return emisPrintTplMapper.selectEmisPrintTplList(emisPrintTpl); + } + + /** + * 新增快递打印模板 + * + * @param emisPrintTpl 快递打印模板 + * @return 结果 + */ + @Override + public int insertEmisPrintTpl(EmisPrintTpl emisPrintTpl) + { + return emisPrintTplMapper.insertEmisPrintTpl(emisPrintTpl); + } + + /** + * 修改快递打印模板 + * + * @param emisPrintTpl 快递打印模板 + * @return 结果 + */ + @Override + public int updateEmisPrintTpl(EmisPrintTpl emisPrintTpl) + { + return emisPrintTplMapper.updateEmisPrintTpl(emisPrintTpl); + } + + /** + * 批量删除快递打印模板 + * + * @param ids 需要删除的快递打印模板主键 + * @return 结果 + */ + @Override + public int deleteEmisPrintTplByIds(Long[] ids) + { + return emisPrintTplMapper.deleteEmisPrintTplByIds(ids); + } + + /** + * 删除快递打印模板信息 + * + * @param id 快递打印模板主键 + * @return 结果 + */ + @Override + public int deleteEmisPrintTplById(Long id) + { + return emisPrintTplMapper.deleteEmisPrintTplById(id); + } + +} diff --git a/emis-biz/src/main/resources/mapper/EmisPrintTplMapper.xml b/emis-biz/src/main/resources/mapper/EmisPrintTplMapper.xml new file mode 100644 index 000000000..6e528a281 --- /dev/null +++ b/emis-biz/src/main/resources/mapper/EmisPrintTplMapper.xml @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, code, name, version, is_public, merch_id, express_type, tpl_data, tpl_enc_data, tpl_pdf_data, tpl_pic_url, status, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site from emis_print_tpl + + + + + + + + insert into emis_print_tpl + + id, + code, + name, + version, + is_public, + merch_id, + express_type, + tpl_data, + tpl_enc_data, + tpl_pdf_data, + tpl_pic_url, + status, + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + create_site, + update_site, + + + #{id}, + #{code}, + #{name}, + #{version}, + #{isPublic}, + #{merchId}, + #{expressType}, + #{tplData}, + #{tplEncData}, + #{tplPdfData}, + #{tplPicUrl}, + #{status}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{createSite}, + #{updateSite}, + + + + + update emis_print_tpl + + code = #{code}, + name = #{name}, + version = #{version}, + is_public = #{isPublic}, + merch_id = #{merchId}, + express_type = #{expressType}, + tpl_data = #{tplData}, + tpl_enc_data = #{tplEncData}, + tpl_pdf_data = #{tplPdfData}, + tpl_pic_url = #{tplPicUrl}, + status = #{status}, + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + create_site = #{createSite}, + update_site = #{updateSite}, + + where id = #{id} + + + + delete from emis_print_tpl where id = #{id} + + + + delete from emis_print_tpl where id in + + #{id} + + + \ No newline at end of file diff --git a/emis-biz/src/main/resources/mapper/EmisPrintTplRelMapper.xml b/emis-biz/src/main/resources/mapper/EmisPrintTplRelMapper.xml new file mode 100644 index 000000000..c43b96eec --- /dev/null +++ b/emis-biz/src/main/resources/mapper/EmisPrintTplRelMapper.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + select id, merch_id, tpl_id, tpl_code, tpl_name, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site from emis_print_tpl_rel + + + + + + + + insert into emis_print_tpl_rel + + id, + merch_id, + tpl_id, + tpl_code, + tpl_name, + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + create_site, + update_site, + + + #{id}, + #{merchId}, + #{tplId}, + #{tplCode}, + #{tplName}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{createSite}, + #{updateSite}, + + + + + update emis_print_tpl_rel + + merch_id = #{merchId}, + tpl_id = #{tplId}, + tpl_code = #{tplCode}, + tpl_name = #{tplName}, + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + create_site = #{createSite}, + update_site = #{updateSite}, + + where id = #{id} + + + + delete from emis_print_tpl_rel where id = #{id} + + + + delete from emis_print_tpl_rel where id in + + #{id} + + + \ No newline at end of file