| @@ -10,6 +10,8 @@ public interface WxAuthorizerInfoMapper extends CommonMapper<WxAuthorizerInfo, L | |||||
| List<WxAuthorizerInfo> findList(WxAuthorizerInfo wxAuthorizerInfo); | List<WxAuthorizerInfo> findList(WxAuthorizerInfo wxAuthorizerInfo); | ||||
| List<WxWeappInfo> findVoList(WxWeappInfo wxWeappInfo); | List<WxWeappInfo> findVoList(WxWeappInfo wxWeappInfo); | ||||
| void updateReleaseInfo(WxAuthorizerInfo wxAuthorizerInfo); | |||||
| @@ -99,10 +99,12 @@ public class WxWeappCodeStatusServiceImpl implements WxWeappCodeStatusService { | |||||
| // 更新 小程序 状态 | // 更新 小程序 状态 | ||||
| if(record.getReleaseStatus().equals(0)) { // 发布成功 | if(record.getReleaseStatus().equals(0)) { // 发布成功 | ||||
| WxAuthorizerInfo updateInfo = new WxAuthorizerInfo(); | WxAuthorizerInfo updateInfo = new WxAuthorizerInfo(); | ||||
| updateInfo.setAuthorizerAppid(record.getAppId()); | |||||
| updateInfo.setCurrentVersion(record.getUserVersion()); | updateInfo.setCurrentVersion(record.getUserVersion()); | ||||
| updateInfo.setCurrentDesc(record.getVersionDesc()); | updateInfo.setCurrentDesc(record.getVersionDesc()); | ||||
| updateInfo.setReleaseTime(curDate); | |||||
| updateInfo.setUpdateTime(curDate); | updateInfo.setUpdateTime(curDate); | ||||
| wxAuthorizerInfoMapper.updateByPrimaryKeySelective(updateInfo); | |||||
| wxAuthorizerInfoMapper.updateReleaseInfo(updateInfo); | |||||
| } | } | ||||
| } | } | ||||
| @@ -72,6 +72,12 @@ | |||||
| <include refid="dynamicWhereConditions" /> | <include refid="dynamicWhereConditions" /> | ||||
| </select> | </select> | ||||
| <update id="updateReleaseInfo" parameterType="com.iformall.domain.po.WxAuthorizerInfo" > | |||||
| update wx_authorizer_info | |||||
| set `current_version` = #{currentVersion}, `current_desc` = #{currentDesc}, `release_time` = #{releaseTime}, `update_time` = ${updateTime} | |||||
| where `authorizer_appid` = #{authorizerAppid} | |||||
| </update> | |||||
| <resultMap id="VBaseResultMap" type="com.iformall.domain.vo.WxWeappInfo"> | <resultMap id="VBaseResultMap" type="com.iformall.domain.vo.WxWeappInfo"> | ||||
| <id column="id" jdbcType="BIGINT" property="id" /> | <id column="id" jdbcType="BIGINT" property="id" /> | ||||