Browse Source

各个费用申请的保存、提交、批量提交、修改

buzhanyi 7 months ago
parent
commit
c8163aa406

+ 278 - 13
application-webadmin/src/main/java/com/ankaibei/workFlow/webadmin/ankaibei/controller/ApplyForCostController.java

@@ -4,7 +4,13 @@ import com.ankaibei.workFlow.common.core.object.TokenData;
 import com.ankaibei.workFlow.webadmin.ankaibei.enums.CodeEnum;
 import com.ankaibei.workFlow.webadmin.ankaibei.service.ApplyForCostService;
 import com.ankaibei.workFlow.webadmin.ankaibei.service.impl.FileUtil;
-import com.ankaibei.workFlow.webadmin.ankaibei.vo.*;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.CommunicationInfoVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.PurchaseInfoVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.RepastExpenseVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.ResMsg;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.RestsInfoVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.TrafficExpenseVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.TravelExpenseVo;
 import org.apache.commons.lang3.ObjectUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.CrossOrigin;
@@ -56,7 +62,7 @@ public class ApplyForCostController {
     }
 
     /**
-     * 申请通讯费
+     * 申请通讯费_保存
      *
      * @param communicationInfoVo
      * @return ResMsg
@@ -69,19 +75,104 @@ public class ApplyForCostController {
     }
 
     /**
-     * 申请采购费
+     * 申请通讯费_保存后提交
+     *
+     * @param communicationInfoVo
+     * @return ResMsg
+     */
+    @RequestMapping("/communicationSubmitBySave")
+    public ResMsg communicationSubmitBySave(@RequestBody CommunicationInfoVo communicationInfoVo) {
+        communicationInfoVo.setTotalMoney(communicationInfoVo.getApplicationFee());
+        return applyForCostService.communicationSubmitBySave(communicationInfoVo);
+    }
+
+    /**
+     * 申请通讯费_批量提交
+     *
+     * @return ResMsg
+     */
+    @RequestMapping("/communicationSubmitBatch")
+    public ResMsg communicationSubmit(@RequestBody List<CommunicationInfoVo> communicationInfoVos) {
+        if (ObjectUtils.isEmpty(communicationInfoVos)) {
+            return new ResMsg(CodeEnum.FAIL, "请选择要提交的数据");
+        }
+        return applyForCostService.communicationSubmitBatch(communicationInfoVos);
+    }
+
+    /**
+     * 通讯费_修改并保存
+     */
+    @RequestMapping("/communicationUpdate")
+    public ResMsg communicationUpdate(@RequestBody CommunicationInfoVo communicationInfoVo) {
+        communicationInfoVo.setTotalMoney(communicationInfoVo.getApplicationFee());
+        return applyForCostService.communicationUpdate(communicationInfoVo);
+    }
+
+    /**
+     * 通讯费_修改并提交
+     */
+    @RequestMapping("/communicationSubmitByUpdate")
+    public ResMsg communicationSubmitByUpdate(@RequestBody CommunicationInfoVo communicationInfoVo) {
+        communicationInfoVo.setTotalMoney(communicationInfoVo.getApplicationFee());
+        return applyForCostService.communicationSubmitByUpdate(communicationInfoVo);
+    }
+
+
+    /**
+     * 申请采购费__保存
      *
      * @param purchaseInfoVo
      * @return ResMsg
      */
-    @RequestMapping("/addpurchase")
-    public ResMsg addpurchase(@RequestBody PurchaseInfoVo purchaseInfoVo) {
+    @RequestMapping("/addPurchase")
+    public ResMsg addPurchase(@RequestBody PurchaseInfoVo purchaseInfoVo) {
         purchaseInfoVo.setCreateUser(TokenData.takeFromRequest().getUserId());
-        return applyForCostService.addpurchase(purchaseInfoVo);
+        return applyForCostService.addPurchase(purchaseInfoVo);
     }
 
+
     /**
-     * 申请其他费用
+     * 申请采购费__保存后提交
+     *
+     * @param purchaseInfoVo
+     * @return ResMsg
+     */
+    @RequestMapping("/purchaseSubmitBySave")
+    public ResMsg purchaseSubmitBySave(@RequestBody PurchaseInfoVo purchaseInfoVo) {
+        return applyForCostService.purchaseSubmitBySave(purchaseInfoVo);
+    }
+
+    /**
+     * 申请采购费_批量提交
+     *
+     * @return ResMsg
+     */
+    @RequestMapping("/purchaseSubmitBatch")
+    public ResMsg purchaseSubmitBatch(@RequestBody List<PurchaseInfoVo> purchaseInfoVos) {
+        if (ObjectUtils.isEmpty(purchaseInfoVos)) {
+            return new ResMsg(CodeEnum.FAIL, "请选择要提交的数据");
+        }
+        return applyForCostService.purchaseSubmitBatch(purchaseInfoVos);
+    }
+
+    /**
+     * 采购费_修改并保存
+     */
+    @RequestMapping("/purchaseUpdate")
+    public ResMsg purchaseUpdate(@RequestBody PurchaseInfoVo purchaseInfoVo) {
+        return applyForCostService.purchaseUpdate(purchaseInfoVo);
+    }
+
+    /**
+     * 采购费_修改并提交
+     */
+    @RequestMapping("/purchaseSubmitByUpdate")
+    public ResMsg purchaseSubmitByUpdate(@RequestBody PurchaseInfoVo purchaseInfoVo) {
+        return applyForCostService.purchaseSubmitByUpdate(purchaseInfoVo);
+    }
+
+    /**
+     * 申请其他费用--保存
      *
      * @param restsInfoVo
      * @return ResMsg
@@ -93,31 +184,163 @@ public class ApplyForCostController {
     }
 
     /**
-     * 申请交通费用
+     * 申请其他费用--保存并提交     *
+     *
+     * @param restsInfoVo
+     * @return ResMsg
+     */
+    @RequestMapping("/restSubmitBySave")
+    public ResMsg restSubmitBySave(@RequestBody RestsInfoVo restsInfoVo) {
+        return applyForCostService.restSubmitBySave(restsInfoVo);
+    }
+
+    /**
+     * 申请其他费用--批量提交
+     *
+     * @return ResMsg
+     */
+    @RequestMapping("/restSubmitBatch")
+    public ResMsg restSubmitBatch(@RequestBody List<RestsInfoVo> restsInfoVos) {
+        if (ObjectUtils.isEmpty(restsInfoVos)) {
+            return new ResMsg(CodeEnum.FAIL, "请选择要提交的数据");
+        }
+        return applyForCostService.restSubmitBatch(restsInfoVos);
+    }
+
+
+    /**
+     * 其他费用--修改并保存
+     *
+     * @param restsInfoVo
+     * @return ResMsg
+     */
+    @RequestMapping("/restUpdate")
+    public ResMsg restUpdate(@RequestBody RestsInfoVo restsInfoVo) {
+        return applyForCostService.restUpdate(restsInfoVo);
+    }
+
+    /**
+     * 其他费用--修改并提交
+     *
+     * @param restsInfoVo
+     * @return ResMsg
+     */
+    @RequestMapping("/restUpdate")
+    public ResMsg restSubmitByUpdate(@RequestBody RestsInfoVo restsInfoVo) {
+        return applyForCostService.restSubmitByUpdate(restsInfoVo);
+    }
+
+    /**
+     * 申请交通费用--保存
      *
      * @param trafficExpenseVo
      * @return ResMsg
      */
     @RequestMapping("/trafficExpenseApply")
-    public ResMsg trafficExpenseApply(@RequestBody TrafficExpenseVo trafficExpenseVo, HttpServletRequest request) {
+    public ResMsg trafficExpenseApply(@RequestBody TrafficExpenseVo trafficExpenseVo) {
         trafficExpenseVo.setApplicant(TokenData.takeFromRequest().getUserId());
-        return applyForCostService.trafficExpenseApply(trafficExpenseVo);
+        return applyForCostService.addTraffic(trafficExpenseVo);
+    }
+
+    /**
+     * 申请交通费用--保存并提交
+     *
+     * @param trafficExpenseVo
+     * @return ResMsg
+     */
+    @RequestMapping("/trafficSubmitBySave")
+    public ResMsg trafficSubmitBySave(@RequestBody TrafficExpenseVo trafficExpenseVo) {
+        return applyForCostService.trafficSubmitBySave(trafficExpenseVo);
+    }
+
+    /**
+     * 申请交通费用--批量提交
+     *
+     * @return ResMsg
+     */
+    @RequestMapping("/trafficSubmitBatch")
+    public ResMsg trafficSubmitBatch(@RequestBody List<TrafficExpenseVo> trafficExpenseVos) {
+        if (ObjectUtils.isEmpty(trafficExpenseVos)) {
+            return new ResMsg(CodeEnum.FAIL, "请选择要提交的数据");
+        }
+        return applyForCostService.trafficSubmitBatch(trafficExpenseVos);
+    }
+
+    /**
+     * 申请交通费用--修改并保存
+     *
+     * @param trafficExpenseVo
+     * @return ResMsg
+     */
+    @RequestMapping("/trafficUpdate")
+    public ResMsg trafficUpdate(@RequestBody TrafficExpenseVo trafficExpenseVo) {
+        return applyForCostService.trafficUpdate(trafficExpenseVo);
+    }
+
+    /**
+     * 申请交通费用--修改并提交
+     *
+     * @param trafficExpenseVo
+     * @return ResMsg
+     */
+    @RequestMapping("/trafficSubmitByUpdate")
+    public ResMsg trafficSubmitByUpdate(@RequestBody TrafficExpenseVo trafficExpenseVo) {
+        return applyForCostService.trafficSubmitByUpdate(trafficExpenseVo);
     }
 
     /**
-     * 申请餐饮费用
+     * 申请餐饮费用--保存
      *
      * @param RepastExpenseVo
      * @return ResMsg
      */
     @RequestMapping("/repastExpenseApply")
-    public ResMsg repastExpenseApply(@RequestBody RepastExpenseVo RepastExpenseVo, HttpServletRequest request) {
+    public ResMsg repastExpenseApply(@RequestBody RepastExpenseVo RepastExpenseVo) {
         RepastExpenseVo.setApplicant(TokenData.takeFromRequest().getUserId());
         return applyForCostService.repastExpenseApply(RepastExpenseVo);
     }
 
     /**
-     * 申请差旅费用
+     * 申请餐饮费用--保存并提交
+     *
+     * @param RepastExpenseVo
+     * @return ResMsg
+     */
+    @RequestMapping("/repastSubmitBySave")
+    public ResMsg repastSubmitBySave(@RequestBody RepastExpenseVo RepastExpenseVo) {
+        return applyForCostService.repastSubmitBySave(RepastExpenseVo);
+
+    }
+
+    /**
+     * 申请餐饮费用--批量提交
+     *
+     * @return ResMsg
+     */
+    @RequestMapping("/repastSubmitBatch")
+    public ResMsg repastSubmitBatch(@RequestBody List<RepastExpenseVo> repastExpenseVos) {
+        if (ObjectUtils.isEmpty(repastExpenseVos)) {
+            return new ResMsg(CodeEnum.FAIL, "请选择要提交的数据");
+        }
+        return applyForCostService.repastSubmitBatch(repastExpenseVos);
+
+    }
+
+    /**
+     * 申请餐费--修改并保存
+     */
+    @RequestMapping("/repastUpdate")
+    public ResMsg repastUpdate(@RequestBody RepastExpenseVo RepastExpenseVo) {
+        return applyForCostService.repastUpdate(RepastExpenseVo);
+    }
+
+    @RequestMapping("/repastSubmitByUpdate")
+    public ResMsg repastSubmitByUpdate(@RequestBody RepastExpenseVo RepastExpenseVo) {
+        return applyForCostService.repastSubmitByUpdate(RepastExpenseVo);
+    }
+
+    /**
+     * 申请差旅费用--保存
      *
      * @param travelExpenseVo
      * @return ResMsg
@@ -128,4 +351,46 @@ public class ApplyForCostController {
         return applyForCostService.travelExpenseApply(travelExpenseVo);
     }
 
+
+    /**
+     * 申请差旅费用--保存并提交
+     *
+     * @param travelExpenseVo
+     * @return ResMsg
+     */
+    @RequestMapping("/travelSubmitBySave")
+    public ResMsg travelSubmitBySave(@RequestBody TravelExpenseVo travelExpenseVo) {
+        return applyForCostService.travelSubmitBySave(travelExpenseVo);
+    }
+
+
+    /**
+     * 申请差旅费用--批量提交
+     *
+     * @return ResMsg
+     */
+    @RequestMapping("/travelSubmitBatch")
+    public ResMsg travelSubmitBatch(@RequestBody List<TravelExpenseVo> travelExpenseVos) {
+        if (ObjectUtils.isEmpty(travelExpenseVos)) {
+            return new ResMsg(CodeEnum.FAIL, "请选择要提交的数据");
+        }
+        return applyForCostService.travelSubmitBatch(travelExpenseVos);
+    }
+
+
+    /**
+     * 申请差旅费用--修改并保存
+     */
+    @RequestMapping("/travelUpdate")
+    public ResMsg travelUpdate(@RequestBody TravelExpenseVo travelExpenseVo) {
+        return applyForCostService.travelUpdate(travelExpenseVo);
+    }
+
+
+    @RequestMapping("/travelSubmitByUpdate")
+    public ResMsg travelSubmitByUpdate(@RequestBody TravelExpenseVo travelExpenseVo) {
+        return applyForCostService.travelSubmitByUpdate(travelExpenseVo);
+    }
+
+
 }

+ 7 - 28
application-webadmin/src/main/java/com/ankaibei/workFlow/webadmin/ankaibei/entity/CommunicationInfoEntity.java

@@ -1,10 +1,15 @@
 package com.ankaibei.workFlow.webadmin.ankaibei.entity;
 
 
-import javax.persistence.*;
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Table;
 import java.math.BigDecimal;
 import java.util.Date;
-import java.util.Objects;
 
 /**
  * @author
@@ -54,7 +59,6 @@ public class CommunicationInfoEntity {
      */
     private Date createTime;
 
-
     @Basic
     @Column(name = "create_time")
     public Date getCreateTime() {
@@ -156,30 +160,5 @@ public class CommunicationInfoEntity {
         this.endDate = endDate;
     }
 
-    @Override
-    public boolean equals(Object o) {
-        if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
-        CommunicationInfoEntity that = (CommunicationInfoEntity) o;
-        return communicationId == that.communicationId && Objects.equals(projectName, that.projectName) && Objects.equals(applicationFee, that.applicationFee) && Objects.equals(remark, that.remark) && Objects.equals(createUser, that.createUser) && Objects.equals(createDate, that.createDate);
-    }
 
-    @Override
-    public int hashCode() {
-        return Objects.hash(communicationId, projectName, applicationFee, remark, createUser, createDate);
-    }
-
-    @Override
-    public String toString() {
-        return "CommunicationInfoEntity{" +
-                "communicationId=" + communicationId +
-                ", projectName='" + projectName + '\'' +
-                ", applicationFee=" + applicationFee +
-                ", remark='" + remark + '\'' +
-                ", createUser='" + createUser + '\'' +
-                ", createDate=" + createDate +
-                ", endDate=" + endDate +
-                ", invoice='" + invoice + '\'' +
-                '}';
-    }
 }

+ 172 - 3
application-webadmin/src/main/java/com/ankaibei/workFlow/webadmin/ankaibei/service/ApplyForCostService.java

@@ -1,7 +1,15 @@
 package com.ankaibei.workFlow.webadmin.ankaibei.service;
 
 
-import com.ankaibei.workFlow.webadmin.ankaibei.vo.*;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.CommunicationInfoVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.PurchaseInfoVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.RepastExpenseVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.ResMsg;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.RestsInfoVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.TrafficExpenseVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.TravelExpenseVo;
+
+import java.util.List;
 
 /**
  * @author
@@ -10,15 +18,176 @@ import com.ankaibei.workFlow.webadmin.ankaibei.vo.*;
  * @date 2022/9/26 16:17
  */
 public interface ApplyForCostService {
+    /**
+     * 通讯费用保存
+     *
+     * @param communicationInfoVo
+     * @return
+     */
     ResMsg addCommunication(CommunicationInfoVo communicationInfoVo);
 
-    ResMsg addpurchase(PurchaseInfoVo purchaseInfoVo);
+    /**
+     * 通讯费用保存后提交
+     *
+     * @param communicationInfoVo
+     * @return
+     */
+    ResMsg communicationSubmitBySave(CommunicationInfoVo communicationInfoVo);
+
+    /**
+     * 通讯费用批量提交
+     *
+     * @return
+     */
+    ResMsg communicationSubmitBatch(List<CommunicationInfoVo> communicationInfoVos);
+
+    /**
+     * 通讯费用修改——保存
+     *
+     * @param communicationInfoVo
+     * @return
+     */
+    ResMsg communicationUpdate(CommunicationInfoVo communicationInfoVo);
+
+    /**
+     * 通讯费用修改——提交
+     *
+     * @param communicationInfoVo
+     * @return
+     */
+    ResMsg communicationSubmitByUpdate(CommunicationInfoVo communicationInfoVo);
+
+    /**
+     * 申请采购费__保存
+     *
+     * @param purchaseInfoVo
+     * @return ResMsg
+     */
+    ResMsg addPurchase(PurchaseInfoVo purchaseInfoVo);
+
+    /**
+     * 申请采购费__保存后提交
+     *
+     * @param purchaseInfoVo
+     * @return ResMsg
+     */
+    ResMsg purchaseSubmitBySave(PurchaseInfoVo purchaseInfoVo);
+
+    /**
+     * 申请采购费__批量提交
+     *
+     * @return ResMsg
+     */
+    ResMsg purchaseSubmitBatch(List<PurchaseInfoVo> purchaseInfoVos);
 
+    /**
+     * 采购费_修改并保存
+     */
+    ResMsg purchaseUpdate(PurchaseInfoVo purchaseInfoVo);
+
+    /**
+     * 采购费_修改并提交
+     */
+    ResMsg purchaseSubmitByUpdate(PurchaseInfoVo purchaseInfoVo);
+
+    /**
+     * 申请其他费用--保存
+     */
     ResMsg addRest(RestsInfoVo restsInfoVo);
 
-    ResMsg trafficExpenseApply(TrafficExpenseVo trafficExpenseVo);
+    /**
+     * 申请其他费用--保存并提交
+     */
+    ResMsg restSubmitBySave(RestsInfoVo restsInfoVo);
+
+    /**
+     * 申请其他费用__批量提交
+     */
+    ResMsg restSubmitBatch(List<RestsInfoVo> restsInfoVos);
+
+    /**
+     * 其他费用--修改并保存
+     */
+    ResMsg restUpdate(RestsInfoVo restsInfoVo);
+
+    /**
+     * 其他费用--修改并提交
+     */
+    ResMsg restSubmitByUpdate(RestsInfoVo restsInfoVo);
+
+    /**
+     * 申请交通费用--保存
+     */
+    ResMsg addTraffic(TrafficExpenseVo trafficExpenseVo);
 
+    /**
+     * 申请交通费用--保存并提交
+     */
+    ResMsg trafficSubmitBySave(TrafficExpenseVo trafficExpenseVo);
+
+    /**
+     * 申请交通费用--批量提交
+     */
+    ResMsg trafficSubmitBatch(List<TrafficExpenseVo> trafficExpenseVos);
+
+    /**
+     * 申请交通费用--修改并保存
+     */
+    ResMsg trafficUpdate(TrafficExpenseVo trafficExpenseVo);
+
+    /**
+     * 申请交通费用--修改并提交
+     */
+    ResMsg trafficSubmitByUpdate(TrafficExpenseVo trafficExpenseVo);
+
+    /**
+     * 申请餐费--保存
+     */
     ResMsg repastExpenseApply(RepastExpenseVo repastExpenseVo);
 
+    /**
+     * 申请餐费--保存并提交
+     */
+    ResMsg repastSubmitBySave(RepastExpenseVo repastExpenseVo);
+
+    /**
+     * 申请餐费--批量提交
+     */
+    ResMsg repastSubmitBatch(List<RepastExpenseVo> repastExpenseVos);
+
+    /**
+     * 申请餐费--修改并保存
+     */
+    ResMsg repastUpdate(RepastExpenseVo repastExpenseVo);
+
+    /**
+     * 申请餐费--修改并提交
+     */
+    ResMsg repastSubmitByUpdate(RepastExpenseVo repastExpenseVo);
+
+    /**
+     * 申请差旅费用--保存
+     */
     ResMsg travelExpenseApply(TravelExpenseVo travelExpenseVo);
+
+    /**
+     * 申请出差费用--保存并提交
+     */
+    ResMsg travelSubmitBySave(TravelExpenseVo travelExpenseVo);
+
+    /**
+     * 申请出差费用--批量提交
+     */
+    ResMsg travelSubmitBatch(List<TravelExpenseVo> travelExpenseVos);
+
+    /**
+     * 申请差旅费用--保存
+     */
+    ResMsg travelUpdate(TravelExpenseVo travelExpenseVo);
+
+    /**
+     * 申请差旅费用--修改并提交
+     */
+    ResMsg travelSubmitByUpdate(TravelExpenseVo travelExpenseVo);
+
 }

File diff suppressed because it is too large
+ 712 - 131
application-webadmin/src/main/java/com/ankaibei/workFlow/webadmin/ankaibei/service/impl/ApplyForCostServiceImpl.java


+ 30 - 5
application-webadmin/src/main/java/com/ankaibei/workFlow/webadmin/ankaibei/service/impl/CostInfoServiceImpl.java

@@ -1,12 +1,33 @@
 package com.ankaibei.workFlow.webadmin.ankaibei.service.impl;
 
 import com.alibaba.fastjson.JSON;
-import com.ankaibei.workFlow.webadmin.ankaibei.entity.*;
+import com.ankaibei.workFlow.webadmin.ankaibei.entity.CommunicationInfoEntity;
+import com.ankaibei.workFlow.webadmin.ankaibei.entity.CostInfoEntity;
+import com.ankaibei.workFlow.webadmin.ankaibei.entity.ProjectInfoEntity;
+import com.ankaibei.workFlow.webadmin.ankaibei.entity.PurchaseInfoEntity;
+import com.ankaibei.workFlow.webadmin.ankaibei.entity.RepastExpenseEntity;
+import com.ankaibei.workFlow.webadmin.ankaibei.entity.RestsInfoEntity;
+import com.ankaibei.workFlow.webadmin.ankaibei.entity.TrafficExpenseEntity;
+import com.ankaibei.workFlow.webadmin.ankaibei.entity.TravelExpenseEntity;
 import com.ankaibei.workFlow.webadmin.ankaibei.enums.CodeEnum;
 import com.ankaibei.workFlow.webadmin.ankaibei.enums.CostEnum;
-import com.ankaibei.workFlow.webadmin.ankaibei.mapper.*;
+import com.ankaibei.workFlow.webadmin.ankaibei.mapper.CommunicationMapper;
+import com.ankaibei.workFlow.webadmin.ankaibei.mapper.CostInfoMapper;
+import com.ankaibei.workFlow.webadmin.ankaibei.mapper.ProjectAuditInfoMapper;
+import com.ankaibei.workFlow.webadmin.ankaibei.mapper.ProjectInfoMapper;
+import com.ankaibei.workFlow.webadmin.ankaibei.mapper.PurchaseInfoMapper;
+import com.ankaibei.workFlow.webadmin.ankaibei.mapper.RepastExpenseMapper;
+import com.ankaibei.workFlow.webadmin.ankaibei.mapper.RestInfoMapper;
+import com.ankaibei.workFlow.webadmin.ankaibei.mapper.TrafficExpenseMapper;
+import com.ankaibei.workFlow.webadmin.ankaibei.mapper.TravelExpenseMapper;
 import com.ankaibei.workFlow.webadmin.ankaibei.service.CostInfoService;
-import com.ankaibei.workFlow.webadmin.ankaibei.vo.*;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.PurchaseInfoVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.RepastExpenseVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.ResMsg;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.RestsInfoVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.TrafficExpenseVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.TravelExpenseVo;
+import com.ankaibei.workFlow.webadmin.ankaibei.vo.UserInfoVo;
 import org.apache.commons.lang3.ObjectUtils;
 import org.springframework.beans.BeanUtils;
 import org.springframework.data.domain.Page;
@@ -17,7 +38,11 @@ import org.springframework.util.StringUtils;
 
 import javax.annotation.Resource;
 import java.text.SimpleDateFormat;
-import java.util.*;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 
 /**
  * @author lwq
@@ -98,7 +123,7 @@ public class CostInfoServiceImpl implements CostInfoService {
 
     @Override
     public ResMsg findCostInfoDetails(CostInfoEntity costInfoEntity) {
-        CostInfoEntity costInfo = costInfoMapper.findByApplyCostIdAndCostType(costInfoEntity.getCostId(), costInfoEntity.getCostType());
+        CostInfoEntity costInfo = costInfoMapper.findByApplyCostIdAndCostType(costInfoEntity.getApplyCostId(), costInfoEntity.getCostType());
         if (ObjectUtils.isEmpty(costInfo)) {
             return new ResMsg(CodeEnum.NO_DATA);
         }