Commit 7c864f7b authored by huyuchen's avatar huyuchen

huych-合同自动化代码提交

parent 58d31ac6
......@@ -62,6 +62,8 @@ import java.math.BigDecimal;
import java.net.URLEncoder;
import java.time.LocalDateTime;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* 瓜子offer信息接收表
......@@ -548,9 +550,7 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
//获取所有满足条件的信息待收集、候选人填写信息的offer提醒的数据
if (Common.isNotNull(tGzOfferInfo)) {
if (Common.isEmpty(tGzOfferInfo.getOfferStatusArray()) || tGzOfferInfo.getOfferStatusArray().length == 0) {
tGzOfferInfo.setOfferStatusArray(new String[]{"9", "98"});
}
tGzOfferInfo.setStatusList(Stream.of("9","98").collect(Collectors.toList()));
List<TGzOfferInfoVo> offerList = baseMapper.getTGzOfferInfoSendAlertList(tGzOfferInfo);
if (Common.isNotNull(offerList) && !offerList.isEmpty()) {
if (Common.isNotNull(offerList) && offerList.size() >200) {
......
......@@ -143,6 +143,12 @@
'${item}'
</foreach>
</if>
<if test="tGzOfferInfo.statusList != null and tGzOfferInfo.statusList.size() > 0">
AND a.offer_status in
<foreach item="item" index="index" collection="tGzOfferInfo.statusList" open="(" separator="," close=")">
'${item}'
</foreach>
</if>
<if test="tGzOfferInfo.updateBy != null and tGzOfferInfo.updateBy.trim() != ''">
AND a.update_by = #{tGzOfferInfo.updateBy}
</if>
......
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