|
|
@ -46,7 +46,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectTotParkingJudgeResultGroupByTeamAndChasu" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
|
|
|
|
<select id="selectTotParkingJudgeResultGroupByTeamAndChasu" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
|
|
|
|
/* parking-mapper|selectTotParkingJudgeResultGroupByTeamAndChasu|julim */
|
|
|
|
/* parking-mapper|selectTotParkingJudgeResultGroupByTeamAndChasu|julim */
|
|
|
|
SELECT NVL(SUM(DECODE(MS.ms_result, '2', 1, 0)), 0) bu
|
|
|
|
SELECT <if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
|
|
|
|
MV.msu_team
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test='msuTeam == null or msuTeam == ""'>
|
|
|
|
|
|
|
|
''
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '2', 1, 0)), 0) bu
|
|
|
|
, 0 as seo
|
|
|
|
, 0 as seo
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, 0)), 0) mibu
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, 0)), 0) mibu
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, '2', 1, 0)), 0) tot
|
|
|
|
, NVL(SUM(DECODE(MS.ms_result, '1', 1, '2', 1, 0)), 0) tot
|
|
|
@ -58,9 +64,9 @@
|
|
|
|
AND MV.msu_team = #{msuTeam}
|
|
|
|
AND MV.msu_team = #{msuTeam}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_sdate >= #{msSdate}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_edate <= #{msEdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
GROUP BY MS.ms_chasu
|
|
|
|
GROUP BY MV.msu_team, MS.ms_chasu
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectParkingJudgeTeamGroupByChasuAndTeamList" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
|
|
|
|
<select id="selectParkingJudgeTeamGroupByChasuAndTeamList" parameterType="com.xit.biz.ctgy.dto.JudgeListDto" resultType="camelCaseLinkedMap">
|
|
|
@ -78,8 +84,8 @@
|
|
|
|
AND MV.msu_team = #{msuTeam}
|
|
|
|
AND MV.msu_team = #{msuTeam}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_sdate >= #{msSdate}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_edate <= #{msEdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
GROUP BY MS.ms_chasu, MV.msu_team
|
|
|
|
GROUP BY MS.ms_chasu, MV.msu_team
|
|
|
|
ORDER BY MS.ms_chasu, MV.msu_team
|
|
|
|
ORDER BY MS.ms_chasu, MV.msu_team
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -96,8 +102,8 @@
|
|
|
|
, min_userinfo MU
|
|
|
|
, min_userinfo MU
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_sdate >= #{msSdate}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_edate <= #{msEdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
@ -115,12 +121,13 @@
|
|
|
|
, min_simsa_user680 MSU
|
|
|
|
, min_simsa_user680 MSU
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_sdate >= #{msSdate}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_edate <= #{msEdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
<if test='msuTeam != null and msuTeam != ""'>
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
GROUP BY MS.ms_maincode, MS.ms_seq, MS.ms_carnum
|
|
|
|
GROUP BY MS.ms_maincode, MS.ms_seq, MS.ms_carnum
|
|
|
|
|
|
|
|
ORDER BY MS.ms_maincode, MS.ms_seq, MS.ms_carnum
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectParkingJudgeResultList" parameterType="map" resultType="camelCaseLinkedMap">
|
|
|
|
<select id="selectParkingJudgeResultList" parameterType="map" resultType="camelCaseLinkedMap">
|
|
|
@ -147,8 +154,8 @@
|
|
|
|
, min_userinfo MU
|
|
|
|
, min_userinfo MU
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
WHERE MS.ms_maincode = MSU.msu_maincode
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_chasu = #{msChasu}
|
|
|
|
AND MS.ms_sdate >= #{msSdate}
|
|
|
|
AND MS.ms_sdate = #{msSdate}
|
|
|
|
AND MS.ms_edate <= #{msEdate}
|
|
|
|
AND MS.ms_edate = #{msEdate}
|
|
|
|
AND MS.ms_seq in (
|
|
|
|
AND MS.ms_seq in (
|
|
|
|
<foreach collection="seqList" item="seq" separator=",">
|
|
|
|
<foreach collection="seqList" item="seq" separator=",">
|
|
|
|
#{seq}
|
|
|
|
#{seq}
|
|
|
@ -163,7 +170,7 @@
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
AND MSU.msu_team = #{msuTeam}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
AND MSU.msu_userid = MU.userid
|
|
|
|
ORDER BY MSU.msu_userid, MU.name, MS.ms_seq, MS.ms_carnum
|
|
|
|
ORDER BY MSU.msu_userid, MU.name, MS.ms_maincode, MS.ms_seq, MS.ms_carnum
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
<select id="selectParkingJudgeResultList2" parameterType="map" resultType="camelCaseLinkedMap">
|
|
|
|
<select id="selectParkingJudgeResultList2" parameterType="map" resultType="camelCaseLinkedMap">
|
|
|
|