| @@ -5,6 +5,7 @@ import com.iformall.domain.po.WxWeappCodeStatus; | |||||
| import com.iformall.domain.vo.WxWeappCodeStatusVo; | import com.iformall.domain.vo.WxWeappCodeStatusVo; | ||||
| import java.util.List; | import java.util.List; | ||||
| import java.util.Map; | |||||
| public interface WxWeappCodeStatusMapper extends CommonMapper<WxWeappCodeStatus, Long> { | public interface WxWeappCodeStatusMapper extends CommonMapper<WxWeappCodeStatus, Long> { | ||||
| @@ -12,7 +13,7 @@ public interface WxWeappCodeStatusMapper extends CommonMapper<WxWeappCodeStatus, | |||||
| List<WxWeappCodeStatusVo> findVoList(WxWeappCodeStatusVo weappCodeStatusVo); | List<WxWeappCodeStatusVo> findVoList(WxWeappCodeStatusVo weappCodeStatusVo); | ||||
| List<String> findUserVersions(); | |||||
| List<Map> findUserVersions(); | |||||
| @@ -5,6 +5,7 @@ import com.iformall.domain.po.WxWeappCodeStatus; | |||||
| import com.iformall.domain.vo.WxWeappCodeStatusVo; | import com.iformall.domain.vo.WxWeappCodeStatusVo; | ||||
| import java.util.List; | import java.util.List; | ||||
| import java.util.Map; | |||||
| public interface WxWeappCodeStatusService { | public interface WxWeappCodeStatusService { | ||||
| @@ -31,7 +32,7 @@ public interface WxWeappCodeStatusService { | |||||
| * | * | ||||
| * @return | * @return | ||||
| */ | */ | ||||
| List<String> getVersionList(); | |||||
| List<Map> getVersionList(); | |||||
| /** | /** | ||||
| * 根据Id获得实体 | * 根据Id获得实体 | ||||
| @@ -14,6 +14,7 @@ import org.springframework.stereotype.Service; | |||||
| import java.util.Date; | import java.util.Date; | ||||
| import java.util.List; | import java.util.List; | ||||
| import java.util.Map; | |||||
| @Service | @Service | ||||
| public class WxWeappCodeStatusServiceImpl implements WxWeappCodeStatusService { | public class WxWeappCodeStatusServiceImpl implements WxWeappCodeStatusService { | ||||
| @@ -36,7 +37,7 @@ public class WxWeappCodeStatusServiceImpl implements WxWeappCodeStatusService { | |||||
| } | } | ||||
| @Override | @Override | ||||
| public List<String> getVersionList() { | |||||
| public List<Map> getVersionList() { | |||||
| return wxWeappCodeStatusMapper.findUserVersions(); | return wxWeappCodeStatusMapper.findUserVersions(); | ||||
| } | } | ||||
| @@ -147,8 +147,8 @@ | |||||
| <include refid="dynamicVoWhereConditions" /> | <include refid="dynamicVoWhereConditions" /> | ||||
| </select> | </select> | ||||
| <select id="findUserVersions" parameterType="string" resultType="string"> | |||||
| select user_version | |||||
| <select id="findUserVersions" parameterType="string" resultType="hashmap" > | |||||
| select user_version as version | |||||
| from wx_weapp_code_status | from wx_weapp_code_status | ||||
| group by user_version | group by user_version | ||||
| </select> | </select> | ||||
| @@ -515,7 +515,7 @@ public class WxWeappInfoController extends BaseController { | |||||
| @GetMapping("versionList") | @GetMapping("versionList") | ||||
| public ResultData getVersionList() { | public ResultData getVersionList() { | ||||
| logger.debug("[" + getIpAddr() + "] WxWeappInfoController::versionList"); | logger.debug("[" + getIpAddr() + "] WxWeappInfoController::versionList"); | ||||
| final List<String> list = weappCodeStatusService.getVersionList(); | |||||
| final List<Map> list = weappCodeStatusService.getVersionList(); | |||||
| return new ResultData(list); | return new ResultData(list); | ||||
| } | } | ||||