| | |
| | | where commander_id = #{commanderId} and state = '1' |
| | | </select> |
| | | |
| | | <select id="selectArdAppApplicationBySoilderIdTrue" parameterType="java.lang.String" resultType="java.util.Map"> |
| | | select aaa.soilder_id as "soilderId",aaa.commander_id as "commanderId", |
| | | aaa.reason,aaa.begin,aaa.state,aaa.application_type as "applicationType", |
| | | su.user_name as "userName",su.nick_name as "nickName" from ard_app_application aaa |
| | | inner join sys_user su on aaa.commander_id = su.user_id |
| | | where soilder_id = #{soilderId} and state = '1' |
| | | </select> |
| | | |
| | | <select id="selectArdAppApplicationBySoilderIdFalse" parameterType="java.lang.String" resultType="java.util.Map"> |
| | | select aaa.soilder_id as "soilderId",aaa.commander_id as "commanderId", |
| | | aaa.reason,aaa.begin,aaa.state,aaa.application_type as "applicationType", |
| | |
| | | update ard_app_application set soilder_check = 'true' |
| | | where commander_id = #{commanderId} and soilder_id = #{soilderId} and application_type = #{applicationType} |
| | | </update> |
| | | |
| | | <select id="selectSYCarApplicationByPCIdAndSoilderId" parameterType="java.lang.String" resultType="java.util.Map"> |
| | | select aaa.soilder_id as "soilderId",aaa.commander_id as "commanderId", |
| | | aaa.reason,aaa.begin,aaa.state,aaa.application_type as "applicationType", |
| | | su.user_name as "userName",su.nick_name as "nickName" from ard_app_application aaa |
| | | inner join sys_user su on aaa.soilder_id = su.user_id |
| | | where commander_id = #{commanderId} and soilder_id = #{usersId} and application_type = 'SYCar' |
| | | </select> |
| | | |
| | | <select id="selectArdAppApplicationByCommanderIdNoCheck" parameterType="java.lang.String" resultType="java.util.Map"> |
| | | select aaa.soilder_id as "soilderId",aaa.commander_id as "commanderId", |
| | | aaa.reason,aaa.begin,aaa.state,aaa.application_type as "applicationType", |
| | | su.user_name as "userName",su.nick_name as "nickName" from ard_app_application aaa |
| | | inner join sys_user su on aaa.soilder_id = su.user_id |
| | | where commander_id = #{commanderId} |
| | | </select> |
| | | |
| | | <select id="selectArdAppApplicationBySoilderIdALL" parameterType="java.lang.String" resultType="java.util.Map"> |
| | | select aaa.soilder_id as "soilderId",aaa.commander_id as "commanderId", |
| | | aaa.reason,aaa.begin,aaa.state,aaa.application_type as "applicationType", |
| | | su.user_name as "userName",su.nick_name as "nickName" from ard_app_application aaa |
| | | inner join sys_user su on aaa.commander_id = su.user_id |
| | | where soilder_id = #{soilderId} |
| | | </select> |
| | | </mapper> |