feat(config): 更新配置文件和培训用户添加命令
parent
2120e28698
commit
801f5ec66c
|
|
@ -17,10 +17,13 @@
|
|||
|
||||
<select id="listAllByPhones" resultType="com.zcloud.edu.persistence.dataobject.TrainingUserDO">
|
||||
select
|
||||
phone,
|
||||
start_time,
|
||||
end_time,
|
||||
case when start_time < now() and end_time > now() then 1 else 0 end stateFlag
|
||||
tu.phone,
|
||||
tu.start_time,
|
||||
tu.end_time,
|
||||
case when tu.start_time < now() and tu.end_time > now() then 1 else 0 end stateFlag
|
||||
from training_user tu
|
||||
inner join (
|
||||
select phone, max(id) id
|
||||
from training_user
|
||||
<where>
|
||||
delete_enum = 'false'
|
||||
|
|
@ -31,6 +34,17 @@
|
|||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
group by phone
|
||||
) latest on latest.id = tu.id
|
||||
<where>
|
||||
tu.delete_enum = 'false'
|
||||
<if test="params.phones != null">
|
||||
and tu.phone in
|
||||
<foreach item="phone" collection="params.phones" open="(" separator="," close=")">
|
||||
#{phone}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="listEduUserPage" resultType="com.zcloud.edu.persistence.dataobject.TrainingUserDO">
|
||||
|
|
|
|||
Loading…
Reference in New Issue