| | |
| | | <result property="strategyName" column="STRATEGY_NAME" jdbcType="VARCHAR"/> |
| | | <result property="minPwdLen" column="MIN_PWD_LEN" jdbcType="VARCHAR"/> |
| | | <result property="maxPwdLen" column="MAX_PWD_LEN" jdbcType="VARCHAR"/> |
| | | <result property="combinationIds" column="COMBINATION " jdbcType="VARCHAR"/> |
| | | <result property="combinationIds" column="COMBINATION_IDS" jdbcType="VARCHAR"/> |
| | | <result property="requiredType" column="REQUIRED_TYPE" jdbcType="VARCHAR"/> |
| | | <result property="expirationTime" column="EXPIRATION_TIME" jdbcType="TIMESTAMP"/> |
| | | <result property="reminderTime" column="REMINDER_TIME" jdbcType="TIMESTAMP"/> |
| | |
| | | <result property="updateTime" column="UPDATE_TIME" jdbcType="TIMESTAMP"/> |
| | | <result property="updateUser" column="UPDATE_USER" jdbcType="TIMESTAMP"/> |
| | | <result property="combinationNames" column="COMBINATIONNAMES"/> |
| | | <result property="regex" column="REGEX"/> |
| | | </resultMap> |
| | | |
| | | <!--查询指定行数据--> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <!--通过主键修改数据--> |
| | | <!--<update id="update"> |
| | | update PL_SYS_STRATEGY |
| | | <set> |
| | | <if test="strategyName != null and strategyName != ''"> |
| | | STRATEGY_NAME = #{strategyName}, |
| | | </if> |
| | | <if test="minPwdLen != null and minPwdLen != ''"> |
| | | MIN_PWD_LEN = #{minPwdLen}, |
| | | </if> |
| | | <if test="maxPwdLen != null and maxPwdLen != ''"> |
| | | MAX_PWD_LEN = #{maxPwdLen}, |
| | | </if> |
| | | <if test="combination != null and combination != ''"> |
| | | COMBINATION = #{combination }, |
| | | </if> |
| | | <if test="requiredType != null and requiredType != ''"> |
| | | REQUIRED_TYPE = #{requiredType}, |
| | | </if> |
| | | <if test="expirationTime != null"> |
| | | EXPIRATION_TIME = #{expirationTime}, |
| | | </if> |
| | | <if test="reminderTime != null"> |
| | | REMINDER_TIME = #{reminderTime}, |
| | | </if> |
| | | <if test="lockingNum != null and lockingNum != ''"> |
| | | LOCKING_NUM = #{lockingNum}, |
| | | </if> |
| | | <if test="lockingTime != null"> |
| | | LOCKING_TIME = #{lockingTime}, |
| | | </if> |
| | | <if test="desc != null and desc != ''"> |
| | | DESC = #{desc}, |
| | | </if> |
| | | <if test="isDefault != null and isDefault != ''"> |
| | | IS_DEFAULT = #{isDefault}, |
| | | </if> |
| | | <if test="createDate != null"> |
| | | CREATE_DATE = #{createDate}, |
| | | </if> |
| | | <if test="createUser != null"> |
| | | CREATE_USER = #{createUser}, |
| | | </if> |
| | | <if test="updateDate != null"> |
| | | UPDATE_DATE = #{updateDate}, |
| | | </if> |
| | | <if test="updateUser != null"> |
| | | UPDATE_USER = #{updateUser}, |
| | | </if> |
| | | </set> |
| | | where ID = #{id} |
| | | </update> |
| | | |
| | | <!–通过主键删除–> |
| | | <delete id="deleteById"> |
| | | delete from PL_SYS_STRATEGY where ID = #{id} |
| | | </delete>--> |
| | | <select id="queryByNameAndTenantId" resultMap="StrategyMap"> |
| | | SELECT PSS.* FROM PL_SYS_STRATEGY PSS |
| | | LEFT JOIN PL_SYS_USER_PWDSTRATEGY PSUP ON PSS.ID=PSUP.PWDSTRATEGY_ID |
| | | LEFT JOIN PL_ORG_USER POU ON POU.ID=PSUP.USER_ID |
| | | WHERE POU.TENANT_ID = #{tenantId} AND POU.NAME=#{name}; |
| | | </select> |
| | | |
| | | <select id="queryByUserId" resultMap="StrategyMap"> |
| | | SELECT PSS.* FROM PL_SYS_STRATEGY PSS LEFT JOIN PL_SYS_USER_PWDSTRATEGY PSUP ON PSS.ID=psup.PWDSTRATEGY_ID |
| | | WHERE PSUP.USER_ID = #{userId} |
| | | </select> |
| | | |
| | | </mapper> |
| | | |