From 7bbad756b1d90f2b748f7b498484a08b349a3929 Mon Sep 17 00:00:00 2001 From: "1539530615@qq.com" <1539530615@qq.com> Date: Fri, 23 Feb 2024 11:13:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E4=BB=A3=E7=A0=81=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bonus/sgzb/base/api/domain/MaType.java | 10 +++ .../base/api/domain/SltAgreementInfo.java | 64 +++++++++++++++++++ .../controller/LeaseOutDetailsController.java | 12 ++++ .../sgzb/app/mapper/BackReceiveMapper.java | 9 +++ .../app/mapper/LeaseApplyDetailsMapper.java | 2 + .../app/mapper/LeaseOutDetailsMapper.java | 14 ++++ .../app/service/LeaseOutDetailsService.java | 2 + .../service/impl/BackReceiveServiceImpl.java | 32 ++++++++++ .../impl/LeaseOutDetailsServiceImpl.java | 53 ++++++++++++++- .../mapper/app/BackReceiveMapper.xml | 45 +++++++++++++ .../mapper/app/LeaseApplyDetailsMapper.xml | 2 +- .../mapper/app/LeaseOutDetailsMapper.xml | 54 ++++++++++++++++ .../SltAgreementInfoController.java | 37 +++++++++++ .../sgzb/material/domain/AgreementInfo.java | 4 ++ .../mapper/SltAgreementInfoMapper.java | 15 +++++ .../service/SltAgreementInfoService.java | 14 ++++ .../impl/SltAgreementInfoServiceImpl.java | 24 +++++++ .../material/SltAgreementInfoMapper.xml | 40 ++++++++++++ 18 files changed, 431 insertions(+), 2 deletions(-) create mode 100644 sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java create mode 100644 sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/SltAgreementInfoController.java create mode 100644 sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/mapper/SltAgreementInfoMapper.java create mode 100644 sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/SltAgreementInfoService.java create mode 100644 sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SltAgreementInfoServiceImpl.java create mode 100644 sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml diff --git a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaType.java b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaType.java index 541ef487..a54bcd41 100644 --- a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaType.java +++ b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/MaType.java @@ -75,6 +75,7 @@ public class MaType extends BaseEntity { @ApiModelProperty(value = "外部价格") private String rentPrice; + private String finalPrice; /** 原价 */ @ApiModelProperty(value = "原价") @@ -188,6 +189,7 @@ public class MaType extends BaseEntity { /** 子节点 */ @JsonInclude(JsonInclude.Include.NON_EMPTY) private List children = new ArrayList<>(); + public Long getTypeId() { @@ -527,4 +529,12 @@ public class MaType extends BaseEntity { public void setCode(String code) { this.code = code; } + + public String getFinalPrice() { + return finalPrice; + } + + public void setFinalPrice(String finalPrice) { + this.finalPrice = finalPrice; + } } diff --git a/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java new file mode 100644 index 00000000..9c8eb4d6 --- /dev/null +++ b/sgzb-api/sgzb-api-system/src/main/java/com/bonus/sgzb/base/api/domain/SltAgreementInfo.java @@ -0,0 +1,64 @@ +package com.bonus.sgzb.base.api.domain; + +import lombok.Data; + +/** + * @author c liu + * @date 2024/2/21 + */ +@Data +public class SltAgreementInfo { + /** + * + */ + private Long id; + /** + *协议id + */ + private String agreementId; + /** + *机具规格id + */ + private String typeId; + /** + *机具id + */ + private String maId; + /** + *领料数量 + */ + private String num; + /** + *领料时间 + */ + private String startTime; + /** + *退料时间 + */ + private String endTime; + /** + *0在用1退回 + */ + private String status; + /** + *领料id + */ + private String leaseId; + /** + *退料id + */ + private String backId; + /** + *租赁单价 + */ + private String leasePrice; + /** + *原值 + */ + private String buyPrice; + /** + * + */ + private String companyId; + +} diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/LeaseOutDetailsController.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/LeaseOutDetailsController.java index d47eb794..c4125f14 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/LeaseOutDetailsController.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/LeaseOutDetailsController.java @@ -77,6 +77,18 @@ public class LeaseOutDetailsController extends BaseController { return leaseOutDetailsService.submitOut(record); } + /** + * + * @param recordList + * @return + */ + @Log(title = "领料出库", businessType = BusinessType.UPDATE) + @PostMapping("/submitOutRfid") + public AjaxResult submitOutRfid(@RequestBody List recordList){ + + return leaseOutDetailsService.submitOutRfid(recordList); + } + /** * 综合查询--领用记录查询 diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/BackReceiveMapper.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/BackReceiveMapper.java index 1da4567a..e2a971a8 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/BackReceiveMapper.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/BackReceiveMapper.java @@ -1,6 +1,7 @@ package com.bonus.sgzb.app.mapper; import com.bonus.sgzb.app.domain.BackApplyInfo; +import com.bonus.sgzb.base.api.domain.SltAgreementInfo; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @@ -174,4 +175,12 @@ public interface BackReceiveMapper { * @return List */ List rfidCodeQuery(BackApplyInfo record); + + List getStlInfo(BackApplyInfo bean); + + int updateStlInfo(@Param("info") SltAgreementInfo info,@Param("record") BackApplyInfo record); + + int updateStlInfoTwo(@Param("info") SltAgreementInfo info,@Param("record") BackApplyInfo record, @Param("backNum") Double backNum); + + int insStlInfoTwo(@Param("info")SltAgreementInfo info, @Param("many")Double many); } \ No newline at end of file diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/LeaseApplyDetailsMapper.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/LeaseApplyDetailsMapper.java index 5d900e09..6d73aec4 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/LeaseApplyDetailsMapper.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/LeaseApplyDetailsMapper.java @@ -1,6 +1,7 @@ package com.bonus.sgzb.app.mapper; import com.bonus.sgzb.app.domain.LeaseApplyDetails; +import com.bonus.sgzb.app.domain.LeaseApplyInfo; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @@ -45,4 +46,5 @@ public interface LeaseApplyDetailsMapper { int batchInsert(@Param("list") List list); List getByParentId(Integer parentId); + } \ No newline at end of file diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/LeaseOutDetailsMapper.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/LeaseOutDetailsMapper.java index 55c0a061..7d49de89 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/LeaseOutDetailsMapper.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/mapper/LeaseOutDetailsMapper.java @@ -3,6 +3,8 @@ package com.bonus.sgzb.app.mapper; import com.bonus.sgzb.app.domain.LeaseApplyDetails; import com.bonus.sgzb.app.domain.TmTask; import com.bonus.sgzb.base.api.domain.LeaseOutDetails; +import com.bonus.sgzb.base.api.domain.MaType; +import com.bonus.sgzb.base.api.domain.SltAgreementInfo; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @@ -67,4 +69,16 @@ public interface LeaseOutDetailsMapper { * @return List */ List proUseRecord(LeaseApplyDetails bean); + + String getAgreementId(String taskId); + + MaType getMaType(Integer typeId); + + String getProtocol(String agreementId); + + int insSltInfo(@Param("record") LeaseOutDetails record, @Param("agreementId")String agreementId,@Param("ma") MaType ma); + + SltAgreementInfo getSltAgreementInfo(LeaseOutDetails record); + + int updSltInfo(SltAgreementInfo sltAgreementInfo); } diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/LeaseOutDetailsService.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/LeaseOutDetailsService.java index ecfb19a3..4cbd4873 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/LeaseOutDetailsService.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/LeaseOutDetailsService.java @@ -63,4 +63,6 @@ public interface LeaseOutDetailsService { * @return List */ List proUseRecord(LeaseApplyDetails bean); + + AjaxResult submitOutRfid(List recordList); } diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/BackReceiveServiceImpl.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/BackReceiveServiceImpl.java index 8d2da267..34353c9d 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/BackReceiveServiceImpl.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/BackReceiveServiceImpl.java @@ -3,6 +3,7 @@ package com.bonus.sgzb.app.service.impl; import com.bonus.sgzb.app.domain.BackApplyInfo; import com.bonus.sgzb.app.mapper.BackReceiveMapper; import com.bonus.sgzb.app.service.BackReceiveService; +import com.bonus.sgzb.base.api.domain.SltAgreementInfo; import com.bonus.sgzb.common.core.utils.DateUtils; import com.bonus.sgzb.common.core.utils.GlobalConstants; import com.bonus.sgzb.common.core.utils.StringHelper; @@ -126,6 +127,10 @@ public class BackReceiveServiceImpl implements BackReceiveService { if(res == 0) { throw new RuntimeException("ma_machines"); } + res = updateSlt(record,hgList); + if(res == 0) { + throw new RuntimeException("slt_agreement_info"); + } } //维修的创建维修任务,插入任务协议表 List wxList = backReceiveMapper.getWxList(record); @@ -154,6 +159,33 @@ public class BackReceiveServiceImpl implements BackReceiveService { return res; } + private int updateSlt(BackApplyInfo record, List hgList) { + for (BackApplyInfo bean : hgList){ + List infoList = backReceiveMapper.getStlInfo(bean); + if (infoList.size() > 0){ + Double backNum = Double.valueOf(bean.getBackNum()); + for (SltAgreementInfo info : infoList){ + Double num = Double.valueOf(info.getNum()); + if (backNum.equals(num)){ + backReceiveMapper.updateStlInfo(info,record); + break; + } else if (backNum > num) { + backNum = backNum - num; + backReceiveMapper.updateStlInfo(info,record); + } else if (backNum < num) { + Double many = num - backNum; + backReceiveMapper.updateStlInfoTwo(info,record,backNum); + backReceiveMapper.insStlInfoTwo(info,many); + break; + } + } + }else { + return 0; + } + } + return 1; + } + @Override public List codeQuery(BackApplyInfo record) { return backReceiveMapper.codeQuery(record); diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java index 6c9cd548..96e5efab 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java @@ -1,15 +1,19 @@ package com.bonus.sgzb.app.service.impl; import com.bonus.sgzb.app.domain.LeaseApplyDetails; +import com.bonus.sgzb.app.domain.LeaseApplyInfo; import com.bonus.sgzb.app.mapper.LeaseApplyDetailsMapper; import com.bonus.sgzb.app.mapper.LeaseOutDetailsMapper; import com.bonus.sgzb.app.service.LeaseOutDetailsService; import com.bonus.sgzb.base.api.domain.LeaseOutDetails; import com.bonus.sgzb.base.api.domain.MaMachine; +import com.bonus.sgzb.base.api.domain.MaType; +import com.bonus.sgzb.base.api.domain.SltAgreementInfo; import com.bonus.sgzb.base.mapper.MaMachineMapper; import com.bonus.sgzb.common.core.utils.StringUtils; import com.bonus.sgzb.common.core.web.domain.AjaxResult; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; import java.util.List; @@ -44,6 +48,18 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService { return leaseOutDetailsMapper.selectListByParentId(parentId); } + @Override + @Transactional + public AjaxResult submitOutRfid(List recordList) { + for (LeaseOutDetails bean : recordList){ + AjaxResult ajaxResult = submitOut(bean); + if (ajaxResult.isError()){ + return ajaxResult; + } + } + return AjaxResult.success(); + } + /** * 领料出库处理 * @@ -51,6 +67,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService { * @return 结果 */ @Override + @Transactional public AjaxResult submitOut(LeaseOutDetails record) { String maStatus = "15"; double outNum = 0.1; @@ -96,7 +113,13 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService { } else { leaseOutDetailsMapper.updateTaskStatus(taskId, 34); } - return AjaxResult.success("领料出库成功!"); + int j = insSltInfo(taskId, record); + if (j > 0){ + return AjaxResult.success("领料出库成功!"); + }else { + return AjaxResult.error("出库失败,更新设备规格库存数量时出错!"); + } + // } // return AjaxResult.error("领料出库失败,插入任务协议信息错误!"); // } @@ -109,6 +132,32 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService { return AjaxResult.error("出库操作失败,更新领料数量及状态时出错!"); } + public int insSltInfo(String taskId,LeaseOutDetails record){ + SltAgreementInfo sltAgreementInfo = leaseOutDetailsMapper.getSltAgreementInfo(record); + if (sltAgreementInfo != null){ + double num = Double.parseDouble(sltAgreementInfo.getNum()); + double outNum = record.getOutNum(); + sltAgreementInfo.setNum(String.valueOf(num + outNum)); + return leaseOutDetailsMapper.updSltInfo(sltAgreementInfo); + }else { + String agreementId = leaseOutDetailsMapper.getAgreementId(taskId); + String protocol = leaseOutDetailsMapper.getProtocol(agreementId); + MaType ma = leaseOutDetailsMapper.getMaType(record.getTypeId()); + if (protocol.isEmpty()){ + ma.setFinalPrice(ma.getLeasePrice()); + }else { + if (protocol.equals("1")){ + ma.setFinalPrice(ma.getLeasePrice()); + }else if (protocol.equals("2")){ + ma.setFinalPrice(ma.getRentPrice()); + }else { + ma.setFinalPrice(ma.getLeasePrice()); + } + } + return leaseOutDetailsMapper.insSltInfo(record, agreementId, ma); + } + } + /** * @param maCode 编码ID * @return 数据 @@ -134,6 +183,8 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService { return leaseOutDetailsMapper.proUseRecord(bean); } + + @Override public List getMaMachineByRfidCode(String rfidCode) { return maMachineMapper.getMaMachineByRfidCode(rfidCode); diff --git a/sgzb-modules/sgzb-base/src/main/resources/mapper/app/BackReceiveMapper.xml b/sgzb-modules/sgzb-base/src/main/resources/mapper/app/BackReceiveMapper.xml index 51ea00bf..6c390f14 100644 --- a/sgzb-modules/sgzb-base/src/main/resources/mapper/app/BackReceiveMapper.xml +++ b/sgzb-modules/sgzb-base/src/main/resources/mapper/app/BackReceiveMapper.xml @@ -541,6 +541,10 @@ NOW() ) + + insert into slt_agreement_info (agreement_id,type_id,ma_id,num,start_time,status,lease_id,lease_price,buy_price,company_id) + values (#{info.agreementId},#{info.typeId},#{info.maId},#{many},#{info.startTime},#{info.status},#{info.leaseId},#{info.leasePrice},#{info.buyPrice},#{info.companyId}); + @@ -559,6 +563,21 @@ SET num = (IFNULL(num, 0)) + #{backNum} WHERE type_id = #{typeId} + + update slt_agreement_info + set end_time = now(), + back_id = #{record.parentId}, + status = '1' + where id = #{info.id} + + + update slt_agreement_info + set num = #{backNum}, + end_time = now(), + back_id = #{record.parentId}, + status = '1' + where id = #{info.id} + + \ No newline at end of file diff --git a/sgzb-modules/sgzb-base/src/main/resources/mapper/app/LeaseApplyDetailsMapper.xml b/sgzb-modules/sgzb-base/src/main/resources/mapper/app/LeaseApplyDetailsMapper.xml index 76158a3f..9bab2edb 100644 --- a/sgzb-modules/sgzb-base/src/main/resources/mapper/app/LeaseApplyDetailsMapper.xml +++ b/sgzb-modules/sgzb-base/src/main/resources/mapper/app/LeaseApplyDetailsMapper.xml @@ -37,7 +37,7 @@ where parennt_id = #{parentId} - + delete from lease_apply_details where id = #{id,jdbcType=INTEGER} diff --git a/sgzb-modules/sgzb-base/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml b/sgzb-modules/sgzb-base/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml index d8af6328..37b38226 100644 --- a/sgzb-modules/sgzb-base/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml +++ b/sgzb-modules/sgzb-base/src/main/resources/mapper/app/LeaseOutDetailsMapper.xml @@ -129,6 +129,51 @@ AND t1.type_id = t2.type_id + + + + UPDATE @@ -247,6 +292,11 @@ set task_status = #{status} where task_id = #{taskId} + + update slt_agreement_info + set num = #{num} + where id = #{id} + insert into tm_task_agreement @@ -293,4 +343,8 @@ now() + + insert into slt_agreement_info (agreement_id,type_id,ma_id,num,start_time,status,lease_id,lease_price,buy_price,company_id) + values (#{agreementId},#{record.typeId},#{record.maId},#{record.outNum},now(),0,#{record.parentId},#{ma.finalPrice},#{ma.buyPrice},#{record.companyId}); + \ No newline at end of file diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/SltAgreementInfoController.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/SltAgreementInfoController.java new file mode 100644 index 00000000..c6792507 --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/SltAgreementInfoController.java @@ -0,0 +1,37 @@ +package com.bonus.sgzb.material.controller; + +import com.bonus.sgzb.common.core.web.controller.BaseController; +import com.bonus.sgzb.common.core.web.page.TableDataInfo; +import com.bonus.sgzb.material.domain.AgreementInfo; +import com.bonus.sgzb.material.service.SltAgreementInfoService; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +/** + * @author c liu + * @date 2024/2/22 + */ +@RestController +@RequestMapping("/sltAgreementInfo") +public class SltAgreementInfoController extends BaseController { + @Autowired + private SltAgreementInfoService service; + + /** + * 根据条件获取协议结算列表 + */ + @ApiOperation(value = "根据条件获取协议结算列表") + @GetMapping("/getSltAgreementInfo") + public TableDataInfo getSltAgreementInfo(AgreementInfo bean) + { + startPage(); + List list = service.getSltAgreementInfo(bean); + return getDataTable(list); + } + +} diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java index c29c443d..489aa7c4 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java @@ -95,4 +95,8 @@ public class AgreementInfo extends BaseEntity { @Excel(name = "协议类型") @ApiModelProperty(value = "协议类型(1内部单位 2外部单位)") private Integer protocol; + @ApiModelProperty(value = "结算总费用") + private String cost; + @ApiModelProperty(value = "结算状态") + private String sltStatus; } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/mapper/SltAgreementInfoMapper.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/mapper/SltAgreementInfoMapper.java new file mode 100644 index 00000000..55b688be --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/mapper/SltAgreementInfoMapper.java @@ -0,0 +1,15 @@ +package com.bonus.sgzb.material.mapper; + +import com.bonus.sgzb.material.domain.AgreementInfo; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * @author c liu + * @date 2024/2/22 + */ +@Mapper +public interface SltAgreementInfoMapper { + List getSltAgreementInfo(AgreementInfo bean); +} diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/SltAgreementInfoService.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/SltAgreementInfoService.java new file mode 100644 index 00000000..6159a198 --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/SltAgreementInfoService.java @@ -0,0 +1,14 @@ +package com.bonus.sgzb.material.service; + +import com.bonus.sgzb.material.domain.AgreementInfo; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * @author c liu + * @date 2024/2/22 + */ +public interface SltAgreementInfoService { + List getSltAgreementInfo(AgreementInfo bean); +} diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SltAgreementInfoServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SltAgreementInfoServiceImpl.java new file mode 100644 index 00000000..ff25e814 --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SltAgreementInfoServiceImpl.java @@ -0,0 +1,24 @@ +package com.bonus.sgzb.material.service.impl; + +import com.bonus.sgzb.material.domain.AgreementInfo; +import com.bonus.sgzb.material.mapper.SltAgreementInfoMapper; +import com.bonus.sgzb.material.service.SltAgreementInfoService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * @author c liu + * @date 2024/2/22 + */ +@Service +public class SltAgreementInfoServiceImpl implements SltAgreementInfoService { + @Autowired + private SltAgreementInfoMapper mapper; + + @Override + public List getSltAgreementInfo(AgreementInfo bean) { + return mapper.getSltAgreementInfo(bean); + } +} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml new file mode 100644 index 00000000..576f603b --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/SltAgreementInfoMapper.xml @@ -0,0 +1,40 @@ + + + + + + \ No newline at end of file