Commit af354fc7 by wangming

Merge branch '105' into 'master'

105

See merge request !18
2 parents 5c435197 b0d97c4e
......@@ -301,8 +301,9 @@ public class ClassController extends BaseController {
*/
@ResponseBody
@RequestMapping(value = "/selectSecondClassList", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json")
public Map<String,Object> selectSecondClassList(@RequestParam(defaultValue = "-1")Integer type,@RequestParam(defaultValue = "")String name,@RequestParam(defaultValue = "1") Integer pageNo, @RequestParam(defaultValue = "1") Integer pageSize) {
public Map<String,Object> selectSecondClassList(long id,@RequestParam(defaultValue = "-1")Integer type,@RequestParam(defaultValue = "")String name,@RequestParam(defaultValue = "1") Integer pageNo, @RequestParam(defaultValue = "1") Integer pageSize) {
Map paramMap = new HashMap<>();
paramMap.put("id",id);
if(!("").equals(name)){
paramMap.put("name","%"+name+"%");
}
......
......@@ -115,6 +115,7 @@
t_base_second_class t
WHERE
t.`status` = 1
AND first_id = #{id,jdbcType=BIGINT}
<if test="type != null">
AND t.type = #{type,jdbcType=INTEGER}
</if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!