|
|
@@ -103,7 +103,7 @@
|
|
|
</if>
|
|
|
order by warehouseId, areaStaffId desc
|
|
|
</select>
|
|
|
- <select id="selectUnVerified" resultType="com.yr.warehouse.admin.driver.data.DriverOnRouteAccountRecordMain" parameterType="java.util.List">
|
|
|
+ <select id="selectUnVerified" resultType="com.yr.warehouse.admin.driver.data.DriverOnRouteAccountRecordMain">
|
|
|
select
|
|
|
<include refid="Base_As_Column_List">
|
|
|
<property name="column" value="do1"/>
|
|
|
@@ -112,12 +112,13 @@
|
|
|
INNER JOIN (
|
|
|
SELECT areaStaffId, max(id) as lastId from yr_driver_on_route_account_record_main
|
|
|
where isDelete = 'NORMAL'
|
|
|
- <if test="areaStaffIds != null and areaStaffIds.size > 0">
|
|
|
- and areaStaffId in
|
|
|
- <foreach collection="areaStaffIds" item="item" open="(" separator="," close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
+ and statDate between #{beginStatDate} and #{endStatDate}
|
|
|
+ <if test="areaStaffIds != null and areaStaffIds.size > 0">
|
|
|
+ and areaStaffId in
|
|
|
+ <foreach collection="areaStaffIds" item="item" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
GROUP BY areaStaffId
|
|
|
) as do2 ON do1.areaStaffId = do2.areaStaffId and do1.id = do2.lastId
|
|
|
WHERE do1.status = 'UN_VERIFIED' and do1.isDelete = 'NORMAL'
|