From 9255748f8cf3585f4eb508164c7c9865b67663cd Mon Sep 17 00:00:00 2001 From: linfso Date: Wed, 26 Jun 2024 07:41:39 +0800 Subject: [PATCH] md --- .../emis/EmisWaybillAjustApplyController.java | 134 ++++++++++ .../emis/domain/EmisWaybillAjustApply.java | 82 +++++++ .../mapper/EmisWaybillAjustApplyMapper.java | 80 ++++++ .../IEmisWaybillAjustApplyService.java | 78 ++++++ .../EmisWaybillAjustApplyServiceImpl.java | 117 +++++++++ .../mapper/EmisWaybillAjustApplyMapper.xml | 229 ++++++++++++++++++ 6 files changed, 720 insertions(+) create mode 100644 emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAjustApplyController.java create mode 100644 emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisWaybillAjustApply.java create mode 100644 emis-biz/src/main/java/com/xdadan/erp/emis/mapper/EmisWaybillAjustApplyMapper.java create mode 100644 emis-biz/src/main/java/com/xdadan/erp/emis/service/IEmisWaybillAjustApplyService.java create mode 100644 emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillAjustApplyServiceImpl.java create mode 100644 emis-biz/src/main/resources/mapper/EmisWaybillAjustApplyMapper.xml diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAjustApplyController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAjustApplyController.java new file mode 100644 index 000000000..1b1259e9d --- /dev/null +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAjustApplyController.java @@ -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:

运单调整申请 控制器

+ */ + +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 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 list = emisWaybillAjustApplyService.selectEmisWaybillAjustApplyList(emisWaybillAjustApply); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisWaybillAjustApply.java b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisWaybillAjustApply.java new file mode 100644 index 000000000..43e1f0ade --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisWaybillAjustApply.java @@ -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:

运单调整申请 实体类

+ */ + +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; + +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/mapper/EmisWaybillAjustApplyMapper.java b/emis-biz/src/main/java/com/xdadan/erp/emis/mapper/EmisWaybillAjustApplyMapper.java new file mode 100644 index 000000000..f368d03e2 --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/mapper/EmisWaybillAjustApplyMapper.java @@ -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:

运单调整申请 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.EmisWaybillAjustApply; +/** + * @ClassName EmisWaybillAjustApplyMapper + * @Description

运单调整申请 Mapper 接口

+ * @author linfso + * @date 2024-06-25 23:39:28 + */ +public interface EmisWaybillAjustApplyMapper extends BaseMapper +{ + /** + * 主键查询 + * @param id + * @return + */ + public EmisWaybillAjustApply selectEmisWaybillAjustApplyById(Long id); + + /** + * 查询列表 + * + * @param emisWaybillAjustApply + * @return 集合 + */ + public List 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); +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/IEmisWaybillAjustApplyService.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/IEmisWaybillAjustApplyService.java new file mode 100644 index 000000000..b526015a5 --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/IEmisWaybillAjustApplyService.java @@ -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:

运单调整申请 服务类接口

+ */ +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 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); +} diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillAjustApplyServiceImpl.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillAjustApplyServiceImpl.java new file mode 100644 index 000000000..751a0211a --- /dev/null +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillAjustApplyServiceImpl.java @@ -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:

运单调整申请 实体类

+ */ + +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 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); + } + +} diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillAjustApplyMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillAjustApplyMapper.xml new file mode 100644 index 000000000..718b4e239 --- /dev/null +++ b/emis-biz/src/main/resources/mapper/EmisWaybillAjustApplyMapper.xml @@ -0,0 +1,229 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + insert into emis_waybill_ajust_apply + + 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, + + + #{id}, + #{billCode}, + #{applyType}, + #{applyManCode}, + #{applySiteCode}, + #{applyFinanceCenterCode}, + #{applyDate}, + #{blDestConfirmed}, + #{destConfirmSiteCode}, + #{destConfirmDate}, + #{destConfirmNote}, + #{destConfirmManCode}, + #{oldValue}, + #{newValue}, + #{blValueJson}, + #{applyMemo}, + #{destFinanceCenterCode}, + #{centerConfirmSiteCode}, + #{centerConfirmManCode}, + #{centerConfirmDate}, + #{centerConfirmNote}, + #{remark}, + #{tenantId}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{createSite}, + #{updateSite}, + + + + + update emis_waybill_ajust_apply + + bill_code = #{billCode}, + apply_type = #{applyType}, + apply_man_code = #{applyManCode}, + apply_site_code = #{applySiteCode}, + apply_finance_center_code = #{applyFinanceCenterCode}, + apply_date = #{applyDate}, + bl_dest_confirmed = #{blDestConfirmed}, + dest_confirm_site_code = #{destConfirmSiteCode}, + dest_confirm_date = #{destConfirmDate}, + dest_confirm_note = #{destConfirmNote}, + dest_confirm_man_code = #{destConfirmManCode}, + old_value = #{oldValue}, + new_value = #{newValue}, + bl_value_json = #{blValueJson}, + apply_memo = #{applyMemo}, + dest_finance_center_code = #{destFinanceCenterCode}, + center_confirm_site_code = #{centerConfirmSiteCode}, + center_confirm_man_code = #{centerConfirmManCode}, + center_confirm_date = #{centerConfirmDate}, + center_confirm_note = #{centerConfirmNote}, + remark = #{remark}, + tenant_id = #{tenantId}, + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + create_site = #{createSite}, + update_site = #{updateSite}, + + where id = #{id} + + + + delete from emis_waybill_ajust_apply where id = #{id} + + + + delete from emis_waybill_ajust_apply where id in + + #{id} + + + \ No newline at end of file