Commit e0ce1399 authored by wangyangyang's avatar wangyangyang

设计评审项:评审意见走完流程后 若是否手填意见为否,自动填充(加已-答复) 意见答复、落实情况、验证情况

parent 8d3a17fe
package com.inet.dcs.document.core.service.impl;
import cn.hutool.core.util.BooleanUtil;
import cn.hutool.core.util.StrUtil;
import com.inet.dcs.document.common.vo.ExtDesignReviewNoticeVO;
import com.inet.dcs.document.core.constants.Constants;
import com.yonde.dex.basedata.exception.DxBusinessException;
import com.yonde.dex.dao.service.DxDaoPluginExpander;
import com.yonde.dex.wfc.feign.api.WfcProcessFeign;
import org.checkerframework.checker.units.qual.C;
import org.springframework.stereotype.Service;
import io.swagger.annotations.ApiOperation;
import java.util.Collection;
import java.util.List;
import com.inet.dcs.document.common.vo.ExtReviewFeedbackVO;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -16,17 +23,18 @@ import org.springframework.web.bind.annotation.*;
import com.inet.dcs.document.core.service.ExtReviewFeedbackService;
import com.inet.dcs.document.core.repository.ExtReviewFeedbackRepository;
import com.inet.dcs.document.entity.po.ExtReviewFeedback;
import javax.annotation.Resource;
/**
* @description: ExtReviewFeedback-ServiceImpl
* @author: dexadmin
* @version: V
* @date: 2024-10-29 16:36:01
**/
* @description: ExtReviewFeedback-ServiceImpl
* @author: dexadmin
* @version: V
* @date: 2024-10-29 16:36:01
**/
@Slf4j
@Service(ExtReviewFeedbackServiceImpl.BEAN_NAME)
public class ExtReviewFeedbackServiceImpl<V extends ExtReviewFeedbackVO> implements ExtReviewFeedbackService<V>{
public class ExtReviewFeedbackServiceImpl<V extends ExtReviewFeedbackVO> implements ExtReviewFeedbackService<V>, DxDaoPluginExpander<V> {
public static final String BEAN_NAME = "extReviewFeedbackServiceImpl";
......@@ -40,9 +48,37 @@ public class ExtReviewFeedbackServiceImpl<V extends ExtReviewFeedbackVO> impleme
private static final String START_PROCESS_BY_KEY = "ExtReviewFeedbackWF";
/**
* 如果意见反馈状态为 已发布 若意见答复、落实情况、验证情况无值,则自动填充前面加已
*
* @param target
* @param origin
*/
@Override
public void postUpdate(Collection<V> target, Collection<V> origin) {
for (ExtReviewFeedbackVO v : target) {
//已发布
if (Constants.RELEASE.equalsIgnoreCase(v.getState())) {
if (BooleanUtil.isTrue(v.getIsHandOpinion())) {
if (StrUtil.isEmpty(v.getOpinionReply())) {
v.setOpinionReply("已答复");
}
if (StrUtil.isEmpty(v.getWorkable())) {
v.setWorkable("已落实");
}
if (StrUtil.isEmpty(v.getValidating())) {
v.setValidating("已验证");
}
}
}
}
}
/**
* 沟通确认后 在待审阅 pendingReview 节点启动流程(第一个节点) 先启动,后修改状态 审阅中 Reviewing
*
* @param id
* @return
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment