|
|
@@ -46,6 +46,9 @@
|
|
|
<result column="user_id" property="userId"/>
|
|
|
<result column="czlc" property="czlc"/>
|
|
|
<result column="ctl" property="ctl"/>
|
|
|
+ <result column="gyq_number" property="gyqNumber"/>
|
|
|
+ <result column="scz" property="scz"/>
|
|
|
+ <result column="wsjbjsd" property="wsjbjsd"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
@@ -495,11 +498,10 @@
|
|
|
<select id="getJcebList" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>, dict.dict_label as xingbie_text,
|
|
|
- base.czlc as czlc, '>36' as ctl
|
|
|
- FROM bus_jcb_dmcgyq t
|
|
|
+ t.czlc as czlc, '>36' as ctl, t.gyq_number, t.scz
|
|
|
+ FROM v_jcb_dmcgyq t
|
|
|
LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
|
|
|
LEFT JOIN sys_dict_data dict ON (t.xingbie = dict.dict_value AND dict.dict_type = 'xingbie')
|
|
|
- LEFT JOIN base_dmcgyq base ON t.gyq_id = base.id
|
|
|
<where>
|
|
|
t.del_flag='0' and t.submit_state = '9'
|
|
|
<if test="submitState!=null and submitState!=''">
|
|
|
@@ -545,7 +547,8 @@
|
|
|
<select id="getListByType" resultMap="JcabResultMap">
|
|
|
SELECT t.id, v.dept_name, v.station_name, t.check_date, t.check_user, #{jcebType} as jcebType,
|
|
|
#{jcebTypeText} as jcebTypeText
|
|
|
- FROM bus_jcb_dmcgyq t
|
|
|
+ , t.czlc as czlc, '>36' as ctl, t.gyq_number, t.scz
|
|
|
+ FROM v_jcb_dmcgyq t
|
|
|
LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
|
|
|
<where>
|
|
|
t.del_flag='0'
|
|
|
@@ -586,7 +589,7 @@
|
|
|
|
|
|
<select id="getCountByType" resultMap="JcabCountResultMap">
|
|
|
SELECT count(*) c, max(t.check_date) as check_date
|
|
|
- FROM bus_jcb_dmcgyq t
|
|
|
+ FROM v_jcb_dmcgyq t
|
|
|
LEFT JOIN v_station v on t.dept_station_id = v.dept_station_id
|
|
|
<where>
|
|
|
t.del_flag='0'
|