Commit e91c7cb0 by wangqi

经验交流

parent 2e614f83
...@@ -181,6 +181,7 @@ public class JygxWzglController extends BaseController ...@@ -181,6 +181,7 @@ public class JygxWzglController extends BaseController
/** /**
*数据置顶 *数据置顶
*/ */
@PreAuthorize("@ss.hasPermi('system:wzgl:getwzzd')")
@GetMapping("/getwzzd") @GetMapping("/getwzzd")
public AjaxResult getwzzd(JygxWzgl jygxWzgl) public AjaxResult getwzzd(JygxWzgl jygxWzgl)
{ {
...@@ -191,6 +192,7 @@ public class JygxWzglController extends BaseController ...@@ -191,6 +192,7 @@ public class JygxWzglController extends BaseController
*取消置顶 *取消置顶
*/ */
@GetMapping("/getqxzd") @GetMapping("/getqxzd")
@PreAuthorize("@ss.hasPermi('system:wzgl:getwzzd')")
public AjaxResult getqxzd(JygxWzgl jygxWzgl) public AjaxResult getqxzd(JygxWzgl jygxWzgl)
{ {
return toAjax(jygxWzglService.updateqxzd(jygxWzgl)); return toAjax(jygxWzglService.updateqxzd(jygxWzgl));
......
...@@ -96,6 +96,8 @@ public class JygxWzgl extends BaseEntity ...@@ -96,6 +96,8 @@ public class JygxWzgl extends BaseEntity
@Excel(name = "阅读数量") @Excel(name = "阅读数量")
private Long ydsl; private Long ydsl;
private String mkmc;
/** 文章管理附件 */ /** 文章管理附件 */
@Excel(name = "文章管理附件") @Excel(name = "文章管理附件")
...@@ -310,4 +312,12 @@ public class JygxWzgl extends BaseEntity ...@@ -310,4 +312,12 @@ public class JygxWzgl extends BaseEntity
.append("ydsl", getYdsl()) .append("ydsl", getYdsl())
.toString(); .toString();
} }
public String getMkmc() {
return mkmc;
}
public void setMkmc(String mkmc) {
this.mkmc = mkmc;
}
} }
...@@ -29,6 +29,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -29,6 +29,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="ydsl" column="ydsl" /> <result property="ydsl" column="ydsl" />
<result property="mkmc" column="mkmc" />
</resultMap> </resultMap>
<resultMap type="Ssfl" id="SsflResult"> <resultMap type="Ssfl" id="SsflResult">
<result property="lxmc" column="lxmc" /> <result property="lxmc" column="lxmc" />
...@@ -36,85 +38,88 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -36,85 +38,88 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectJygxWzglVo"> <sql id="selectJygxWzglVo">
select wzid, px, xxly, lxid, lxmc, wznr, wzbt, shzt, fjmc, fjdz, fjlx, wzzz, wzsj, dept_id, yl2, yl3, yl4, yl5, create_by, create_time, update_by, update_time, remark, ydsl from jygx_wzgl d select d.wzid, d.px, d.xxly, d.lxid, d.lxmc, d.wznr, d.wzbt, d.shzt, d.fjmc, d.fjdz, d.fjlx, d.wzzz, d.wzsj, d.dept_id,
</sql> d.yl2, d.yl3, d.yl4, d.yl5, d.create_by, d.create_time, d.update_by, d.update_time, d.remark, d.ydsl, l.mkmc
from jygx_wzgl d
left join jygx_lxwh l on d.lxmc = l.lxmc
</sql>
<select id="selectJygxWzglList" parameterType="JygxWzgl" resultMap="JygxWzglResult"> <select id="selectJygxWzglList" parameterType="JygxWzgl" resultMap="JygxWzglResult">
<include refid="selectJygxWzglVo"/> <include refid="selectJygxWzglVo"/>
<where> <where>
<if test="px != null "> and px = #{px}</if> <if test="px != null "> and d.px = #{px}</if>
<if test="xxly != null and xxly != ''"> and xxly = #{xxly}</if> <if test="xxly != null and xxly != ''"> and d.xxly = #{xxly}</if>
<if test="lxmc != null and lxmc != ''"> and lxmc = #{lxmc}</if> <if test="lxmc != null and lxmc != ''"> and d.lxmc = #{lxmc}</if>
<if test="wznr != null and wznr != ''"> and wznr = #{wznr}</if> <if test="wznr != null and wznr != ''"> and d.wznr = #{wznr}</if>
<if test="wzbt != null and wzbt != ''"> and wzbt like concat('%', #{wzbt}, '%')</if> <if test="wzbt != null and wzbt != ''"> and d.wzbt like concat('%', #{wzbt}, '%')</if>
<if test="shzt != null and shzt != ''"> and shzt = #{shzt}</if> <if test="shzt != null and shzt != ''"> and d.shzt = #{shzt}</if>
<if test="fjmc != null and fjmc != ''"> and fjmc = #{fjmc}</if> <if test="fjmc != null and fjmc != ''"> and d.fjmc = #{fjmc}</if>
<if test="fjdz != null and fjdz != ''"> and fjdz = #{fjdz}</if> <if test="fjdz != null and fjdz != ''"> and d.fjdz = #{fjdz}</if>
<if test="fjlx != null and fjlx != ''"> and fjlx = #{fjlx}</if> <if test="fjlx != null and fjlx != ''"> and d.fjlx = #{fjlx}</if>
<if test="wzzz != null and wzzz != ''"> and wzzz = #{wzzz}</if> <if test="wzzz != null and wzzz != ''"> and d.wzzz = #{wzzz}</if>
<if test="wzsj != null "> and wzsj = #{wzsj}</if> <if test="wzsj != null "> and d.wzsj = #{wzsj}</if>
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if> <if test="deptId != null and deptId != ''"> and d.dept_id = #{deptId}</if>
<if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if> <if test="yl2 != null and yl2 != ''"> and d.yl2 = #{yl2}</if>
<if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if> <if test="yl3 != null and yl3 != ''"> and d.yl3 = #{yl3}</if>
<if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if> <if test="yl4 != null and yl4 != ''"> and d.yl4 = #{yl4}</if>
<if test="yl5 != null and yl5 != ''"> and yl5 = #{yl5}</if> <if test="yl5 != null and yl5 != ''"> and d.yl5 = #{yl5}</if>
<if test="ydsl != null "> and ydsl = #{ydsl}</if> <if test="ydsl != null "> and d.ydsl = #{ydsl}</if>
and lxmc != "syxw" and d.lxmc != "syxw"
</where> </where>
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
${params.dataScope} ${params.dataScope}
ORDER BY ifnull (px,999999), wzsj desc ORDER BY ifnull (d.px,999999), d.wzsj desc
</select> </select>
<select id="selectList" parameterType="JygxWzgl" resultMap="JygxWzglResult"> <select id="selectList" parameterType="JygxWzgl" resultMap="JygxWzglResult">
<include refid="selectJygxWzglVo"/> <include refid="selectJygxWzglVo"/>
<where> <where>
<if test="px != null "> and px = #{px}</if> <if test="px != null "> and px = #{px}</if>
<if test="xxly != null and xxly != ''"> and xxly = #{xxly}</if> <if test="xxly != null and xxly != ''"> and d.xxly = #{xxly}</if>
<if test="lxmc != null and lxmc != ''"> and lxmc = #{lxmc}</if> <if test="lxmc != null and lxmc != ''"> and d.lxmc = #{lxmc}</if>
<if test="wznr != null and wznr != ''"> and wznr = #{wznr}</if> <if test="wznr != null and wznr != ''"> and d.wznr = #{wznr}</if>
<if test="wzbt != null and wzbt != ''"> and wzbt = #{wzbt}</if> <if test="wzbt != null and wzbt != ''"> and d.wzbt = #{wzbt}</if>
<if test="shzt != null and shzt != ''"> and shzt = #{shzt}</if> <if test="shzt != null and shzt != ''"> and d.shzt = #{shzt}</if>
<if test="fjmc != null and fjmc != ''"> and fjmc = #{fjmc}</if> <if test="fjmc != null and fjmc != ''"> and d.fjmc = #{fjmc}</if>
<if test="fjdz != null and fjdz != ''"> and fjdz = #{fjdz}</if> <if test="fjdz != null and fjdz != ''"> and d.fjdz = #{fjdz}</if>
<if test="fjlx != null and fjlx != ''"> and fjlx = #{fjlx}</if> <if test="fjlx != null and fjlx != ''"> and d.fjlx = #{fjlx}</if>
<if test="wzzz != null and wzzz != ''"> and wzzz = #{wzzz}</if> <if test="wzzz != null and wzzz != ''"> and d.wzzz = #{wzzz}</if>
<if test="wzsj != null "> and wzsj = #{wzsj}</if> <if test="wzsj != null "> and d.wzsj = #{wzsj}</if>
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if> <if test="deptId != null and deptId != ''"> and d.dept_id = #{deptId}</if>
<if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if> <if test="yl2 != null and yl2 != ''"> and d.yl2 = #{yl2}</if>
<if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if> <if test="yl3 != null and yl3 != ''"> and d.yl3 = #{yl3}</if>
<if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if> <if test="yl4 != null and yl4 != ''"> and d.yl4 = #{yl4}</if>
<if test="yl5 != null and yl5 != ''"> and yl5 = #{yl5}</if> <if test="yl5 != null and yl5 != ''"> and d.yl5 = #{yl5}</if>
<if test="ydsl != null "> and ydsl = #{ydsl}</if> <if test="ydsl != null "> and d.ydsl = #{ydsl}</if>
and lxmc != "syxw" and d.lxmc != "syxw"
</where> </where>
ORDER BY ifnull (px,999999), wzsj desc ORDER BY ifnull (d.px,999999), d.wzsj desc
</select> </select>
<select id="selectSylbxwList" parameterType="JygxWzgl" resultMap="JygxWzglResult"> <select id="selectSylbxwList" parameterType="JygxWzgl" resultMap="JygxWzglResult">
<include refid="selectJygxWzglVo"/> <include refid="selectJygxWzglVo"/>
<where> <where>
<if test="px != null "> and px = #{px}</if> <if test="px != null "> and d.px = #{px}</if>
<if test="xxly != null and xxly != ''"> and xxly = #{xxly}</if> <if test="xxly != null and xxly != ''"> and d.xxly = #{xxly}</if>
<if test="wznr != null and wznr != ''"> and wznr = #{wznr}</if> <if test="wznr != null and wznr != ''"> and d.wznr = #{wznr}</if>
<if test="wzbt != null and wzbt != ''"> and wzbt = #{wzbt}</if> <if test="wzbt != null and wzbt != ''"> and d.wzbt = #{wzbt}</if>
<if test="shzt != null and shzt != ''"> and shzt = #{shzt}</if> <if test="shzt != null and shzt != ''"> and d.shzt = #{shzt}</if>
<if test="fjmc != null and fjmc != ''"> and fjmc = #{fjmc}</if> <if test="fjmc != null and fjmc != ''"> and d.fjmc = #{fjmc}</if>
<if test="fjdz != null and fjdz != ''"> and fjdz = #{fjdz}</if> <if test="fjdz != null and fjdz != ''"> and d.fjdz = #{fjdz}</if>
<if test="fjlx != null and fjlx != ''"> and fjlx = #{fjlx}</if> <if test="fjlx != null and fjlx != ''"> and d.fjlx = #{fjlx}</if>
<if test="wzzz != null and wzzz != ''"> and wzzz = #{wzzz}</if> <if test="wzzz != null and wzzz != ''"> and d.wzzz = #{wzzz}</if>
<if test="wzsj != null "> and wzsj = #{wzsj}</if> <if test="wzsj != null "> and d.wzsj = #{wzsj}</if>
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if> <if test="deptId != null and deptId != ''"> and d.dept_id = #{deptId}</if>
<if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if> <if test="yl2 != null and yl2 != ''"> and d.yl2 = #{yl2}</if>
<if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if> <if test="yl3 != null and yl3 != ''"> and d.yl3 = #{yl3}</if>
<if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if> <if test="yl4 != null and yl4 != ''"> and d.yl4 = #{yl4}</if>
<if test="yl5 != null and yl5 != ''"> and yl5 = #{yl5}</if> <if test="yl5 != null and yl5 != ''"> and d.yl5 = #{yl5}</if>
<if test="ydsl != null "> and ydsl = #{ydsl}</if> <if test="ydsl != null "> and d.ydsl = #{ydsl}</if>
and lxmc = "syxw" and d.lxmc = "syxw"
</where> </where>
ORDER BY ifnull (px,999999), wzsj desc ORDER BY ifnull (d.px,999999), d.wzsj desc
</select> </select>
<select id="selectJygxWzglByWzid" parameterType="Long" resultMap="JygxWzglResult"> <select id="selectJygxWzglByWzid" parameterType="Long" resultMap="JygxWzglResult">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment