| @@ -15,6 +15,8 @@ public interface WxWeappCodeStatusMapper extends CommonMapper<WxWeappCodeStatus, | |||||
| List<Map> findUserVersions(); | List<Map> findUserVersions(); | ||||
| void updateCodeCommitStatus(WxWeappCodeStatus weappCodeStatus); | |||||
| @@ -71,7 +71,7 @@ public class WxWeappCodeStatusServiceImpl implements WxWeappCodeStatusService { | |||||
| } else { | } else { | ||||
| record.setUpdateTime(curDate); | record.setUpdateTime(curDate); | ||||
| logger.info("CODE-COMMIT: " + record.toString()); | logger.info("CODE-COMMIT: " + record.toString()); | ||||
| wxWeappCodeStatusMapper.updateByPrimaryKey(record); | |||||
| wxWeappCodeStatusMapper.updateCodeCommitStatus(record); | |||||
| } | } | ||||
| } | } | ||||
| @@ -80,7 +80,7 @@ public class WxWeappCodeStatusServiceImpl implements WxWeappCodeStatusService { | |||||
| Date curDate = new Date(); | Date curDate = new Date(); | ||||
| record.setUpdateTime(curDate); | record.setUpdateTime(curDate); | ||||
| logger.info("CODE-COMMIT: " + record.toString()); | logger.info("CODE-COMMIT: " + record.toString()); | ||||
| wxWeappCodeStatusMapper.updateByPrimaryKey(record); | |||||
| wxWeappCodeStatusMapper.updateCodeCommitStatus(record); | |||||
| } | } | ||||
| @Override | @Override | ||||
| @@ -70,6 +70,13 @@ | |||||
| <include refid="dynamicWhereConditions" /> | <include refid="dynamicWhereConditions" /> | ||||
| </select> | </select> | ||||
| <update id="updateCodeCommitStatus" parameterType="com.iformall.domain.po.WxWeappCodeStatus" > | |||||
| update wx_weapp_code_status | |||||
| set `user_version` = #{userVersion}, `code_status` = #{codeStatus}, `code_err_code` = #{codeErrCode}, `code_time` = #{codeTime}, `update_time` = #{updateTime}, | |||||
| `audit_status` = null, `audit_err_code` = null, `audit_time` = null, `release_status` = null, `release_err_code` = null, `release_time` = null | |||||
| where `app_id` = #{appId} and `type` = #{type} | |||||
| </update> | |||||
| <resultMap id="VBaseResultMap" type="com.iformall.domain.vo.WxWeappCodeStatusVo"> | <resultMap id="VBaseResultMap" type="com.iformall.domain.vo.WxWeappCodeStatusVo"> | ||||
| <id column="id" jdbcType="BIGINT" property="id" /> | <id column="id" jdbcType="BIGINT" property="id" /> | ||||