From cc38264fe00854d6d4cb96725a12644d444f89d2 Mon Sep 17 00:00:00 2001 From: linfso Date: Thu, 18 Jul 2024 00:36:12 +0800 Subject: [PATCH] md --- .../erp/oms/web/Oms2cWaybillController.java | 158 ++++++++++++++++ .../erp/oms/domain/EmisEmailSendRecord.java | 59 ++++++ .../erp/oms/domain/EmisMonthpayUseApply.java | 57 ++++++ .../oms/mapper/EmisEmailSendRecordMapper.java | 81 +++++++++ .../mapper/EmisMonthpayUseApplyMapper.java | 72 ++++++++ .../EmisEmailSendRecordServiceImpl.java | 117 ++++++++++++ .../service/IEmisEmailSendRecordService.java | 79 ++++++++ .../service/IEmisMonthpayUseApplyService.java | 71 ++++++++ .../erp/oms/service/IEmisWaybillService.java | 2 + .../impl/EmisMonthpayUseApplyServiceImpl.java | 105 +++++++++++ .../mapper/EmisEmailSendRecordMapper.xml | 169 ++++++++++++++++++ .../mapper/EmisMonthpayUseApplyMapper.xml | 143 +++++++++++++++ 12 files changed, 1113 insertions(+) create mode 100644 emis-oms-biz/src/main/java/com/xdadan/erp/oms/domain/EmisEmailSendRecord.java create mode 100644 emis-oms-biz/src/main/java/com/xdadan/erp/oms/domain/EmisMonthpayUseApply.java create mode 100644 emis-oms-biz/src/main/java/com/xdadan/erp/oms/mapper/EmisEmailSendRecordMapper.java create mode 100644 emis-oms-biz/src/main/java/com/xdadan/erp/oms/mapper/EmisMonthpayUseApplyMapper.java create mode 100644 emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/EmisEmailSendRecordServiceImpl.java create mode 100644 emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisEmailSendRecordService.java create mode 100644 emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisMonthpayUseApplyService.java create mode 100644 emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/impl/EmisMonthpayUseApplyServiceImpl.java create mode 100644 emis-oms-biz/src/main/resources/mapper/EmisEmailSendRecordMapper.xml create mode 100644 emis-oms-biz/src/main/resources/mapper/EmisMonthpayUseApplyMapper.xml diff --git a/emis-oms-biz-web/src/main/java/com/xdadan/erp/oms/web/Oms2cWaybillController.java b/emis-oms-biz-web/src/main/java/com/xdadan/erp/oms/web/Oms2cWaybillController.java index 32bde9e..de4b5bc 100644 --- a/emis-oms-biz-web/src/main/java/com/xdadan/erp/oms/web/Oms2cWaybillController.java +++ b/emis-oms-biz-web/src/main/java/com/xdadan/erp/oms/web/Oms2cWaybillController.java @@ -15,18 +15,27 @@ import java.io.*; import java.util.*; import javax.validation.Valid; +import cn.hutool.core.collection.CollectionUtil; import com.alibaba.fastjson.JSONObject; import com.xdadan.erp.oms.common.annotation.filter.jackson.JacksonFilter; +import com.xdadan.erp.oms.common.core.domain.entity.SysOmsUser; import com.xdadan.erp.oms.common.utils.DateUtils; import com.xdadan.erp.oms.common.utils.HTTPHelperV3; +import com.xdadan.erp.oms.common.utils.VerifyCodeUtil; +import com.xdadan.erp.oms.common.utils.spring.SpringUtils; +import com.xdadan.erp.oms.domain.EmisEmailSendRecord; +import com.xdadan.erp.oms.domain.EmisMonthpayUseApply; import com.xdadan.erp.oms.domain.enumtype.EmisBizErrorType; import com.xdadan.erp.oms.domain.exception.EmisBizError; import com.xdadan.erp.oms.domain.vo.*; import com.xdadan.erp.oms.domain.wms.WmsWarehouse; +import com.xdadan.erp.oms.framework.mq.MQSender; import com.xdadan.erp.oms.service.*; import com.xdadan.erp.oms.service.svc.IRpcWaybillSvc; import com.xdadan.erp.oms.service.svc.IRpcWaybillSvc; import com.xdadan.erp.oms.service.svc.IRpcWmsWarehouseSvc; +import com.xdadan.erp.oms.system.domain.SysOmsUserRole; +import com.xdadan.erp.oms.system.service.ISysOmsUserService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -55,6 +64,15 @@ public class Oms2cWaybillController extends BaseController @Autowired private IEmisWaybillService emisWaybillService; + @Autowired + private ISysOmsUserService sysOmsUserService; + + @Autowired + private IEmisMonthpayUseApplyService emisMonthpayUseApplyService; + + @Autowired + private IEmisEmailSendRecordService emisEmailSendRecordService; + @Autowired private IRpcWaybillSvc iRpcWaybillSvc; @@ -232,5 +250,145 @@ public class Oms2cWaybillController extends BaseController } + /** + * 绑定月结卡号 + * @param monthPayCode + * @return + */ + @GetMapping("/bindMonthPayCode") + public AjaxResult bindMonthPayCode(String monthPayCode) + { + + try { + + if(StringUtils.isEmpty(monthPayCode)){ + return AjaxResult.error("绑定失败,月结卡号必填!"); + } + // 查询月结账号是否存在 + SysOmsUser qParam = new SysOmsUser(); + qParam.setMonthlyPayCode(monthPayCode); + + List omsUserList = sysOmsUserService.selectSysOmsUserList(qParam); + if(CollectionUtil.isEmpty(omsUserList)){ + return AjaxResult.error("绑定失败,月结卡号不存在!"); + } + + SysOmsUser sysOmsUser0 = omsUserList.get(0); + + String email = sysOmsUser0.getEmail(); + if(StringUtils.isEmpty(email)){ + return AjaxResult.error("月结卡号对应邮箱不存在,不支持绑定!"); + } + + // 生成流水号 + String nowStr=DateUtils.parseDateToStr(DateUtils.YYYYMMDDHHMMSS,new Date()); + String applySeqNo=nowStr+Math.round(Math.random() * 23 + 1000); + + String msgCode = VerifyCodeUtil.generateTextCode(VerifyCodeUtil.TYPE_NUM_ONLY, 4, null); + + EmisMonthpayUseApply emisMonthpayUseApply=new EmisMonthpayUseApply(); + emisMonthpayUseApply.setCustomerCode(getLoginUser().getUser().getCustomerCode()); + emisMonthpayUseApply.setCustNo(monthPayCode); + emisMonthpayUseApply.setApplySeq(applySeqNo); + emisMonthpayUseApply.setApplyName("月结卡号绑定申请"); + emisMonthpayUseApply.setMsgCode(msgCode); + emisMonthpayUseApply.setApplyDate(new Date()); + emisMonthpayUseApplyService.insertEmisMonthpayUseApply(emisMonthpayUseApply); + + + //绑定 + emisWaybillService.bindMonthPayCode(monthPayCode); + + + // 插入短信记录 + EmisEmailSendRecord emisEmailSendRecord = new EmisEmailSendRecord(); + emisEmailSendRecord.setEmail(email); + String sendMsg=getLoginUser().getUser().getCustomerName()+" 申请绑定月结账号:"+monthPayCode+",验证码是"+msgCode; + emisEmailSendRecord.setContent(sendMsg); + emisEmailSendRecordService.insertEmisEmailSendRecord(emisEmailSendRecord); + + return AjaxResult.success("你已申请月结账号 "+monthPayCode+" 绑定,联系邮箱"+email+"收取验证码验证。"); + + + }catch (Exception ex){ + ex.printStackTrace(); + // 返回子定义异常 + if(ex instanceof EmisBizError){ + return AjaxResult.error(ex.getMessage(),((EmisBizError)ex).getErrorCode()); + } + return AjaxResult.error("服务器异常,联系客服"); + } + + } + + + /** + * 验证绑定月结卡号 + * @param monthPayCode + * @return + */ + @GetMapping("/verifyBindMonthPayCode") + public AjaxResult verifyBindMonthPayCode(String monthPayCode,String code) + { + + try { + + if(StringUtils.isEmpty(monthPayCode)){ + return AjaxResult.error("绑定失败,月结卡号必填!"); + } + + if(StringUtils.isEmpty(code)){ + return AjaxResult.error("验证码必填!"); + } + + // 查询月结账号是否存在 + SysOmsUser qParam = new SysOmsUser(); + qParam.setMonthlyPayCode(monthPayCode); + + List omsUserList = sysOmsUserService.selectSysOmsUserList(qParam); + if(CollectionUtil.isEmpty(omsUserList)){ + return AjaxResult.error("绑定失败,月结卡号不存在!"); + } + + SysOmsUser sysOmsUser0 = omsUserList.get(0); + + String email = sysOmsUser0.getEmail(); + if(StringUtils.isEmpty(email)){ + return AjaxResult.error("月结卡号对应邮箱不存在,不支持绑定!"); + } + + // 生成流水号 + String nowStr=DateUtils.parseDateToStr(DateUtils.YYYYMMDDHHMMSS,new Date()); + String applySeqNo=nowStr+Math.round(Math.random() * 23 + 1000); + + String msgCode = VerifyCodeUtil.generateTextCode(VerifyCodeUtil.TYPE_NUM_ONLY, 4, null); + + EmisMonthpayUseApply emisMonthpayUseApply=new EmisMonthpayUseApply(); + emisMonthpayUseApply.setCustomerCode(getLoginUser().getUser().getCustomerCode()); + emisMonthpayUseApply.setCustNo(monthPayCode); + emisMonthpayUseApply.setApplySeq(applySeqNo); + emisMonthpayUseApply.setApplyName("月结卡号绑定申请"); + emisMonthpayUseApply.setMsgCode(msgCode); + emisMonthpayUseApply.setApplyDate(new Date()); + emisMonthpayUseApplyService.insertEmisMonthpayUseApply(emisMonthpayUseApply); + + // 发送有限发送短信 +// SpringUtils.getBean(MQSender.class).sendCustomMessage("TANEX-OMS-OPLOG", JSONObject.toJSONString(operLog)); + + emisWaybillService.bindMonthPayCode(monthPayCode); + return AjaxResult.success("你已申请月结账号 "+monthPayCode+" 绑定,联系邮箱"+email+"收取验证码验证。"); + + + }catch (Exception ex){ + ex.printStackTrace(); + // 返回子定义异常 + if(ex instanceof EmisBizError){ + return AjaxResult.error(ex.getMessage(),((EmisBizError)ex).getErrorCode()); + } + return AjaxResult.error("服务器异常,联系客服"); + } + + } + } diff --git a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/domain/EmisEmailSendRecord.java b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/domain/EmisEmailSendRecord.java new file mode 100644 index 0000000..fe86282 --- /dev/null +++ b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/domain/EmisEmailSendRecord.java @@ -0,0 +1,59 @@ +/** + * @Project: emis + * @Title: EmisEmailSendRecord.java + * @author linfso + * @date 2024-07-17 16:24:44 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

短信发送记录表 实体类

+ */ + +package com.xdadan.erp.oms.domain; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.xdadan.erp.oms.common.core.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; +import lombok.Data; + + +/** + * @ClassName EmisEmailSendRecord + * @Description 邮件发送记录表 + * @author linfso + * @date 2024-07-17 16:24:44 + */ + @Data +public class EmisEmailSendRecord extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /* id */ + private Long id; + /* 单号 */ + private String orderNo; + /* 类型 1-月结验证码 */ + private String sendType; + /* emial */ + private String email; + /* 内容 */ + private String content; + /* 发送渠道 */ + private String smsChannel; + /* 发送时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date sendDate; + /* 渠道发送状态 0-未发送 1-已发送 -1 发送错误 */ + private String sendStatus; + /* 渠道错误代码 */ + private String errCode; + /* 渠道错误信息 */ + private String errMsg; + /* 任务处理时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date taskDate; + +} diff --git a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/domain/EmisMonthpayUseApply.java b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/domain/EmisMonthpayUseApply.java new file mode 100644 index 0000000..4ca4220 --- /dev/null +++ b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/domain/EmisMonthpayUseApply.java @@ -0,0 +1,57 @@ +/** + * @Project: emis + * @Title: EmisMonthpayUseApply.java + * @author linfso + * @date 2024-04-24 05:05:23 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

月结账号使用申请关联 实体类

+ */ + +package com.xdadan.erp.oms.domain; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.xdadan.erp.oms.common.core.domain.BaseEntity; +import lombok.Data; + +import java.util.Date; + + +/** + * @ClassName EmisMonthpayUseApply + * @Description 月结账号使用申请关联 + * @author linfso + * @date 2024-04-24 05:05:23 + */ + @Data +public class EmisMonthpayUseApply extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /* id */ + private Long id; + /* 月结编号 */ + private String custNo; + /* 申请客户编码 */ + private String customerCode; + /* 申请序号 */ + private String applySeq; + /* 申请时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date applyDate; + /* 物料名称:电子面单 */ + private String applyName; + /* 审核时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date auditDate; + /* 审核状态 0-待审核 1-通过 2-审核拒绝 */ + private Integer auditStatus; + /* 审核原因 */ + private String auditReson; + /* 审核人编号 */ + private String auditBy; + /* 审核验证码 */ + private String msgCode; + + +} diff --git a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/mapper/EmisEmailSendRecordMapper.java b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/mapper/EmisEmailSendRecordMapper.java new file mode 100644 index 0000000..5ea7b41 --- /dev/null +++ b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/mapper/EmisEmailSendRecordMapper.java @@ -0,0 +1,81 @@ +/** + * @Project: emis + * @Title: EmisEmailSendRecordMapper.java + * @author linfso + * @date 2024-07-17 16:24:44 + * @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.oms.mapper; + +import java.util.List; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.xdadan.erp.oms.domain.EmisEmailSendRecord; + +/** + * @ClassName EmisEmailSendRecordMapper + * @Description

短信发送记录表 Mapper 接口

+ * @author linfso + * @date 2024-07-17 16:24:44 + */ +public interface EmisEmailSendRecordMapper extends BaseMapper +{ + /** + * 主键查询 + * @param id + * @return + */ + public EmisEmailSendRecord selectEmisEmailSendRecordById(Long id); + + /** + * 查询列表 + * + * @param emisEmailSendRecord + * @return 集合 + */ + public List selectEmisEmailSendRecordList(EmisEmailSendRecord emisEmailSendRecord); + + + /** + * 检查是否重复 + * + * @param emisEmailSendRecord + * @return 数量 + */ + public int checkUnique(EmisEmailSendRecord emisEmailSendRecord); + + + /** + * 新增 + * + * @param emisEmailSendRecord + * @return + */ + public int insertEmisEmailSendRecord(EmisEmailSendRecord emisEmailSendRecord); + + /** + * 修改 + * + * @param emisEmailSendRecord + * @return + */ + public int updateEmisEmailSendRecord(EmisEmailSendRecord emisEmailSendRecord); + + /** + * 删除 + * + * @param id 主键 + * @return 结果 + */ + public int deleteEmisEmailSendRecordById(Long id); + + /** + * 批量删除 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteEmisEmailSendRecordByIds(Long[] ids); +} diff --git a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/mapper/EmisMonthpayUseApplyMapper.java b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/mapper/EmisMonthpayUseApplyMapper.java new file mode 100644 index 0000000..d9fb32c --- /dev/null +++ b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/mapper/EmisMonthpayUseApplyMapper.java @@ -0,0 +1,72 @@ +/** + * @Project: emis + * @Title: EmisMonthpayUseApplyMapper.java + * @author linfso + * @date 2024-04-24 05:05:23 + * @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.oms.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.xdadan.erp.oms.domain.EmisMonthpayUseApply; + +import java.util.List; + +/** + * @ClassName EmisMonthpayUseApplyMapper + * @Description

月结账号使用申请关联 Mapper 接口

+ * @author linfso + * @date 2024-04-24 05:05:23 + */ +public interface EmisMonthpayUseApplyMapper extends BaseMapper +{ + /** + * 主键查询 + * @param id + * @return + */ + public EmisMonthpayUseApply selectEmisMonthpayUseApplyById(Long id); + + /** + * 查询列表 + * + * @param emisMonthpayUseApply + * @return 集合 + */ + public List selectEmisMonthpayUseApplyList(EmisMonthpayUseApply emisMonthpayUseApply); + + /** + * 新增 + * + * @param emisMonthpayUseApply + * @return + */ + public int insertEmisMonthpayUseApply(EmisMonthpayUseApply emisMonthpayUseApply); + + /** + * 修改 + * + * @param emisMonthpayUseApply + * @return + */ + public int updateEmisMonthpayUseApply(EmisMonthpayUseApply emisMonthpayUseApply); + + /** + * 删除 + * + * @param id 主键 + * @return 结果 + */ + public int deleteEmisMonthpayUseApplyById(Long id); + + /** + * 批量删除 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteEmisMonthpayUseApplyByIds(Long[] ids); +} diff --git a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/EmisEmailSendRecordServiceImpl.java b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/EmisEmailSendRecordServiceImpl.java new file mode 100644 index 0000000..b4b5ba1 --- /dev/null +++ b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/EmisEmailSendRecordServiceImpl.java @@ -0,0 +1,117 @@ + /** + * @Project: emis + * @Title: EmisEmailSendRecordServiceImpl.java + * @author linfso + * @date 2024-07-17 16:24:44 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

短信发送记录表 实体类

+ */ + +package com.xdadan.erp.oms.service; + +import java.util.List; + +import com.xdadan.erp.oms.domain.EmisEmailSendRecord; +import com.xdadan.erp.oms.mapper.EmisEmailSendRecordMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +/** + * 短信发送记录表Service业务层处理 + * + * @author linfso + * @date 2024-07-17 16:24:44 + */ +@Service +public class EmisEmailSendRecordServiceImpl implements IEmisEmailSendRecordService +{ + @Autowired + private EmisEmailSendRecordMapper emisEmailSendRecordMapper; + + /** + * 查询短信发送记录表 + * + * @param id 短信发送记录表主键 + * @return 短信发送记录表 + */ + @Override + public EmisEmailSendRecord selectEmisEmailSendRecordById(Long id) + { + return emisEmailSendRecordMapper.selectEmisEmailSendRecordById(id); + } + + + /** + * 查询短信发送记录表列表 + * + * @param emisEmailSendRecord 短信发送记录表 + * @return 短信发送记录表 + */ + @Override + public List selectEmisEmailSendRecordList(EmisEmailSendRecord emisEmailSendRecord) + { + return emisEmailSendRecordMapper.selectEmisEmailSendRecordList(emisEmailSendRecord); + } + + /** + * 检查是否重复 + * + * @param emisEmailSendRecord + * @return 数量 + */ + @Override + public int checkUnique(EmisEmailSendRecord emisEmailSendRecord) + { + return emisEmailSendRecordMapper.checkUnique(emisEmailSendRecord); + } + + /** + * 新增短信发送记录表 + * + * @param emisEmailSendRecord 短信发送记录表 + * @return 结果 + */ + @Override + public int insertEmisEmailSendRecord(EmisEmailSendRecord emisEmailSendRecord) + { + return emisEmailSendRecordMapper.insertEmisEmailSendRecord(emisEmailSendRecord); + } + + /** + * 修改短信发送记录表 + * + * @param emisEmailSendRecord 短信发送记录表 + * @return 结果 + */ + @Override + public int updateEmisEmailSendRecord(EmisEmailSendRecord emisEmailSendRecord) + { + return emisEmailSendRecordMapper.updateEmisEmailSendRecord(emisEmailSendRecord); + } + + /** + * 批量删除短信发送记录表 + * + * @param ids 需要删除的短信发送记录表主键 + * @return 结果 + */ + @Override + public int deleteEmisEmailSendRecordByIds(Long[] ids) + { + return emisEmailSendRecordMapper.deleteEmisEmailSendRecordByIds(ids); + } + + /** + * 删除短信发送记录表信息 + * + * @param id 短信发送记录表主键 + * @return 结果 + */ + @Override + public int deleteEmisEmailSendRecordById(Long id) + { + return emisEmailSendRecordMapper.deleteEmisEmailSendRecordById(id); + } + +} diff --git a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisEmailSendRecordService.java b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisEmailSendRecordService.java new file mode 100644 index 0000000..57c1201 --- /dev/null +++ b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisEmailSendRecordService.java @@ -0,0 +1,79 @@ + /** + * @Project: emis + * @Title: EmisEmailSendRecordService.java + * @author linfso + * @date 2024-07-17 16:24:44 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

短信发送记录表 服务类接口

+ */ +package com.xdadan.erp.oms.service; + +import com.xdadan.erp.oms.domain.EmisEmailSendRecord; + +import java.util.List; + +/** + * @ClassName EmisEmailSendRecordService + * @Description 短信发送记录表 + * @author linfso + * @date 2024-07-17 16:24:44 + */ +public interface IEmisEmailSendRecordService +{ + /** + * 主键查询 + * @param id + * @return + */ + public EmisEmailSendRecord selectEmisEmailSendRecordById(Long id); + + /** + * 查询短信发送记录表列表 + * + * @param emisEmailSendRecord 短信发送记录表 + * @return 短信发送记录表集合 + */ + public List selectEmisEmailSendRecordList(EmisEmailSendRecord emisEmailSendRecord); + + + /** + * 检查是否重复 + * + * @param emisEmailSendRecord + * @return 数量 + */ + public int checkUnique(EmisEmailSendRecord emisEmailSendRecord); + + /** + * 新增短信发送记录表 + * + * @param emisEmailSendRecord 短信发送记录表 + * @return 结果 + */ + public int insertEmisEmailSendRecord(EmisEmailSendRecord emisEmailSendRecord); + + /** + * 修改短信发送记录表 + * + * @param emisEmailSendRecord 短信发送记录表 + * @return 结果 + */ + public int updateEmisEmailSendRecord(EmisEmailSendRecord emisEmailSendRecord); + + /** + * 批量删除短信发送记录表 + * + * @param ids 需要删除的短信发送记录表主键集合 + * @return 结果 + */ + public int deleteEmisEmailSendRecordByIds(Long[] ids); + + /** + * 删除短信发送记录表信息 + * + * @param id 短信发送记录表主键 + * @return 结果 + */ + public int deleteEmisEmailSendRecordById(Long id); +} diff --git a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisMonthpayUseApplyService.java b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisMonthpayUseApplyService.java new file mode 100644 index 0000000..d084893 --- /dev/null +++ b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisMonthpayUseApplyService.java @@ -0,0 +1,71 @@ + /** + * @Project: emis + * @Title: EmisMonthpayUseApplyService.java + * @author linfso + * @date 2024-04-24 05:05:23 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

月结账号使用申请关联 服务类接口

+ */ +package com.xdadan.erp.oms.service; + + + import com.xdadan.erp.oms.domain.EmisMonthpayUseApply; + + import java.util.List; + + /** + * @ClassName EmisMonthpayUseApplyService + * @Description 月结账号使用申请关联 + * @author linfso + * @date 2024-04-24 05:05:23 + */ + public interface IEmisMonthpayUseApplyService + { + /** + * 主键查询 + * @param id + * @return + */ + public EmisMonthpayUseApply selectEmisMonthpayUseApplyById(Long id); + + /** + * 查询月结账号使用申请关联列表 + * + * @param emisMonthpayUseApply 月结账号使用申请关联 + * @return 月结账号使用申请关联集合 + */ + public List selectEmisMonthpayUseApplyList(EmisMonthpayUseApply emisMonthpayUseApply); + + /** + * 新增月结账号使用申请关联 + * + * @param emisMonthpayUseApply 月结账号使用申请关联 + * @return 结果 + */ + public int insertEmisMonthpayUseApply(EmisMonthpayUseApply emisMonthpayUseApply); + + /** + * 修改月结账号使用申请关联 + * + * @param emisMonthpayUseApply 月结账号使用申请关联 + * @return 结果 + */ + public int updateEmisMonthpayUseApply(EmisMonthpayUseApply emisMonthpayUseApply); + + /** + * 批量删除月结账号使用申请关联 + * + * @param ids 需要删除的月结账号使用申请关联主键集合 + * @return 结果 + */ + public int deleteEmisMonthpayUseApplyByIds(Long[] ids); + + /** + * 删除月结账号使用申请关联信息 + * + * @param id 月结账号使用申请关联主键 + * @return 结果 + */ + public int deleteEmisMonthpayUseApplyById(Long id); + } diff --git a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisWaybillService.java b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisWaybillService.java index fe915bb..2b3494f 100644 --- a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisWaybillService.java +++ b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/IEmisWaybillService.java @@ -36,6 +36,8 @@ public interface IEmisWaybillService public int bindSalesmen(String empCode) throws EmisBizError; + public int bindMonthPayCode(String monthPayCode) throws EmisBizError; + diff --git a/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/impl/EmisMonthpayUseApplyServiceImpl.java b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/impl/EmisMonthpayUseApplyServiceImpl.java new file mode 100644 index 0000000..b5581d2 --- /dev/null +++ b/emis-oms-biz/src/main/java/com/xdadan/erp/oms/service/impl/EmisMonthpayUseApplyServiceImpl.java @@ -0,0 +1,105 @@ + /** + * @Project: emis + * @Title: EmisMonthpayUseApplyServiceImpl.java + * @author linfso + * @date 2024-04-24 05:05:23 + * @Copyright: ShangHai Duta 2022 All rights reserved. + * @version v1.0 + * @Description:

月结账号使用申请关联 实体类

+ */ + +package com.xdadan.erp.oms.service.impl; + + import com.xdadan.erp.oms.domain.EmisMonthpayUseApply; + import com.xdadan.erp.oms.mapper.EmisMonthpayUseApplyMapper; + import com.xdadan.erp.oms.service.IEmisMonthpayUseApplyService; + import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + + import java.util.List; + + /** + * 月结账号使用申请关联Service业务层处理 + * + * @author linfso + * @date 2024-04-24 05:05:23 + */ + @Service + public class EmisMonthpayUseApplyServiceImpl implements IEmisMonthpayUseApplyService + { + @Autowired + private EmisMonthpayUseApplyMapper emisMonthpayUseApplyMapper; + + /** + * 查询月结账号使用申请关联 + * + * @param id 月结账号使用申请关联主键 + * @return 月结账号使用申请关联 + */ + @Override + public EmisMonthpayUseApply selectEmisMonthpayUseApplyById(Long id) + { + return emisMonthpayUseApplyMapper.selectEmisMonthpayUseApplyById(id); + } + + /** + * 查询月结账号使用申请关联列表 + * + * @param emisMonthpayUseApply 月结账号使用申请关联 + * @return 月结账号使用申请关联 + */ + @Override + public List selectEmisMonthpayUseApplyList(EmisMonthpayUseApply emisMonthpayUseApply) + { + return emisMonthpayUseApplyMapper.selectEmisMonthpayUseApplyList(emisMonthpayUseApply); + } + + /** + * 新增月结账号使用申请关联 + * + * @param emisMonthpayUseApply 月结账号使用申请关联 + * @return 结果 + */ + @Override + public int insertEmisMonthpayUseApply(EmisMonthpayUseApply emisMonthpayUseApply) + { + return emisMonthpayUseApplyMapper.insertEmisMonthpayUseApply(emisMonthpayUseApply); + } + + /** + * 修改月结账号使用申请关联 + * + * @param emisMonthpayUseApply 月结账号使用申请关联 + * @return 结果 + */ + @Override + public int updateEmisMonthpayUseApply(EmisMonthpayUseApply emisMonthpayUseApply) + { + return emisMonthpayUseApplyMapper.updateEmisMonthpayUseApply(emisMonthpayUseApply); + } + + /** + * 批量删除月结账号使用申请关联 + * + * @param ids 需要删除的月结账号使用申请关联主键 + * @return 结果 + */ + @Override + public int deleteEmisMonthpayUseApplyByIds(Long[] ids) + { + return emisMonthpayUseApplyMapper.deleteEmisMonthpayUseApplyByIds(ids); + } + + /** + * 删除月结账号使用申请关联信息 + * + * @param id 月结账号使用申请关联主键 + * @return 结果 + */ + @Override + public int deleteEmisMonthpayUseApplyById(Long id) + { + return emisMonthpayUseApplyMapper.deleteEmisMonthpayUseApplyById(id); + } + + } diff --git a/emis-oms-biz/src/main/resources/mapper/EmisEmailSendRecordMapper.xml b/emis-oms-biz/src/main/resources/mapper/EmisEmailSendRecordMapper.xml new file mode 100644 index 0000000..ec4c15c --- /dev/null +++ b/emis-oms-biz/src/main/resources/mapper/EmisEmailSendRecordMapper.xml @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + select id, order_no, send_type, email, content, sms_channel, send_date, send_status, err_code, err_msg, task_date, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_email_send_record + + + + + + + + + + insert into emis_email_send_record + + id, + order_no, + send_type, + email, + content, + sms_channel, + send_date, + send_status, + err_code, + err_msg, + task_date, + remark, + tenant_id, + del_flag, + create_by, + create_time, + update_by, + update_time, + create_site, + update_site, + + + #{id}, + #{orderNo}, + #{sendType}, + #{email}, + #{content}, + #{smsChannel}, + #{sendDate}, + #{sendStatus}, + #{errCode}, + #{errMsg}, + #{taskDate}, + #{remark}, + #{tenantId}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{createSite}, + #{updateSite}, + + + + + update emis_email_send_record + + order_no = #{orderNo}, + send_type = #{sendType}, + email = #{email}, + content = #{content}, + sms_channel = #{smsChannel}, + send_date = #{sendDate}, + send_status = #{sendStatus}, + err_code = #{errCode}, + err_msg = #{errMsg}, + task_date = #{taskDate}, + 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_email_send_record where id = #{id} + + + + delete from emis_email_send_record where id in + + #{id} + + + \ No newline at end of file diff --git a/emis-oms-biz/src/main/resources/mapper/EmisMonthpayUseApplyMapper.xml b/emis-oms-biz/src/main/resources/mapper/EmisMonthpayUseApplyMapper.xml new file mode 100644 index 0000000..69b9817 --- /dev/null +++ b/emis-oms-biz/src/main/resources/mapper/EmisMonthpayUseApplyMapper.xml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + select id, cust_no, customer_code, apply_seq, apply_date, apply_name, audit_date, audit_status, audit_reson, audit_by, msg_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_monthpay_use_apply + + + + + + + + insert into emis_monthpay_use_apply + + id, + cust_no, + customer_code, + apply_seq, + apply_date, + apply_name, + audit_date, + audit_status, + audit_reson, + audit_by, + msg_code, + remark, + tenant_id, + del_flag, + create_by, + create_time, + update_by, + update_time, + create_site, + update_site, + + + #{id}, + #{custNo}, + #{customerCode}, + #{applySeq}, + #{applyDate}, + #{applyName}, + #{auditDate}, + #{auditStatus}, + #{auditReson}, + #{auditBy}, + #{msgCode}, + #{remark}, + #{tenantId}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{createSite}, + #{updateSite}, + + + + + update emis_monthpay_use_apply + + cust_no = #{custNo}, + customer_code = #{customerCode}, + apply_seq = #{applySeq}, + apply_date = #{applyDate}, + apply_name = #{applyName}, + audit_date = #{auditDate}, + audit_status = #{auditStatus}, + audit_reson = #{auditReson}, + audit_by = #{auditBy}, + msg_code = #{msgCode}, + 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_monthpay_use_apply where id = #{id} + + + + delete from emis_monthpay_use_apply where id in + + #{id} + + + \ No newline at end of file