| | |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="minAppId" column="min_app_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysClientAppVo"> |
| | | select app_id, client_name, app_key, security_key, valid_start_time, valid_end_time, status, del_flag, create_by, create_time, update_by, update_time, remark from sys_client_app |
| | | select app_id, client_name, app_key, security_key, valid_start_time, valid_end_time, status, del_flag, create_by, create_time, update_by, update_time, remark, min_app_id from sys_client_app |
| | | </sql> |
| | | |
| | | <select id="selectSysClientAppList" parameterType="SysClientApp" resultMap="SysClientAppResult"> |
| | |
| | | where app_id = #{appId} |
| | | </select> |
| | | |
| | | <select id="selectSysClientAppByAppKey" parameterType="String" resultMap="SysClientAppResult"> |
| | | <include refid="selectSysClientAppVo"/> |
| | | where app_key = #{appKey} and del_flag = '0' |
| | | </select> |
| | | |
| | | <insert id="insertSysClientApp" parameterType="SysClientApp" useGeneratedKeys="true" keyProperty="appId"> |
| | | insert into sys_client_app |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="remark != null">remark,</if> |
| | | <if test="minAppId != null">min_app_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="clientName != null">#{clientName},</if> |
| | |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="minAppId != null">#{minAppId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="validEndTime != null">valid_end_time = #{validEndTime},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="minAppId != null">min_app_id = #{minAppId},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |