Przeglądaj źródła

财务-报告作废修改

wangqiang 2 lat temu
rodzic
commit
b09d28123c

+ 9 - 0
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/cw/contractRegistration/controller/ContractInfoController.java

@@ -107,6 +107,15 @@ public class ContractInfoController {
         service.updateInfo(info);
     }
 
+    /**
+     * 根据id修改纸质归档状态
+     */
+    @ApiOperation(value = "根据id修改纸质归档状态")
+    @PostMapping(value = "updatePaperInfo")
+    public void updatePaperInfo(@RequestBody ContractInfo info) {
+        service.updatePaperInfo(info);
+    }
+
     @ApiOperation(value = "根据客户id查询关联的项目")
     @GetMapping("/getByClientId")
     public ResponseEntity<List<ContractInfo>> getByClientId(String contractId, ContractInfo contractInfo) {

+ 9 - 1
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/cw/contractRegistration/mapper/ContractInfoMapper.java

@@ -54,7 +54,8 @@ public interface ContractInfoMapper extends BaseMapper<ContractInfo> {
      */
     void updateInfo(@Param("id") String id,
                     @Param("actualContractAmount") Double actualContractAmount,
-                    @Param("contractApprovalType") String contractApprovalType);
+                    @Param("contractApprovalType") String contractApprovalType,
+                    @Param("filedType") String filedType);
 
     List<String> findChildIds(String department);
 
@@ -64,4 +65,11 @@ public interface ContractInfoMapper extends BaseMapper<ContractInfo> {
     List<String> getClientListByClientNo(@Param("no") String no);
 
     void updateBorrowTypeById(@Param("id") String id, @Param("status")String status);
+
+    /**
+     * 修改纸质归档状态
+     * @param id
+     * @param filedPaperType
+     */
+    void updatePaperInfo(String id, String filedPaperType);
 }

+ 5 - 1
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/cw/contractRegistration/mapper/xml/ContractInfoMapper.xml

@@ -10,7 +10,7 @@
     </update>
     <update id="updateInfo">
         UPDATE cw_work_contract_info SET actual_contract_amount = #{actualContractAmount}
-        ,contract_approval_type = #{contractApprovalType} where del_flag = 0 AND id = #{id}
+        ,contract_approval_type = #{contractApprovalType},filed_type = #{filedType} where del_flag = 0 AND id = #{id}
     </update>
     <update id="updatefiledPaperTypeById">
         UPDATE cw_work_contract_info SET `filed_paper_type` = #{status} WHERE del_flag = 0 AND id = #{id}
@@ -18,6 +18,10 @@
     <update id="updateBorrowTypeById">
         UPDATE cw_work_contract_info SET `borrow_type` = #{status} WHERE del_flag = 0 AND id = #{id}
     </update>
+    <update id="updatePaperInfo">
+        UPDATE cw_work_contract_info SET filed_paper_type = #{filedPaperType}
+        where del_flag = 0 AND id = #{id}
+    </update>
 
     <select id="findPageList" resultType="com.jeeplus.test.cw.contractRegistration.domain.ContractInfo">
         SELECT

+ 8 - 1
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/cw/contractRegistration/service/ContractInfoService.java

@@ -77,7 +77,14 @@ public class ContractInfoService {
      * 根据id修改合同实际金额
      */
     public void updateInfo(ContractInfo info) {
-        mapper.updateInfo(info.getId(), info.getActualContractAmount(),info.getContractApprovalType());
+        mapper.updateInfo(info.getId(), info.getActualContractAmount(),info.getContractApprovalType(),info.getFiledType());
+    }
+
+    /**
+     * 根据id修改合同实际金额
+     */
+    public void updatePaperInfo(ContractInfo info) {
+        mapper.updatePaperInfo(info.getId(), info.getFiledPaperType());
     }
 
     public IPage<ContractInfo> list(Page<ContractInfo> page, ContractInfo info, QueryWrapper<ContractInfo> wrapper) {