考核问题整改查询修改

master
wany 2024-10-08 11:00:40 +08:00
parent af2da3aaeb
commit 29621b88ca
2 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,9 @@ public interface AssessTeamRatingMapper extends BaseMapper<AssessTeamRating> {
</if> </if>
<if test="obj.taskName != null and obj.taskName != ''"> <if test="obj.taskName != null and obj.taskName != ''">
and t5.task_name like concat('%', #{obj.taskName}::text, '%') and t5.task_name like concat('%', #{obj.taskName}::text, '%')
</if>
<if test="obj.objectUserName != null and obj.objectUserName != ''">
and t2.object_user_name like concat('%', #{obj.objectUserName}::text, '%')
</if> </if>
<if test="obj.dateRangeSo != null and obj.dateRangeSo.start != null"> <if test="obj.dateRangeSo != null and obj.dateRangeSo.start != null">
and t.rectify_last_date <![CDATA[>=]]> #{obj.dateRangeSo.start} and t.rectify_last_date <![CDATA[>=]]> #{obj.dateRangeSo.start}

View File

@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects; import java.util.Objects;
@ -38,6 +39,7 @@ public class RiskControlInfoService extends ServiceImpl<RiskControlInfoMapper, R
public RiskControlInfo saveData(RiskControlInfo dto) { public RiskControlInfo saveData(RiskControlInfo dto) {
dto.setId(IdWorker.getId()); dto.setId(IdWorker.getId());
dto.setCreateDate(new Date());
boolean result = this.save(dto); boolean result = this.save(dto);
if (result) { if (result) {
fileService.saveFile(dto.getFiles(), getGroupId(), String.valueOf(dto.getId())); fileService.saveFile(dto.getFiles(), getGroupId(), String.valueOf(dto.getId()));