Commit eec8a09a by Kim Gyeongeun

市川市追加対応

parent eea8f130
...@@ -203,11 +203,16 @@ public class GiftExchangeService extends AbstractService<GiftExchange> { ...@@ -203,11 +203,16 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
toDay = SinaburoUtil.convertStringToTimestamp(SinaburoUtil.getNextDay(giftExchangeSearchForm.toDay),"yyyy-MM-dd"); toDay = SinaburoUtil.convertStringToTimestamp(SinaburoUtil.getNextDay(giftExchangeSearchForm.toDay),"yyyy-MM-dd");
} }
return select().innerJoin("member").innerJoin("member.prefecture").innerJoin("gift").where(new SimpleWhere() SimpleWhere where = new SimpleWhere().ge("applyDate", fromDay)
.ge("applyDate", fromDay)
.lt("applyDate", toDay) .lt("applyDate", toDay)
.eq("member.validFlg", SinaburoConstant.MemberValidFlg.VALID) .eq("member.validFlg", SinaburoConstant.MemberValidFlg.VALID)
.eq("member.delFlg", SinaburoConstant.MemberDelFlg.NOT_DEL)) .eq("member.delFlg", SinaburoConstant.MemberDelFlg.NOT_DEL);
// 区分(エコボ:1、ICHICO:2)
if (giftExchangeSearchForm.giftType != null) {
where.eq("gift.giftType", giftExchangeSearchForm.giftType);
}
return select().innerJoin("member").innerJoin("member.prefecture").innerJoin("gift").where(where)
.orderBy("applyDate,memberId") .orderBy("applyDate,memberId")
.getResultList(); .getResultList();
} }
......
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