From 9701b5f98528d22ac30aef7969fa19f5c188ad35 Mon Sep 17 00:00:00 2001 From: Yen Date: Fri, 8 Dec 2023 17:03:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A7=BB=E9=99=A4=E8=B4=B9?= =?UTF-8?q?=E7=94=A8(=E7=AE=A1=E7=90=86=E5=91=98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BazVisitInstanceController.java | 10 +- .../baz/entity/so/BazVisitInstanceSo.java | 2 + .../service/impl/BazVisitFlowServiceImpl.java | 3 + .../modules/sys/entity/SysDeleteLog.java | 86 +++++++++++++ .../sys/mapper/SysDeleteLogMapper.java | 14 +++ .../sys/service/SysDeleteLogService.java | 21 ++++ .../service/impl/SysDeleteLogServiceImpl.java | 117 ++++++++++++++++++ .../controller/TbsBudgetLogController.java | 64 +++++++--- .../controller/TbsCostApplyController.java | 15 +++ .../tbs/mapper/TbsCostApplyRemoveMapper.java | 101 +++++++++++++++ .../vtb/common/VtbVerificationState.java | 2 + 11 files changed, 412 insertions(+), 23 deletions(-) create mode 100644 src/main/java/com/qs/serve/modules/sys/entity/SysDeleteLog.java create mode 100644 src/main/java/com/qs/serve/modules/sys/mapper/SysDeleteLogMapper.java create mode 100644 src/main/java/com/qs/serve/modules/sys/service/SysDeleteLogService.java create mode 100644 src/main/java/com/qs/serve/modules/sys/service/impl/SysDeleteLogServiceImpl.java create mode 100644 src/main/java/com/qs/serve/modules/tbs/mapper/TbsCostApplyRemoveMapper.java diff --git a/src/main/java/com/qs/serve/modules/baz/controller/BazVisitInstanceController.java b/src/main/java/com/qs/serve/modules/baz/controller/BazVisitInstanceController.java index 0dc78a36..1a22a66e 100644 --- a/src/main/java/com/qs/serve/modules/baz/controller/BazVisitInstanceController.java +++ b/src/main/java/com/qs/serve/modules/baz/controller/BazVisitInstanceController.java @@ -45,17 +45,15 @@ public class BazVisitInstanceController { */ @GetMapping("/page") public R> getPage(BazVisitInstanceSo param){ - BazVisitInstance entity = CopierUtil.copy(param,new BazVisitInstance()); - LambdaQueryWrapper lqw = new LambdaQueryWrapper<>(entity); + BazVisitInstance query = CopierUtil.copy(param,new BazVisitInstance()); if(param.getQueryStartDate()!=null){ - lqw.ge(BazVisitInstance::getCreateTime,param.getQueryStartDate()); + query.setQueryEndDate(param.getQueryStartDate().atStartOfDay()); } if(param.getQueryEndDate()!=null){ - lqw.le(BazVisitInstance::getCreateTime,param.getQueryEndDate().atTime(23,59,59)); + query.setQueryEndDate(param.getQueryEndDate().atTime(23,59,59)); } PageUtil.startPage(); - lqw.orderByDesc(BazVisitInstance::getCreateTime); - List list = bazVisitInstanceService.list(lqw); + List list = bazVisitInstanceService.selectBazVisitInstanceList(query); return R.byPageHelperList(list); } diff --git a/src/main/java/com/qs/serve/modules/baz/entity/so/BazVisitInstanceSo.java b/src/main/java/com/qs/serve/modules/baz/entity/so/BazVisitInstanceSo.java index 50cf2657..893f86d1 100644 --- a/src/main/java/com/qs/serve/modules/baz/entity/so/BazVisitInstanceSo.java +++ b/src/main/java/com/qs/serve/modules/baz/entity/so/BazVisitInstanceSo.java @@ -60,6 +60,8 @@ public class BazVisitInstanceSo implements Serializable { /** 遗失定位标识 */ private Integer missLocalFlag; + private String summary; + @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") private LocalDate queryStartDate; diff --git a/src/main/java/com/qs/serve/modules/baz/service/impl/BazVisitFlowServiceImpl.java b/src/main/java/com/qs/serve/modules/baz/service/impl/BazVisitFlowServiceImpl.java index d6fffb1d..d15e2461 100644 --- a/src/main/java/com/qs/serve/modules/baz/service/impl/BazVisitFlowServiceImpl.java +++ b/src/main/java/com/qs/serve/modules/baz/service/impl/BazVisitFlowServiceImpl.java @@ -40,6 +40,9 @@ public class BazVisitFlowServiceImpl extends ServiceImpl lqwErrCount = new LambdaQueryWrapper<>(); lqwErrCount.eq(BazVisitFlow::getVisitId,bazVisit.getId()); lqwErrCount.eq(BazVisitFlow::getFlowBizType,param.getFlowBizType()); + if(id!=null){ + lqwErrCount.ne(BazVisitFlow::getId,id); + } if(this.count(lqwErrCount)>0){ Assert.throwEx("流程中业务类型不能重复"); } diff --git a/src/main/java/com/qs/serve/modules/sys/entity/SysDeleteLog.java b/src/main/java/com/qs/serve/modules/sys/entity/SysDeleteLog.java new file mode 100644 index 00000000..35263918 --- /dev/null +++ b/src/main/java/com/qs/serve/modules/sys/entity/SysDeleteLog.java @@ -0,0 +1,86 @@ +package com.qs.serve.modules.sys.entity; + +import java.time.LocalDate; +import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDateTime; + +import com.baomidou.mybatisplus.annotation.*; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; +import org.hibernate.validator.constraints.Length; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.NotBlank; + +/** + * 删除日志 实体类 + * @author YenHex + * @since 2023-12-08 + */ +@Data +@TableName("sys_delete_log") +public class SysDeleteLog implements Serializable { + + private static final long serialVersionUID = 1L; + + /** id */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除批次 */ + private String batchCode; + + /** 选项类型 */ + @Length(max = 50,message = "选项类型长度不能超过50字") + private String targetTable; + + /** 目标id */ + @Length(max = 100,message = "目标id长度不能超过100字") + private String targetId; + + /** 目标编码 */ + @Length(max = 100,message = "目标编码长度不能超过100字") + private String targetCode; + + /** 备注 */ + @Length(max = 255,message = "备注长度不能超过255字") + private String remark; + + /** 创建时间 */ + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @TableField(fill = FieldFill.INSERT) + private LocalDateTime createTime; + + /** 创建人 */ + @TableField(fill = FieldFill.INSERT) + private String createBy; + + /** 更新时间 */ + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + @TableField(fill = FieldFill.UPDATE) + private LocalDateTime updateTime; + + /** 更新人 */ + @TableField(fill = FieldFill.UPDATE) + private String updateBy; + + /** 租户id */ + @JsonIgnore + @JsonProperty + private String tenantId; + + /** 删除标识 */ + @JsonIgnore + @JsonProperty + private Boolean delFlag; + + + +} + diff --git a/src/main/java/com/qs/serve/modules/sys/mapper/SysDeleteLogMapper.java b/src/main/java/com/qs/serve/modules/sys/mapper/SysDeleteLogMapper.java new file mode 100644 index 00000000..92f26e83 --- /dev/null +++ b/src/main/java/com/qs/serve/modules/sys/mapper/SysDeleteLogMapper.java @@ -0,0 +1,14 @@ +package com.qs.serve.modules.sys.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.qs.serve.modules.sys.entity.SysDeleteLog; + +/** + * 删除日志 Mapper + * @author YenHex + * @date 2023-12-08 + */ +public interface SysDeleteLogMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/qs/serve/modules/sys/service/SysDeleteLogService.java b/src/main/java/com/qs/serve/modules/sys/service/SysDeleteLogService.java new file mode 100644 index 00000000..d365f198 --- /dev/null +++ b/src/main/java/com/qs/serve/modules/sys/service/SysDeleteLogService.java @@ -0,0 +1,21 @@ +package com.qs.serve.modules.sys.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.qs.serve.modules.sys.entity.SysDeleteLog; + +/** + * 删除日志 服务接口 + * @author YenHex + * @date 2023-12-08 + */ +public interface SysDeleteLogService extends IService { + + /** + * 删除费用申请相关所有数据 + * @param costApplyId + * @param remark + */ + void deleteCostApply(Long costApplyId,String remark); + +} + diff --git a/src/main/java/com/qs/serve/modules/sys/service/impl/SysDeleteLogServiceImpl.java b/src/main/java/com/qs/serve/modules/sys/service/impl/SysDeleteLogServiceImpl.java new file mode 100644 index 00000000..130ec9cc --- /dev/null +++ b/src/main/java/com/qs/serve/modules/sys/service/impl/SysDeleteLogServiceImpl.java @@ -0,0 +1,117 @@ +package com.qs.serve.modules.sys.service.impl; +import java.time.LocalDateTime; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.qs.serve.common.util.IdUtil; +import com.qs.serve.modules.tbs.entity.TbsCostApply; +import com.qs.serve.modules.tbs.entity.TbsCostTodo; +import com.qs.serve.modules.tbs.mapper.TbsCostApplyMapper; +import com.qs.serve.modules.tbs.mapper.TbsCostApplyRemoveMapper; +import com.qs.serve.modules.tbs.mapper.TbsCostTodoMapper; +import com.qs.serve.modules.vtb.entity.VtbVerification; +import com.qs.serve.modules.vtb.mapper.VtbVerificationMapper; +import com.qs.serve.modules.vtb.service.VtbVerificationService; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import com.qs.serve.modules.sys.entity.SysDeleteLog; +import com.qs.serve.modules.sys.service.SysDeleteLogService; +import com.qs.serve.modules.sys.mapper.SysDeleteLogMapper; +import org.springframework.transaction.annotation.Transactional; + +import java.util.ArrayList; +import java.util.List; +/** + * 删除日志 服务实现类 + * @author YenHex + * @since 2023-12-08 + */ +@Slf4j +@Service +@AllArgsConstructor +public class SysDeleteLogServiceImpl extends ServiceImpl implements SysDeleteLogService { + + private final TbsCostApplyRemoveMapper tbsCostApplyRemoveMapper; + private final TbsCostApplyMapper tbsCostApplyMapper; + private final VtbVerificationMapper verificationMapper; + private final TbsCostTodoMapper tbsCostTodoMapper; + + @Override + @Transactional(rollbackFor = Exception.class) + public void deleteCostApply(Long costApplyId,String remark) { + TbsCostApply costApply = tbsCostApplyMapper.selectById(costApplyId); + String batchCode = System.currentTimeMillis()+""; + List deleteLogList = new ArrayList<>(); + if(costApply!=null){ + SysDeleteLog deleteLog = new SysDeleteLog(); + deleteLog.setBatchCode(batchCode); + deleteLog.setTargetTable("tbs_cost_apply"); + deleteLog.setTargetId(costApply.getId()+""); + deleteLog.setTargetCode(costApply.getCode()); + deleteLog.setRemark(remark); + deleteLogList.add(deleteLog); + } + + tbsCostApplyRemoveMapper.tbs_cost_apply(costApplyId); + + tbsCostApplyRemoveMapper.tbs_activity(costApplyId); + tbsCostApplyRemoveMapper.tbs_activity_center(costApplyId); + tbsCostApplyRemoveMapper.tbs_activity_center_goods(costApplyId); + tbsCostApplyRemoveMapper.tbs_activity_goods(costApplyId); + tbsCostApplyRemoveMapper.tbs_activity_channel(costApplyId); + tbsCostApplyRemoveMapper.tbs_activity_channel_point(costApplyId); + tbsCostApplyRemoveMapper.tbs_activity_pay_condition(costApplyId); + tbsCostApplyRemoveMapper.tbs_activity_slotting_fee(costApplyId); + tbsCostApplyRemoveMapper.tbs_activity_subject(costApplyId); + tbsCostApplyRemoveMapper.tbs_activity_subject_yarn(costApplyId); + //记录进行中的核销 + LambdaQueryWrapper verificationLqw = new LambdaQueryWrapper<>(); + verificationLqw.eq(VtbVerification::getCostApplyId,costApplyId); + List vtbVerificationList = verificationMapper.selectList(verificationLqw); + for (VtbVerification verification : vtbVerificationList) { + SysDeleteLog deleteLog = new SysDeleteLog(); + deleteLog.setBatchCode(batchCode); + deleteLog.setTargetTable("vtb_verification"); + deleteLog.setTargetId(verification.getId()+""); + deleteLog.setTargetCode(verification.getVerificationCode()); + deleteLog.setRemark(remark); + deleteLogList.add(deleteLog); + } + tbsCostApplyRemoveMapper.vtb_verification(costApplyId); + tbsCostApplyRemoveMapper.pay_payment(costApplyId); + tbsCostApplyRemoveMapper.pay_payment_item(costApplyId); + tbsCostApplyRemoveMapper.tbs_budget_log(costApplyId); + tbsCostApplyRemoveMapper.tbs_budget_cost_item(costApplyId); + tbsCostApplyRemoveMapper.tbs_budget_cost_item_split(costApplyId); + tbsCostApplyRemoveMapper.vtb_fund_flow(costApplyId); + tbsCostApplyRemoveMapper.bir_activity_center_goods(costApplyId); + tbsCostApplyRemoveMapper.bir_base_activity(costApplyId); + tbsCostApplyRemoveMapper.bir_payment_item(costApplyId); + tbsCostApplyRemoveMapper.vtb_verification_subject(costApplyId); + tbsCostApplyRemoveMapper.vtb_verification_yard_item(costApplyId); + tbsCostApplyRemoveMapper.vtb_verification_yard_center_item(costApplyId); + tbsCostApplyRemoveMapper.vtb_verification_subject_center(costApplyId); + tbsCostApplyRemoveMapper.vtb_verification_channel_point(costApplyId); + tbsCostApplyRemoveMapper.vtb_verification_channel(costApplyId); + tbsCostApplyRemoveMapper.tbs_cost_contract(costApplyId); + tbsCostApplyRemoveMapper.tbs_cost_percent(costApplyId); + //记录进行中的协议条款 + LambdaQueryWrapper todoLqw = new LambdaQueryWrapper<>(); + todoLqw.eq(TbsCostTodo::getCostApplyId,costApplyId); + List costTodoList = tbsCostTodoMapper.selectList(todoLqw); + for (TbsCostTodo costTodo : costTodoList) { + SysDeleteLog deleteLog = new SysDeleteLog(); + deleteLog.setBatchCode(batchCode); + deleteLog.setTargetTable("tbs_cost_todo"); + deleteLog.setTargetId(costTodo.getId()+""); + deleteLog.setTargetCode(costTodo.getTodoCode()); + deleteLog.setRemark(remark); + deleteLogList.add(deleteLog); + } + tbsCostApplyRemoveMapper.tbs_cost_todo(costApplyId); + this.saveBatch(deleteLogList); + } + +} + diff --git a/src/main/java/com/qs/serve/modules/tbs/controller/TbsBudgetLogController.java b/src/main/java/com/qs/serve/modules/tbs/controller/TbsBudgetLogController.java index af8741a4..8845b540 100644 --- a/src/main/java/com/qs/serve/modules/tbs/controller/TbsBudgetLogController.java +++ b/src/main/java/com/qs/serve/modules/tbs/controller/TbsBudgetLogController.java @@ -21,6 +21,7 @@ import com.qs.serve.modules.tbs.service.TbsBudgetService; import com.qs.serve.modules.tbs.service.TbsScheduleItemBudgetService; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; +import org.jetbrains.annotations.Nullable; import org.springframework.web.bind.annotation.*; import com.qs.serve.modules.tbs.entity.so.TbsBudgetLogSo; @@ -117,16 +118,57 @@ public class TbsBudgetLogController { lqw.eq(TbsScheduleItemBudget::getBudgetId,budgetId); lqw.eq(TbsScheduleItemBudget::getScheduleItemId,itemId); List tbsScheduleItemBudgetList = tbsScheduleItemBudgetService.list(lqw); + TbsScheduleItemBudget rs = this.getItemBudget(budgetId, tbsScheduleItemBudgetList); + return R.ok(rs); + } + + + + /** + * 获取统计金额(返回预算列表) + * @param budgetId + * @return + */ + @GetMapping("/getItemListAmount") + public R> getItemListAmount(Long budgetId){ + LambdaQueryWrapper lqw = new LambdaQueryWrapper<>(); + lqw.eq(TbsScheduleItemBudget::getBudgetId,budgetId); + List tbsScheduleItemBudgetList = tbsScheduleItemBudgetService.list(lqw); + + Map> tbsScheduleItemBudgetListMap = tbsScheduleItemBudgetList.stream() + .collect(Collectors.groupingBy(TbsScheduleItemBudget::getScheduleItemId)); + List resultList = new ArrayList<>(); + for (Long schItemId : tbsScheduleItemBudgetListMap.keySet()) { + tbsScheduleItemBudgetList = tbsScheduleItemBudgetListMap.get(schItemId); + TbsScheduleItemBudget rs = this.getItemBudget(budgetId, tbsScheduleItemBudgetList); + resultList.add(rs); + } + return R.ok(resultList); + } + + + /** + * ID查询 + * @param id + * @return + */ + @GetMapping("/getById/{id}") + @SysLog(module = SystemModule.Budget, title = "预算日志", biz = BizType.QUERY) + public R getById(@PathVariable("id") String id){ + TbsBudgetLog tbsBudgetLog = tbsBudgetLogService.getById(id); + return R.ok(tbsBudgetLog); + } + @Nullable + private TbsScheduleItemBudget getItemBudget(Long budgetId, List tbsScheduleItemBudgetList) { Optional optional = tbsScheduleItemBudgetList.stream().findFirst(); + TbsScheduleItemBudget rs = null; if(optional.isPresent()){ TbsScheduleItemBudget a = optional.get(); LambdaQueryWrapper lqwLog = new LambdaQueryWrapper<>(); lqwLog.eq(TbsBudgetLog::getScheduleItemBudgetId,a.getId()); - lqwLog.eq(TbsBudgetLog::getBudgetId,budgetId); + lqwLog.eq(TbsBudgetLog::getBudgetId, budgetId); List tbsBudgetLogList = budgetLogService.list(lqwLog); -// a.setBudgetLogList(tbsBudgetLogList); - BigDecimal finalBudgetAmount = tbsBudgetLogList.stream().filter(b-> BudgetLogOptFlag.getFinalBudgetOptFlag().contains(b.getOptType())).map(TbsBudgetLog::getAmount) .reduce(BigDecimal.ZERO,BigDecimal::add); @@ -139,21 +181,9 @@ public class TbsBudgetLogController { a.setFinalBudgetAmount(finalBudgetAmount); a.setUnUsedBudgetAmount(unUsedBudgetAmount); a.setUsedBudgetAmount(usedBudgetAmount); - return R.ok(a); + rs = a; } - return R.ok(); - } - - /** - * ID查询 - * @param id - * @return - */ - @GetMapping("/getById/{id}") - @SysLog(module = SystemModule.Budget, title = "预算日志", biz = BizType.QUERY) - public R getById(@PathVariable("id") String id){ - TbsBudgetLog tbsBudgetLog = tbsBudgetLogService.getById(id); - return R.ok(tbsBudgetLog); + return rs; } } diff --git a/src/main/java/com/qs/serve/modules/tbs/controller/TbsCostApplyController.java b/src/main/java/com/qs/serve/modules/tbs/controller/TbsCostApplyController.java index 31ede8a2..ce91abcd 100644 --- a/src/main/java/com/qs/serve/modules/tbs/controller/TbsCostApplyController.java +++ b/src/main/java/com/qs/serve/modules/tbs/controller/TbsCostApplyController.java @@ -20,6 +20,7 @@ import com.qs.serve.modules.seeyon.entity.CtpAffairQo; import com.qs.serve.modules.seeyon.entity.bo.CtpAddNodeParam; import com.qs.serve.modules.seeyon.service.SeeYonRequestService; import com.qs.serve.modules.sys.entity.SysUser; +import com.qs.serve.modules.sys.service.SysDeleteLogService; import com.qs.serve.modules.sys.service.SysPostUserService; import com.qs.serve.modules.sys.service.SysUserService; import com.qs.serve.modules.tbs.common.TbsCostApplyState; @@ -81,6 +82,7 @@ public class TbsCostApplyController { private TbsBudgetCostItemService tbsBudgetCostItemService; private TbsBudgetLogService tbsBudgetLogService; private TbsScheduleItemBudgetService tbsScheduleItemBudgetService; + private SysDeleteLogService deleteLogService; /** @@ -509,5 +511,18 @@ public class TbsCostApplyController { return R.ok(resultInfoList); } + + /** + * 移除费用申请 + * @param costApplyId + * @param remark + * @return + */ + @GetMapping("removeByAdmin") + public R removeByAdmin(Long costApplyId,String remark){ + deleteLogService.deleteCostApply(costApplyId,remark); + return R.ok(); + } + } diff --git a/src/main/java/com/qs/serve/modules/tbs/mapper/TbsCostApplyRemoveMapper.java b/src/main/java/com/qs/serve/modules/tbs/mapper/TbsCostApplyRemoveMapper.java new file mode 100644 index 00000000..e4d875e8 --- /dev/null +++ b/src/main/java/com/qs/serve/modules/tbs/mapper/TbsCostApplyRemoveMapper.java @@ -0,0 +1,101 @@ +package com.qs.serve.modules.tbs.mapper; + +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Update; + +/** + * @author YenHex + * @since 2023/12/8 + */ +public interface TbsCostApplyRemoveMapper { + + @Update("update tbs_cost_apply set del_flag = 0 where id = #{costApplyId}") + int tbs_cost_apply(@Param("costApplyId") Long costId); + + @Update("update tbs_activity set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_activity(@Param("costApplyId") Long costId); + + @Update("update tbs_activity_center set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_activity_center(@Param("costApplyId") Long costId); + + @Update("update tbs_activity_center_goods set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_activity_center_goods(@Param("costApplyId") Long costId); + + @Update("update tbs_activity_goods set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_activity_goods(@Param("costApplyId") Long costId); + + @Update("update tbs_activity_channel set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_activity_channel(@Param("costApplyId") Long costId); + + @Update("update tbs_activity_channel_point set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_activity_channel_point(@Param("costApplyId") Long costId); + + @Update("update tbs_activity_pay_condition set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_activity_pay_condition(@Param("costApplyId") Long costId); + + @Update("update tbs_activity_slotting_fee set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_activity_slotting_fee(@Param("costApplyId") Long costId); + + @Update("update tbs_activity_subject set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_activity_subject(@Param("costApplyId") Long costId); + + @Update("update tbs_activity_subject_yarn set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_activity_subject_yarn(@Param("costApplyId") Long costId); + + @Update("update vtb_verification set del_flag = 0 where cost_apply_id = #{costApplyId}") + int vtb_verification(@Param("costApplyId") Long costId); + + @Update("update pay_payment set del_flag = 0 where cost_apply_id = #{costApplyId}") + int pay_payment(@Param("costApplyId") Long costId); + + @Update("update pay_payment_item set del_flag = 0 where cost_apply_id = #{costApplyId}") + int pay_payment_item(@Param("costApplyId") Long costId); + + @Update("update tbs_budget_log set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_budget_log(@Param("costApplyId") Long costId); + + @Update("update tbs_budget_cost_item set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_budget_cost_item(@Param("costApplyId") Long costId); + + @Update("update tbs_budget_cost_item_split set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_budget_cost_item_split(@Param("costApplyId") Long costId); + + @Update("update vtb_fund_flow set del_flag = 0 where cost_apply_id = #{costApplyId}") + int vtb_fund_flow(@Param("costApplyId") Long costId); + + @Update("update bir_activity_center_goods set del_flag = 0 where cost_apply_id = #{costApplyId}") + int bir_activity_center_goods(@Param("costApplyId") Long costId); + + @Update("update bir_base_activity set del_flag = 0 where cost_apply_id = #{costApplyId}") + int bir_base_activity(@Param("costApplyId") Long costId); + + @Update("update bir_payment_item set del_flag = 0 where cost_apply_id = #{costApplyId}") + int bir_payment_item(@Param("costApplyId") Long costId); + + @Update("update vtb_verification_subject set del_flag = 0 where cost_apply_id = #{costApplyId}") + int vtb_verification_subject(@Param("costApplyId") Long costId); + + @Update("update vtb_verification_yard_item set del_flag = 0 where cost_apply_id = #{costApplyId}") + int vtb_verification_yard_item(@Param("costApplyId") Long costId); + + @Update("update vtb_verification_yard_center_item set del_flag = 0 where cost_apply_id = #{costApplyId}") + int vtb_verification_yard_center_item(@Param("costApplyId") Long costId); + + @Update("update vtb_verification_subject_center set del_flag = 0 where cost_apply_id = #{costApplyId}") + int vtb_verification_subject_center(@Param("costApplyId") Long costId); + + @Update("update vtb_verification_channel_point set del_flag = 0 where cost_apply_id = #{costApplyId}") + int vtb_verification_channel_point(@Param("costApplyId") Long costId); + + @Update("update vtb_verification_channel set del_flag = 0 where cost_apply_id = #{costApplyId}") + int vtb_verification_channel(@Param("costApplyId") Long costId); + + @Update("update tbs_cost_contract set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_cost_contract(@Param("costApplyId") Long costId); + + @Update("update tbs_cost_percent set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_cost_percent(@Param("costApplyId") Long costId); + + @Update("update tbs_cost_todo set del_flag = 0 where cost_apply_id = #{costApplyId}") + int tbs_cost_todo(@Param("costApplyId") Long costId); +} diff --git a/src/main/java/com/qs/serve/modules/vtb/common/VtbVerificationState.java b/src/main/java/com/qs/serve/modules/vtb/common/VtbVerificationState.java index 991604c9..1c0e49d8 100644 --- a/src/main/java/com/qs/serve/modules/vtb/common/VtbVerificationState.java +++ b/src/main/java/com/qs/serve/modules/vtb/common/VtbVerificationState.java @@ -21,4 +21,6 @@ public enum VtbVerificationState { private Integer code; + + }