Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
em
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ichikawa
em
Commits
eea8f130
Commit
eea8f130
authored
a year ago
by
Kim Gyeongeun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
市川市追加対応
parent
6c66f54c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
13 deletions
+28
-13
src/main/java/jp/agentec/sinaburocast/form/admin/enquete/GiftExchangeSearchForm.java
+7
-3
src/main/java/jp/agentec/sinaburocast/service/GiftExchangeService.java
+9
-6
src/main/webapp/WEB-INF/view/admin/enquete/giftExchangeSearch.html
+12
-4
No files found.
src/main/java/jp/agentec/sinaburocast/form/admin/enquete/GiftExchangeSearchForm.java
View file @
eea8f130
...
...
@@ -2,14 +2,14 @@ package jp.agentec.sinaburocast.form.admin.enquete;
import
java.util.ArrayList
;
import
jp.agentec.sinaburocast.entity.GiftExchange
;
import
jp.agentec.sinaburocast.form.admin.setting.PagingForm
;
import
org.apache.commons.lang.builder.StandardToStringStyle
;
import
org.apache.commons.lang.builder.ToStringBuilder
;
import
org.seasar.framework.container.annotation.tiger.Component
;
import
org.seasar.framework.container.annotation.tiger.InstanceType
;
import
jp.agentec.sinaburocast.entity.GiftExchange
;
import
jp.agentec.sinaburocast.form.admin.setting.PagingForm
;
/**
* ポイント交換申請検索Form
*
...
...
@@ -18,6 +18,9 @@ import org.seasar.framework.container.annotation.tiger.InstanceType;
*/
@Component
(
instance
=
InstanceType
.
SESSION
)
public
class
GiftExchangeSearchForm
extends
PagingForm
{
/** 区分(エコボ:1、ICHICO:2) */
public
Integer
giftType
;
/** 申請日(From) */
public
String
fromDay
;
...
...
@@ -32,6 +35,7 @@ public class GiftExchangeSearchForm extends PagingForm{
fromDay
=
null
;
toDay
=
null
;
searchResultList
=
null
;
giftType
=
null
;
}
@Override
...
...
This diff is collapsed.
Click to expand it.
src/main/java/jp/agentec/sinaburocast/service/GiftExchangeService.java
View file @
eea8f130
...
...
@@ -100,12 +100,15 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
//toDay =SinaburoUtil.getAddDate(SinaburoUtil.stringToDateSlash(giftExchangeSearchForm.toDay),1);
toDay
=
SinaburoUtil
.
convertStringToTimestamp
(
SinaburoUtil
.
getNextDay
(
giftExchangeSearchForm
.
toDay
),
"yyyy-MM-dd"
);
}
return
select
().
innerJoin
(
"member"
).
innerJoin
(
"member.prefecture"
).
innerJoin
(
"gift"
).
where
(
new
SimpleWhere
()
.
ge
(
"applyDate"
,
fromDay
)
.
lt
(
"applyDate"
,
toDay
)
.
eq
(
"member.validFlg"
,
SinaburoConstant
.
MemberValidFlg
.
VALID
)
.
eq
(
"member.delFlg"
,
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
));
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
(
where
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/view/admin/enquete/giftExchangeSearch.html
View file @
eea8f130
...
...
@@ -43,12 +43,20 @@ $!tools.getMsg("dateError") $!tools.getMsg("dateError_1") $!tools.getMsg("dateEr
<table
border=
"0"
cellspacing=
"5"
cellpadding=
"0"
class=
"stripe3 w790"
>
<tr
class=
"gray"
>
<td
class=
"w100"
>
申請日(From)
</td>
<td><input
name=
"fromDay"
id=
"fromDay"
type=
"text"
class=
"w180 mgl10"
value=
"$!escape.html($!giftExchangeSearchForm.fromDay)"
>
<td
class=
"w40"
>
区分
</td>
<td>
<select
name=
"giftType"
id=
"giftType"
class=
"w130 mgl10"
>
<option
value=
""
#
if
($!
giftExchangeSearchForm
.
giftType =
=
"")
selected
#
end
></option>
<option
value=
"1"
#
if
($!
giftExchangeSearchForm
.
giftType =
=
"
1
")
selected
#
end
>
満点エコボカード
</option>
<option
value=
"2"
#
if
($!
giftExchangeSearchForm
.
giftType =
=
"
2
")
selected
#
end
>
ICHICOカード
</option>
</select>
</td>
<td
class=
"w85"
>
申請日(From)
</td>
<td><input
name=
"fromDay"
id=
"fromDay"
type=
"text"
class=
"w100 mgl10"
value=
"$!escape.html($!giftExchangeSearchForm.fromDay)"
>
<div
style=
"display: none;"
><img
id=
"calFromDate"
src=
"/em/images/icon_cal.gif"
style=
"padding-left:5px;padding-right:5px; vertical-align: middle;"
></div>
</td>
<td
class=
"w
100
"
>
申請日(To)
</td>
<td><input
name=
"toDay"
id=
"toDay"
type=
"text"
class=
"w1
8
0 mgl10"
value=
"$!escape.html($!giftExchangeSearchForm.toDay)"
>
<td
class=
"w
85
"
>
申請日(To)
</td>
<td><input
name=
"toDay"
id=
"toDay"
type=
"text"
class=
"w1
0
0 mgl10"
value=
"$!escape.html($!giftExchangeSearchForm.toDay)"
>
<div
style=
"display: none;"
><img
id=
"calToDate"
src=
"/em/images/icon_cal.gif"
style=
"padding-left:5px;padding-right:5px; vertical-align: middle;"
></div></td>
</tr>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment