更新
This commit is contained in:
parent
965dfb6d97
commit
a7c59b0b77
@ -691,4 +691,9 @@ public class UrlAndCateController {
|
||||
}
|
||||
return JSONObject.toJSONString(result);
|
||||
}
|
||||
|
||||
@RequestMapping("/selectName")
|
||||
public String selectName(int id){
|
||||
return urlCateListService.selectName(id);
|
||||
}
|
||||
}
|
||||
|
@ -36,4 +36,6 @@ public interface UrlCateListDao {
|
||||
|
||||
public List<String> selectChildrenByCateId(Integer id);
|
||||
|
||||
public String selectName(int id);
|
||||
|
||||
}
|
@ -28,4 +28,5 @@ public interface UrlCateListService {
|
||||
|
||||
public HashMap<String, Object> countAllCateByUser(UrlCateList urlCateList);
|
||||
|
||||
public String selectName(int id);
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.lovenav.service.serviceImpl;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson2.JSONArray;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.lovenav.dao.UrlCateListDao;
|
||||
@ -167,4 +168,9 @@ public class UrlCateListServiceImpl implements UrlCateListService {
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
public String selectName(int id){
|
||||
String name = urlCateListDao.selectName(id);
|
||||
return JSON.toJSONString(name);
|
||||
}
|
||||
}
|
||||
|
@ -196,7 +196,7 @@
|
||||
where root_comment_id = 0 and comment_status = 0
|
||||
</select>
|
||||
|
||||
<select id="selectByAllReply" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<select id="selectByAllReply" resultMap="BaseResultMap">
|
||||
select
|
||||
*
|
||||
from ln_comment
|
||||
|
@ -195,4 +195,8 @@
|
||||
ico = #{ico,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<select id="selectName" parameterType="java.lang.Integer" resultType="java.lang.String">
|
||||
select name from ln_url_cate_list where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user