| | |
| | | import com.finance.common.utils.CollUtils; |
| | | import com.finance.common.utils.DateUtils; |
| | | import com.finance.common.utils.StringUtils; |
| | | import com.finance.system.constants.QuarterConstant; |
| | | import com.finance.system.domain.TbQuestion; |
| | | import com.finance.system.dto.QuestionDTO; |
| | | import com.finance.system.dto.update.QuestionUpdDTO; |
| | |
| | | import java.util.Set; |
| | | import java.util.stream.Collectors; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | |
| | | private final ISysUserService sysUserService; |
| | | private final AsyncService asyncService; |
| | | @Value("${fdb.quarter}") |
| | | private String quarter; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | TbQuestion tbQuestion = BeanUtils.copyBean(dto, TbQuestion.class); |
| | | tbQuestion.setType(dto.getType()); |
| | | String previousQuarter = DateUtils.getPreviousQuarter(); |
| | | previousQuarter = QuarterConstant.CURRENT_QUARTER; |
| | | previousQuarter = quarter; |
| | | tbQuestion.setQuarter(previousQuarter); |
| | | this.save(tbQuestion); |
| | | asyncService.subtractScoreWithFixedRules(dto.getDeptAreaCode()); |