Commit 0bccd28f by tyk

经验交流代码提交

parent c8894ef0
...@@ -74,7 +74,7 @@ public class JygxWzgl extends BaseEntity ...@@ -74,7 +74,7 @@ public class JygxWzgl extends BaseEntity
/** 预留1 */ /** 预留1 */
@Excel(name = "预留1") @Excel(name = "预留1")
private String yl1; private String deptId;
/** 预留2 */ /** 预留2 */
@Excel(name = "预留2") @Excel(name = "预留2")
...@@ -226,15 +226,15 @@ public class JygxWzgl extends BaseEntity ...@@ -226,15 +226,15 @@ public class JygxWzgl extends BaseEntity
{ {
return wzsj; return wzsj;
} }
public void setYl1(String yl1)
{ public String getDeptId() {
this.yl1 = yl1; return deptId;
} }
public String getYl1() public void setDeptId(String deptId) {
{ this.deptId = deptId;
return yl1;
} }
public void setYl2(String yl2) public void setYl2(String yl2)
{ {
this.yl2 = yl2; this.yl2 = yl2;
...@@ -297,7 +297,7 @@ public class JygxWzgl extends BaseEntity ...@@ -297,7 +297,7 @@ public class JygxWzgl extends BaseEntity
.append("fjlx", getFjlx()) .append("fjlx", getFjlx())
.append("wzzz", getWzzz()) .append("wzzz", getWzzz())
.append("wzsj", getWzsj()) .append("wzsj", getWzsj())
.append("yl1", getYl1()) .append("deptId", getDeptId())
.append("yl2", getYl2()) .append("yl2", getYl2())
.append("yl3", getYl3()) .append("yl3", getYl3())
.append("yl4", getYl4()) .append("yl4", getYl4())
......
...@@ -3,6 +3,8 @@ package com.qianhe.service.impl; ...@@ -3,6 +3,8 @@ package com.qianhe.service.impl;
import java.math.BigInteger; import java.math.BigInteger;
import java.security.SecureRandom; import java.security.SecureRandom;
import java.util.List; import java.util.List;
import com.qianhe.common.annotation.DataScope;
import com.qianhe.common.utils.DateUtils; import com.qianhe.common.utils.DateUtils;
import com.qianhe.common.utils.SecurityUtils; import com.qianhe.common.utils.SecurityUtils;
import com.qianhe.domain.JygxWzgl; import com.qianhe.domain.JygxWzgl;
...@@ -52,6 +54,7 @@ public class JygxWzglServiceImpl implements IJygxWzglService ...@@ -52,6 +54,7 @@ public class JygxWzglServiceImpl implements IJygxWzglService
* @return 经验共享-文章管理 * @return 经验共享-文章管理
*/ */
@Override @Override
@DataScope(deptAlias = "d")
public List<JygxWzgl> selectJygxWzglList(JygxWzgl jygxWzgl) public List<JygxWzgl> selectJygxWzglList(JygxWzgl jygxWzgl)
{ {
return jygxWzglMapper.selectJygxWzglList(jygxWzgl); return jygxWzglMapper.selectJygxWzglList(jygxWzgl);
......
...@@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="fjlx" column="fjlx" /> <result property="fjlx" column="fjlx" />
<result property="wzzz" column="wzzz" /> <result property="wzzz" column="wzzz" />
<result property="wzsj" column="wzsj" /> <result property="wzsj" column="wzsj" />
<result property="yl1" column="yl1" /> <result property="deptId" column="dept_id" />
<result property="yl2" column="yl2" /> <result property="yl2" column="yl2" />
<result property="yl3" column="yl3" /> <result property="yl3" column="yl3" />
<result property="yl4" column="yl4" /> <result property="yl4" column="yl4" />
...@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -32,7 +32,7 @@ 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, yl1, yl2, yl3, yl4, yl5, create_by, create_time, update_by, update_time, remark, ydsl from jygx_wzgl 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
</sql> </sql>
<select id="selectJygxWzglList" parameterType="JygxWzgl" resultMap="JygxWzglResult"> <select id="selectJygxWzglList" parameterType="JygxWzgl" resultMap="JygxWzglResult">
...@@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fjlx != null and fjlx != ''"> and fjlx = #{fjlx}</if> <if test="fjlx != null and fjlx != ''"> and fjlx = #{fjlx}</if>
<if test="wzzz != null and wzzz != ''"> and wzzz = #{wzzz}</if> <if test="wzzz != null and wzzz != ''"> and wzzz = #{wzzz}</if>
<if test="wzsj != null "> and wzsj = #{wzsj}</if> <if test="wzsj != null "> and wzsj = #{wzsj}</if>
<if test="yl1 != null and yl1 != ''"> and yl1 = #{yl1}</if> <if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
<if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if> <if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if>
<if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if> <if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if>
<if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if> <if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if>
...@@ -57,9 +57,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -57,9 +57,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ydsl != null "> and ydsl = #{ydsl}</if> <if test="ydsl != null "> and ydsl = #{ydsl}</if>
and lxmc != "syxw" and lxmc != "syxw"
</where> </where>
ORDER BY ifnull (px,999999), wzsj desc
<!-- 数据范围过滤 -->
${params.dataScope}
ORDER BY ifnull (px,999999), wzsj desc
</select> </select>
...@@ -76,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -76,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fjlx != null and fjlx != ''"> and fjlx = #{fjlx}</if> <if test="fjlx != null and fjlx != ''"> and fjlx = #{fjlx}</if>
<if test="wzzz != null and wzzz != ''"> and wzzz = #{wzzz}</if> <if test="wzzz != null and wzzz != ''"> and wzzz = #{wzzz}</if>
<if test="wzsj != null "> and wzsj = #{wzsj}</if> <if test="wzsj != null "> and wzsj = #{wzsj}</if>
<if test="yl1 != null and yl1 != ''"> and yl1 = #{yl1}</if> <if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
<if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if> <if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if>
<if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if> <if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if>
<if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if> <if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if>
...@@ -108,7 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -108,7 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fjlx != null">fjlx,</if> <if test="fjlx != null">fjlx,</if>
<if test="wzzz != null">wzzz,</if> <if test="wzzz != null">wzzz,</if>
<if test="wzsj != null">wzsj,</if> <if test="wzsj != null">wzsj,</if>
<if test="yl1 != null">yl1,</if> <if test="deptId != null">dept_id,</if>
<if test="yl2 != null">yl2,</if> <if test="yl2 != null">yl2,</if>
<if test="yl3 != null">yl3,</if> <if test="yl3 != null">yl3,</if>
<if test="yl4 != null">yl4,</if> <if test="yl4 != null">yl4,</if>
...@@ -134,7 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -134,7 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fjlx != null">#{fjlx},</if> <if test="fjlx != null">#{fjlx},</if>
<if test="wzzz != null">#{wzzz},</if> <if test="wzzz != null">#{wzzz},</if>
<if test="wzsj != null">#{wzsj},</if> <if test="wzsj != null">#{wzsj},</if>
<if test="yl1 != null">#{yl1},</if> <if test="deptId != null">#{deptId},</if>
<if test="yl2 != null">#{yl2},</if> <if test="yl2 != null">#{yl2},</if>
<if test="yl3 != null">#{yl3},</if> <if test="yl3 != null">#{yl3},</if>
<if test="yl4 != null">#{yl4},</if> <if test="yl4 != null">#{yl4},</if>
...@@ -163,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -163,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="fjlx != null">fjlx = #{fjlx},</if> <if test="fjlx != null">fjlx = #{fjlx},</if>
<if test="wzzz != null">wzzz = #{wzzz},</if> <if test="wzzz != null">wzzz = #{wzzz},</if>
<if test="wzsj != null">wzsj = #{wzsj},</if> <if test="wzsj != null">wzsj = #{wzsj},</if>
<if test="yl1 != null">yl1 = #{yl1},</if> <if test="deptId != null">dept_id = #{deptId},</if>
<if test="yl2 != null">yl2 = #{yl2},</if> <if test="yl2 != null">yl2 = #{yl2},</if>
<if test="yl3 != null">yl3 = #{yl3},</if> <if test="yl3 != null">yl3 = #{yl3},</if>
<if test="yl4 != null">yl4 = #{yl4},</if> <if test="yl4 != null">yl4 = #{yl4},</if>
......
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