| @@ -1,6 +1,6 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.iformall.mapper.WxWeappCodeStatusMapper"> | |||||
| <mapper namespace="com.iformall.mapper.WxWeappAuditStatusMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxWeappAuditStatus"> | <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxWeappAuditStatus"> | ||||
| <id column="id" jdbcType="BIGINT" property="id" /> | <id column="id" jdbcType="BIGINT" property="id" /> | ||||
| <result column="app_id" jdbcType="VARCHAR" property="appId" /> | <result column="app_id" jdbcType="VARCHAR" property="appId" /> | ||||
| @@ -14,8 +14,7 @@ | |||||
| </resultMap> | </resultMap> | ||||
| <sql id="allColumns"> | <sql id="allColumns"> | ||||
| `id`,`app_id`,`type`,`user_version`,`version_desc`, | |||||
| `audit_status`,`audit_err_code`,`audit_time` | |||||
| `id`,`app_id`,`type`,`user_version`,`version_desc`, `audit_status`,`audit_err_code`,`audit_time` | |||||
| </sql> | </sql> | ||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| @@ -56,6 +55,13 @@ | |||||
| <include refid="dynamicWhereConditions" /> | <include refid="dynamicWhereConditions" /> | ||||
| </select> | </select> | ||||
| <update id="updateStatus" parameterType="com.iformall.domain.po.WxWeappReleaseStatus" > | |||||
| update wx_weapp_audit_status | |||||
| set `user_version` = #{userVersion}, `version_desc` = #{versionDesc}, | |||||
| `audit_status` = #{auditStatus}, `audit_err_code` = #{auditErrCode}, `audit_time` = #{auditTime} | |||||
| where `app_id` = #{appId} and `type` = #{type} | |||||
| </update> | |||||
| <resultMap id="VBaseResultMap" type="com.iformall.domain.vo.WxWeappAuditStatusVo"> | <resultMap id="VBaseResultMap" type="com.iformall.domain.vo.WxWeappAuditStatusVo"> | ||||
| <id column="id" jdbcType="BIGINT" property="id" /> | <id column="id" jdbcType="BIGINT" property="id" /> | ||||
| <result column="app_id" jdbcType="VARCHAR" property="appId" /> | <result column="app_id" jdbcType="VARCHAR" property="appId" /> | ||||
| @@ -13,21 +13,17 @@ | |||||
| </resultMap> | </resultMap> | ||||
| <sql id="allColumns"> | <sql id="allColumns"> | ||||
| `id`,`app_id`,`name`,`type`,`user_version`,`version_desc`, | |||||
| `code_status`,`code_err_code`,`code_time` | |||||
| `id`,`app_id`,`type`,`user_version`,`version_desc`,`code_status`,`code_err_code`,`code_time` | |||||
| </sql> | </sql> | ||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | |||||
| where 1 = 1 | |||||
| <if test=" null != id "> | <if test=" null != id "> | ||||
| and `id` = #{id} | and `id` = #{id} | ||||
| </if> | </if> | ||||
| <if test=" null != appId "> | <if test=" null != appId "> | ||||
| and `app_id` = #{appId} | and `app_id` = #{appId} | ||||
| </if> | </if> | ||||
| <if test=" null != name "> | |||||
| and `name` = #{appId} | |||||
| </if> | |||||
| <if test=" null != type "> | <if test=" null != type "> | ||||
| and `type` = #{type} | and `type` = #{type} | ||||
| </if> | </if> | ||||
| @@ -36,6 +32,7 @@ | |||||
| </if> | </if> | ||||
| <if test=" null != codeStatus "> | <if test=" null != codeStatus "> | ||||
| and `code_status` = #{codeStatus} | and `code_status` = #{codeStatus} | ||||
| </if> | |||||
| <if test=" null != codeTime "> | <if test=" null != codeTime "> | ||||
| and `code_time` = #{codeTime} | and `code_time` = #{codeTime} | ||||
| </if> | </if> | ||||
| @@ -55,7 +52,7 @@ | |||||
| <update id="updateStatus" parameterType="com.iformall.domain.po.WxWeappCodeStatus" > | <update id="updateStatus" parameterType="com.iformall.domain.po.WxWeappCodeStatus" > | ||||
| update wx_weapp_code_status | update wx_weapp_code_status | ||||
| set `user_version` = #{userVersion}, `version_desc`= #{versionDesc} | |||||
| set `user_version` = #{userVersion}, `version_desc`= #{versionDesc}, | |||||
| `code_status` = #{codeStatus}, `code_err_code` = #{codeErrCode}, `code_time` = #{codeTime} | `code_status` = #{codeStatus}, `code_err_code` = #{codeErrCode}, `code_time` = #{codeTime} | ||||
| where `app_id` = #{appId} and `type` = #{type} | where `app_id` = #{appId} and `type` = #{type} | ||||
| </update> | </update> | ||||
| @@ -74,9 +71,7 @@ | |||||
| </resultMap> | </resultMap> | ||||
| <sql id="allVoColumns"> | <sql id="allVoColumns"> | ||||
| c.`id`,c.`app_id`,c.`type`,c.`user_version`,c.`version_desc` | |||||
| c.`code_status`,c.`code_err_code`,c.`code_time` | |||||
| a.`name` | |||||
| c.`id`,c.`app_id`,c.`type`,c.`user_version`,c.`version_desc`,c.`code_status`,c.`code_err_code`,c.`code_time`, a.`name` | |||||
| </sql> | </sql> | ||||
| <sql id="dynamicVoWhereConditions"> | <sql id="dynamicVoWhereConditions"> | ||||
| @@ -1,6 +1,6 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.iformall.mapper.WxWeappCodeStatusMapper"> | |||||
| <mapper namespace="com.iformall.mapper.WxWeappReleaseStatusMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxWeappReleaseStatus"> | <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxWeappReleaseStatus"> | ||||
| <id column="id" jdbcType="BIGINT" property="id" /> | <id column="id" jdbcType="BIGINT" property="id" /> | ||||
| <result column="app_id" jdbcType="VARCHAR" property="appId" /> | <result column="app_id" jdbcType="VARCHAR" property="appId" /> | ||||
| @@ -13,8 +13,7 @@ | |||||
| </resultMap> | </resultMap> | ||||
| <sql id="allColumns"> | <sql id="allColumns"> | ||||
| `id`,`app_id`,`type`,`user_version`,`version_desc`, | |||||
| `release_status`,`release_err_code`,`release_time` | |||||
| `id`,`app_id`,`type`,`user_version`,`version_desc`,`release_status`,`release_err_code`,`release_time` | |||||
| </sql> | </sql> | ||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| @@ -53,8 +52,8 @@ | |||||
| <update id="updateStatus" parameterType="com.iformall.domain.po.WxWeappReleaseStatus" > | <update id="updateStatus" parameterType="com.iformall.domain.po.WxWeappReleaseStatus" > | ||||
| update wx_weapp_release_status | update wx_weapp_release_status | ||||
| set `user_version` = #{userVersion}, | |||||
| `release_status` = null, `release_err_code` = null, `release_time` = null | |||||
| set `user_version` = #{userVersion}, `version_desc` = #{versionDesc}, | |||||
| `release_status` = #{releaseStatus}, `release_err_code` = #{releaseErrCode}, `release_time` = #{releaseTime} | |||||
| where `app_id` = #{appId} and `type` = #{type} | where `app_id` = #{appId} and `type` = #{type} | ||||
| </update> | </update> | ||||