Commit eec8a09a by Kim Gyeongeun

市川市追加対応

parent eea8f130
...@@ -202,12 +202,17 @@ public class GiftExchangeService extends AbstractService<GiftExchange> { ...@@ -202,12 +202,17 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
//toDay =SinaburoUtil.getAddDate(SinaburoUtil.stringToDateSlash(giftExchangeSearchForm.toDay),1); //toDay =SinaburoUtil.getAddDate(SinaburoUtil.stringToDateSlash(giftExchangeSearchForm.toDay),1);
toDay = SinaburoUtil.convertStringToTimestamp(SinaburoUtil.getNextDay(giftExchangeSearchForm.toDay),"yyyy-MM-dd"); toDay = SinaburoUtil.convertStringToTimestamp(SinaburoUtil.getNextDay(giftExchangeSearchForm.toDay),"yyyy-MM-dd");
} }
SimpleWhere where = new SimpleWhere().ge("applyDate", fromDay)
.lt("applyDate", toDay)
.eq("member.validFlg", SinaburoConstant.MemberValidFlg.VALID)
.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(new SimpleWhere() return select().innerJoin("member").innerJoin("member.prefecture").innerJoin("gift").where(where)
.ge("applyDate", fromDay)
.lt("applyDate", toDay)
.eq("member.validFlg", SinaburoConstant.MemberValidFlg.VALID)
.eq("member.delFlg", SinaburoConstant.MemberDelFlg.NOT_DEL))
.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