| | |
| | | |
| | | <!-- 查询应用信息(Business) add by wuxw 2018-07-03 --> |
| | | <select id="getBusinessAppInfo" parameterType="Map" resultType="Map"> |
| | | select t.operate,t.app_id,t.app_id appId,t.black_list_ip,t.black_list_ip blackListIp,t.name,t.security_code,t.security_code securityCode,t.remark,t.user_id,t.user_id userId,t.while_list_ip,t.while_list_ip whileListIp |
| | | select t.operate,t.app_id,t.app_id appId,t.black_list_ip,t.black_list_ip blackListIp,t.name,t.security_code,t.security_code securityCode,t.remark,t.while_list_ip,t.while_list_ip whileListIp |
| | | from business_app t |
| | | where 1 =1 |
| | | <if test="operate !=null and operate != ''"> |
| | |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="userId !=null and userId != ''"> |
| | | and t.user_id= #{userId} |
| | | </if> |
| | | |
| | | <if test="whileListIp !=null and whileListIp != ''"> |
| | | and t.while_list_ip= #{whileListIp} |
| | | </if> |
| | |
| | | <!-- 保存应用信息至 instance表中 add by wuxw 2018-07-03 --> |
| | | <insert id="saveAppInfoInstance" parameterType="Map"> |
| | | insert into c_app( |
| | | app_id,black_list_ip,name,security_code,remark,status_cd,user_id,while_list_ip |
| | | ) select t.app_id,t.black_list_ip,t.name,t.security_code,t.remark,'0',t.user_id,t.while_list_ip from business_app t where 1=1 |
| | | app_id,black_list_ip,name,security_code,remark,status_cd,while_list_ip |
| | | ) select t.app_id,t.black_list_ip,t.name,t.security_code,t.remark,'0',t.while_list_ip from business_app t where 1=1 |
| | | and t.operate= 'ADD' |
| | | <if test="appId !=null and appId != ''"> |
| | | and t.app_id= #{appId} |
| | |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="userId !=null and userId != ''"> |
| | | and t.user_id= #{userId} |
| | | </if> |
| | | |
| | | <if test="whileListIp !=null and whileListIp != ''"> |
| | | and t.while_list_ip= #{whileListIp} |
| | | </if> |
| | |
| | | |
| | | <!-- 查询应用信息 add by wuxw 2018-07-03 --> |
| | | <select id="getAppInfo" parameterType="Map" resultType="Map"> |
| | | select t.app_id,t.app_id appId,t.black_list_ip,t.black_list_ip blackListIp,t.name,t.security_code,t.security_code securityCode,t.remark,t.status_cd,t.status_cd statusCd,t.user_id,t.user_id userId,t.while_list_ip,t.while_list_ip whileListIp |
| | | select t.app_id,t.app_id appId,t.black_list_ip,t.black_list_ip blackListIp,t.name,t.security_code,t.security_code securityCode,t.remark,t.status_cd,t.status_cd statusCd,t.while_list_ip,t.while_list_ip whileListIp |
| | | from c_app t |
| | | where 1 =1 |
| | | <if test="appId !=null and appId != ''"> |
| | |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="userId !=null and userId != ''"> |
| | | and t.user_id= #{userId} |
| | | </if> |
| | | |
| | | <if test="whileListIp !=null and whileListIp != ''"> |
| | | and t.while_list_ip= #{whileListIp} |
| | | </if> |
| | |
| | | <if test="remark !=null and remark != ''"> |
| | | , t.remark= #{remark} |
| | | </if> |
| | | <if test="userId !=null and userId != ''"> |
| | | , t.user_id= #{userId} |
| | | </if> |
| | | |
| | | <if test="whileListIp !=null and whileListIp != ''"> |
| | | , t.while_list_ip= #{whileListIp} |
| | | </if> |
| | |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="userId !=null and userId != ''"> |
| | | and t.user_id= #{userId} |
| | | </if> |
| | | |
| | | <if test="whileListIp !=null and whileListIp != ''"> |
| | | and t.while_list_ip= #{whileListIp} |
| | | </if> |