Commit 5afeef4d by wangjian

2025-10-23 wj 试运行修改

parent d60dd3d1
......@@ -70,6 +70,10 @@ public class SysDept extends BaseEntity
// @Excel(name = "单位业务分类")
private String deptYwfl;
//传入参数 是否基层单位 1 时需要是基层单位的。 dwjb 4 时,查询从表的dwlx字段 中 有一部分dwlx不属于基层
private String ifjcdw;
/** 子部门 */
private List<SysDept> children = new ArrayList<SysDept>();
......
......@@ -27,39 +27,45 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectDeptVo">
select d.dept_id, d.parent_id,
select distinct d.dept_id, d.parent_id,
d.ancestors, d.dept_name,
d.order_num, d.leader, d.phone,
d.email, d.status, d.del_flag, d.create_by, d.create_time,d.dwjb, d.dept_lx, d.dept_dfl, d.dept_ywfl
from sys_dept d
left join sys_dept_cb c on d.dept_id = c.dept_id
</sql>
<select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult">
<include refid="selectDeptVo"/>
where d.del_flag = '0'
<if test="deptId != null and deptId != 0">
AND ( dept_id = #{deptId} or find_in_set(#{deptId}, d.ancestors) )
AND ( d.dept_id = #{deptId} or find_in_set(#{deptId}, d.ancestors) )
</if>
<if test="parentId != null and parentId != 0">
AND parent_id = #{parentId}
AND d.parent_id = #{parentId}
</if>
<if test="deptName != null and deptName != ''">
AND dept_name like concat('%', #{deptName}, '%')
AND d.dept_name like concat('%', #{deptName}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
AND d.status = #{status}
</if>
<if test="dwjb != null and dwjb != ''">
AND d.dwjb &lt;= #{dwjb}
</if>
<if test="deptYwfl != null and deptYwfl != ''">
AND dept_ywfl like concat('%', #{deptYwfl}, '%')
AND d.dept_ywfl like concat('%', #{deptYwfl}, '%')
</if>
<if test="deptDfl != null and deptDfl != ''">
AND dept_dfl like concat('%', #{deptDfl}, '%')
AND d.dept_dfl like concat('%', #{deptDfl}, '%')
</if>
<if test="deptLx != null and deptLx != ''">
AND dept_lx like concat('%', #{deptLx}, '%')
AND d.dept_lx like concat('%', #{deptLx}, '%')
</if>
<if test="ifjcdw != null and ifjcdw != '' and ifjcdw == '1'.toString() ">
and ( d.dwjb in ('1','2','3') or
( d.dwjb in ('4') and c.dwlx in ('采油(气)管理区','采油(气)管理单位','科研监督类','后勤服务类','生产保障类') )
)
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
......
......@@ -142,8 +142,8 @@ public class AmainController extends BaseController
title = "基层单位例会提交情况";
// 单位信息
SysDept dept = new SysDept();
dept.setParentId(deptId);
depts = deptService.selectDeptList_sjdw(dept);
dept.setDeptId(deptId);
depts = deptService.selectDeptList_ejdw(dept);
// 例会信息
SjLhsc sjLhsc = new SjLhsc();
sjLhsc.setStartJd(startJd);
......@@ -167,6 +167,8 @@ public class AmainController extends BaseController
sjLhsc.setDwjb("4");
sjLhsc.setDeptId(deptId + "");
lhList = sjLhscService.selectSjLhscList_main(sjLhsc);
lhList = new ArrayList<>();
depts = new ArrayList<>();
}
// 封装公共数据并返回
......@@ -249,8 +251,8 @@ public class AmainController extends BaseController
} else if ("B".equals(sylx)) {
// B角色:查询下属基层单位及对应费用
SysDept deptQuery = new SysDept();
deptQuery.setParentId(deptId); // 按当前部门ID筛选子单位
depts = deptService.selectDeptList_sjdw(deptQuery);
deptQuery.setDeptId(deptId); // 按当前部门ID筛选子单位
depts = deptService.selectDeptList_ejdw(deptQuery);
SjFybpZb fyQuery = new SjFybpZb();
fyQuery.setFyrq(nd); // 按年份筛选
......
......@@ -228,13 +228,15 @@ public class SjGfjsBfzjcController extends BaseController
}
zsdwwtcj.setWtmc(wtms);
String zgzrr=new DataFormatter().formatCellValue(row.getCell(6)) ;
String ldnr=new DataFormatter().formatCellValue(row.getCell(6)) ;
zsdwwtcj.setLdnr(ldnr);
String zgzrr=new DataFormatter().formatCellValue(row.getCell(7)) ;
zsdwwtcj.setZgzrr(zgzrr);
String zgcs=new DataFormatter().formatCellValue(row.getCell(7)) ;
String zgcs=new DataFormatter().formatCellValue(row.getCell(8)) ;
zsdwwtcj.setZgcs(zgcs);
String zgqx=new DataFormatter().formatCellValue(row.getCell(8)) ;
String zgqx=new DataFormatter().formatCellValue(row.getCell(9)) ;
zsdwwtcj.setZgqx(zgqx);
String zgzt=new DataFormatter().formatCellValue(row.getCell(9)) ;
String zgzt=new DataFormatter().formatCellValue(row.getCell(10)) ;
zsdwwtcj.setZgzt(zgzt);
zsdwwtcj.setJcjb("帮扶组检查");
zsdwwtcj.setCreateTime(DateUtils.getNowDate());
......
......@@ -206,6 +206,12 @@ public class SjGfjsBfzkhpjController extends BaseController
.map(SjGfjsZsdwwtcj::getWtmc).collect(Collectors.toList());
zsdwkhpj.setSj(collect.size()+"");
zsdwkhpj.setWtms(String.join(";",collect));
//亮点合并
List<String> collect_ldnr = sjGfjsZsdwwtcjs.stream()
.filter(item -> item.getKhnr().equals(zsdwkhpj.getKhnr()) && item.getKhxd().equals(zsdwkhpj.getKhxd()))
.map(SjGfjsZsdwwtcj::getLdnr).collect(Collectors.toList());
zsdwkhpj.setLdnr(String.join(";",collect_ldnr));
addList.add(zsdwkhpj);
}
......@@ -284,6 +290,7 @@ public class SjGfjsBfzkhpjController extends BaseController
Cell cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getKhnr());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getKhxd());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getWtms());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getLdnr());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getKhfz());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getId());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getZbId());
......@@ -444,13 +451,13 @@ public class SjGfjsBfzkhpjController extends BaseController
SjGfjsZsdwkhpj zsdwkhpj=new SjGfjsZsdwkhpj();
System.out.println(row);
//id
String id=new DataFormatter().formatCellValue(row.getCell(4));
String id=new DataFormatter().formatCellValue(row.getCell(5));
if(StringUtils.isEmpty(id)){
return AjaxResult.error("id不能为空");
}
zsdwkhpj.setId(Long.parseLong(id));
//主表id
String zbid=new DataFormatter().formatCellValue(row.getCell(5));
String zbid=new DataFormatter().formatCellValue(row.getCell(6));
if(StringUtils.isEmpty(zbid)){
return AjaxResult.error("主表id不能为空");
}
......@@ -465,8 +472,10 @@ public class SjGfjsBfzkhpjController extends BaseController
//问题描述
String wtms=new DataFormatter().formatCellValue(row.getCell(2));
zsdwkhpj.setWtms(wtms);
String ldnr=new DataFormatter().formatCellValue(row.getCell(3));
zsdwkhpj.setLdnr(ldnr);
//考核分值
String khfz=new DataFormatter().formatCellValue(row.getCell(3));
String khfz=new DataFormatter().formatCellValue(row.getCell(4));
zsdwkhpj.setKhfz(khfz);
list.add(zsdwkhpj);
......
......@@ -187,6 +187,11 @@ public class SjGfjsJcdwkhpjController extends BaseController
.map(SjGfjsZsdwwtcj::getWtmc).collect(Collectors.toList());
zsdwkhpj.setSj(collect.size()+"");
zsdwkhpj.setWtms(String.join(";",collect));
//亮点合并
List<String> collect_ldnr = sjGfjsZsdwwtcjs.stream()
.filter(item -> item.getKhnr().equals(zsdwkhpj.getKhnr()) && item.getKhxd().equals(zsdwkhpj.getKhxd()))
.map(SjGfjsZsdwwtcj::getLdnr).collect(Collectors.toList());
zsdwkhpj.setLdnr(String.join(";",collect_ldnr));
addList.add(zsdwkhpj);
}
......@@ -266,6 +271,7 @@ public class SjGfjsJcdwkhpjController extends BaseController
Cell cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getKhnr());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getKhxd());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getWtms());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getLdnr());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getKhfz());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getId());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getZbId());
......@@ -426,13 +432,13 @@ public class SjGfjsJcdwkhpjController extends BaseController
SjGfjsZsdwkhpj zsdwkhpj=new SjGfjsZsdwkhpj();
System.out.println(row);
//id
String id=new DataFormatter().formatCellValue(row.getCell(4));
String id=new DataFormatter().formatCellValue(row.getCell(5));
if(StringUtils.isEmpty(id)){
return AjaxResult.error("id不能为空");
}
zsdwkhpj.setId(Long.parseLong(id));
//主表id
String zbid=new DataFormatter().formatCellValue(row.getCell(5));
String zbid=new DataFormatter().formatCellValue(row.getCell(6));
if(StringUtils.isEmpty(zbid)){
return AjaxResult.error("主表id不能为空");
}
......@@ -446,8 +452,11 @@ public class SjGfjsJcdwkhpjController extends BaseController
//问题描述
String wtms=new DataFormatter().formatCellValue(row.getCell(2));
zsdwkhpj.setWtms(wtms);
//亮点
String ldnr=new DataFormatter().formatCellValue(row.getCell(3));
zsdwkhpj.setLdnr(ldnr);
//考核分值
String khfz=new DataFormatter().formatCellValue(row.getCell(3));
String khfz=new DataFormatter().formatCellValue(row.getCell(4));
zsdwkhpj.setKhfz(khfz);
list.add(zsdwkhpj);
......
......@@ -186,6 +186,7 @@ public class SjGfjsYdjcjlController extends BaseController
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(tmp.getKhnr());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(tmp.getKhxd());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(tmp.getWtmc());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(tmp.getLdnr());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(tmp.getZgzrr());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(tmp.getZgcs());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(tmp.getZgqx());
......@@ -304,13 +305,16 @@ public class SjGfjsYdjcjlController extends BaseController
zsdwwtcj.setWtmc(wtms);
String zgzrr=new DataFormatter().formatCellValue(row.getCell(4)) ;
String ldnr=new DataFormatter().formatCellValue(row.getCell(4)) ;
zsdwwtcj.setLdnr(ldnr);
String zgzrr=new DataFormatter().formatCellValue(row.getCell(5)) ;
zsdwwtcj.setZgzrr(zgzrr);
String zgcs=new DataFormatter().formatCellValue(row.getCell(5)) ;
String zgcs=new DataFormatter().formatCellValue(row.getCell(6)) ;
zsdwwtcj.setZgcs(zgcs);
String zgqx=new DataFormatter().formatCellValue(row.getCell(6)) ;
String zgqx=new DataFormatter().formatCellValue(row.getCell(7)) ;
zsdwwtcj.setZgqx(zgqx);
String zgzt=new DataFormatter().formatCellValue(row.getCell(7)) ;
String zgzt=new DataFormatter().formatCellValue(row.getCell(8)) ;
zsdwwtcj.setZgzt(zgzt);
zsdwwtcj.setJcjb("基层单位自查");
zsdwwtcj.setCreateTime(DateUtils.getNowDate());
......
......@@ -175,6 +175,11 @@ public class SjGfjsZsdwkhpjController extends BaseController
.map(SjGfjsZsdwwtcj::getWtmc).collect(Collectors.toList());
zsdwkhpj.setSj(collect.size()+"");
zsdwkhpj.setWtms(String.join(";",collect));
//亮点合并
List<String> collect_ldnr = sjGfjsZsdwwtcjs.stream()
.filter(item -> item.getKhnr().equals(zsdwkhpj.getKhnr()) && item.getKhxd().equals(zsdwkhpj.getKhxd()))
.map(SjGfjsZsdwwtcj::getLdnr).collect(Collectors.toList());
zsdwkhpj.setLdnr(String.join(";",collect_ldnr));
addList.add(zsdwkhpj);
}
......@@ -255,6 +260,7 @@ public class SjGfjsZsdwkhpjController extends BaseController
Cell cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getKhnr());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getKhxd());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getWtms());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getLdnr());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getKhfz());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getId());
cell = row.createCell(m++);cell.setCellStyle(cellStyle); cell.setCellValue(zsdwkhpj.getZbId());
......@@ -415,13 +421,13 @@ public class SjGfjsZsdwkhpjController extends BaseController
SjGfjsZsdwkhpj zsdwkhpj=new SjGfjsZsdwkhpj();
System.out.println(row);
//id
String id=new DataFormatter().formatCellValue(row.getCell(4));
String id=new DataFormatter().formatCellValue(row.getCell(5));
if(StringUtils.isEmpty(id)){
return AjaxResult.error("id不能为空");
}
zsdwkhpj.setId(Long.parseLong(id));
//主表id
String zbid=new DataFormatter().formatCellValue(row.getCell(5));
String zbid=new DataFormatter().formatCellValue(row.getCell(6));
if(StringUtils.isEmpty(zbid)){
return AjaxResult.error("主表id不能为空");
}
......@@ -441,8 +447,10 @@ public class SjGfjsZsdwkhpjController extends BaseController
//问题描述
String wtms=new DataFormatter().formatCellValue(row.getCell(2));
zsdwkhpj.setWtms(wtms);
String ldnr=new DataFormatter().formatCellValue(row.getCell(3)) ;
zsdwkhpj.setLdnr(ldnr);
//考核分值
String khfz=new DataFormatter().formatCellValue(row.getCell(3));
String khfz=new DataFormatter().formatCellValue(row.getCell(4));
zsdwkhpj.setKhfz(khfz);
list.add(zsdwkhpj);
......
......@@ -39,7 +39,7 @@ public class SjGfjsZsdwfjxcj extends BaseEntity
private String pjbzmc;
/** 问题描述 */
@Excel(name = "问题描述")
@Excel(name = "亮点与问题")
private String wtmc;
/** 预留1 */
......
......@@ -56,6 +56,8 @@ public class SjGfjsZsdwkhpj extends BaseEntity
/** 问题描述 */
@Excel(name = "问题描述")
private String wtms;
@Excel(name = "亮点")
private String ldnr;
/** 考核分值 */
@Excel(name = "考核结果")
......
......@@ -49,7 +49,7 @@ public class SjGfjsZsdwkhpjfjx extends BaseEntity
private String sffs;
/** 问题描述 */
@Excel(name = "问题描述")
@Excel(name = "亮点与问题")
private String wtms;
/** 预留1 */
......
......@@ -28,8 +28,10 @@ public class SjGfjsZsdwwtcj extends BaseEntity
private String jcjb;
/** 问题描述 */
@Excel(name = "问题描述")
@Excel(name = "问题")
private String wtmc;
@Excel(name = "亮点")
private String ldnr;
/** 考核内容 */
@Excel(name = "实施路径")
......
......@@ -30,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="yl5" column="yl5" />
<result property="deptName" column="dept_name" />
<result property="deptLx" column="dept_lx" />
<result property="ldnr" column="ldnr" />
</resultMap>
<sql id="selectSjGfjsZsdwwtcjVo">
......@@ -58,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.yl5,
CONCAT(p.dept_name,'/',d.dept_name) dept_name,
d.dept_lx,
b.bfzmc as yl3name
b.bfzmc as yl3name, a.ldnr
from sj_gfjs_zsdwwtcj a
left join sys_dept d on a.dept_id=d.dept_id
LEFT JOIN sys_dept p on d.parent_id = p.dept_id
......@@ -153,6 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="yl3 != null">yl3,</if>
<if test="yl4 != null">yl4,</if>
<if test="yl5 != null">yl5,</if>
<if test="ldnr != null">ldnr,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deptId != null">#{deptId},</if>
......@@ -177,13 +179,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="yl3 != null">#{yl3},</if>
<if test="yl4 != null">#{yl4},</if>
<if test="yl5 != null">#{yl5},</if>
<if test="ldnr != null">#{ldnr},</if>
</trim>
</insert>
<insert id="batchSave">
insert into sj_gfjs_zsdwwtcj( dept_id, rq, jcjb, wtmc, khnr, khxd, pjbzid, pjbzmc, zgzrr, zgcs, zgqx, zgzt,create_by,create_time,remark,yl1,yl2,yl3,yl4,yl5) values
insert into sj_gfjs_zsdwwtcj( dept_id, rq, jcjb, wtmc, khnr, khxd, pjbzid, pjbzmc, zgzrr, zgcs, zgqx, zgzt,
create_by,create_time,remark,yl1,yl2,yl3,yl4,yl5, ldnr) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.deptId}, #{item.rq}, #{item.jcjb}, #{item.wtmc}, #{item.khnr}, #{item.khxd}, #{item.pjbzid}, #{item.pjbzmc}, #{item.zgzrr}, #{item.zgcs}, #{item.zgqx}, #{item.zgzt}
, #{item.createBy}, #{item.createTime}, #{item.remark},#{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5})
, #{item.createBy}, #{item.createTime}, #{item.remark},#{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5}, #{item.ldnr})
</foreach>
</insert>
......@@ -212,6 +216,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="yl3 != null">yl3 = #{yl3},</if>
<if test="yl4 != null">yl4 = #{yl4},</if>
<if test="yl5 != null">yl5 = #{yl5},</if>
<if test="ldnr != null">ldnr = #{ldnr},</if>
</trim>
where id = #{id}
</update>
......
......@@ -55,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="yl4" column="sub_yl4" />
<result property="yl5" column="sub_yl5" />
<result property="pid" column="sub_pid" />
<result property="ldnr" column="sub_ldnr" />
<result property="deptName" column="dept_name" />
<result property="deptLx" column="dept_lx" />
......@@ -130,7 +131,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
b.zgzrr as sub_zgzrr, b.zgcs as sub_zgcs, b.zgqx as sub_zgqx, b.zgzt as sub_zgzt,
b.create_by as sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by,
b.update_time as sub_update_time, b.remark as sub_remark, b.yl1 as sub_yl1, b.yl2 as sub_yl2,
b.yl3 as sub_yl3, b.yl4 as sub_yl4, b.yl5 as sub_yl5,
b.yl3 as sub_yl3, b.yl4 as sub_yl4, b.yl5 as sub_yl5, b.ldnr as sub_ldnr,
b.pid as sub_pid, d.dept_name, d.dept_lx
from sj_gfjs_ydjcjl a
left join sj_gfjs_zsdwwtcj b on b.pid = a.id
......@@ -219,9 +220,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
delete from sj_gfjs_zsdwwtcj where pid = #{pid}
</delete>
<insert id="batchSjGfjsZsdwwtcj">
insert into sj_gfjs_zsdwwtcj( dept_id, rq, jcjb, wtmc, khnr, khxd, pjbzid, pjbzmc, zgzrr, zgcs, zgqx, zgzt, create_by, create_time, update_by, update_time, remark, yl1, yl2, yl3, yl4, yl5, pid) values
insert into sj_gfjs_zsdwwtcj( dept_id, rq, jcjb, wtmc, khnr, khxd, pjbzid, pjbzmc, zgzrr, zgcs, zgqx, zgzt,
create_by, create_time, update_by, update_time, remark, yl1, yl2, yl3, yl4, yl5,
pid, ldnr) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.deptId}, #{item.rq}, #{item.jcjb}, #{item.wtmc}, #{item.khnr}, #{item.khxd}, #{item.pjbzid}, #{item.pjbzmc}, #{item.zgzrr}, #{item.zgcs}, #{item.zgqx}, #{item.zgzt}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5}, #{item.pid})
( #{item.deptId}, #{item.rq}, #{item.jcjb}, #{item.wtmc}, #{item.khnr}, #{item.khxd}, #{item.pjbzid},
#{item.pjbzmc}, #{item.zgzrr}, #{item.zgcs}, #{item.zgqx}, #{item.zgzt}, #{item.createBy},
#{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark}, #{item.yl1}, #{item.yl2},
#{item.yl3}, #{item.yl4}, #{item.yl5}, #{item.pid}, #{item.ldnr})
</foreach>
</insert>
......@@ -253,6 +259,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="yl5" column="yl5" />
<result property="deptName" column="dept_name" />
<result property="deptLx" column="dept_lx" />
<result property="ldnr" column="ldnr" />
</resultMap>
<select id="selectSjGfjsZsdwwtcjList" parameterType="SjGfjsZsdwwtcj" resultMap="SjGfjsZsdwwtcjResult2">
select id,
......@@ -277,7 +284,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
yl2,
yl3,
yl4,
yl5, d.dept_name,d.dept_lx
yl5, d.dept_name,d.dept_lx,ldnr
from sj_gfjs_zsdwwtcj a
left join sys_dept d on a.dept_id=d.dept_id
<where>
......
......@@ -30,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="yl4" column="yl4" />
<result property="yl5" column="yl5" />
<result property="deptName" column="dept_name" />
<result property="ldnr" column="ldnr" />
</resultMap>
<sql id="selectSjGfjsZsdwkhpjVo">
......@@ -56,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.yl2,
a.yl3,
a.yl4,
a.yl5,d.dept_name
a.yl5,d.dept_name, a.ldnr
from sj_gfjs_zsdwkhpj a
left join sys_dept d on a.dept_id=d.dept_id
</sql>
......@@ -144,6 +145,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="yl3 != null">yl3,</if>
<if test="yl4 != null">yl4,</if>
<if test="yl5 != null">yl5,</if>
<if test="ldnr != null">ldnr,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="zbId != null">#{zbId},</if>
......@@ -169,12 +171,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="yl3 != null">#{yl3},</if>
<if test="yl4 != null">#{yl4},</if>
<if test="yl5 != null">#{yl5},</if>
<if test="ldnr != null">#{ldnr},</if>
</trim>
</insert>
<insert id="batchSave">
insert into sj_gfjs_zsdwkhpj( id, zb_id, dept_id, nd, zqfw, zqlx, jb, khnr, khxd, pjbzid, pjbzmc, sj, wtms, khfz, remark, yl1, yl2, yl3, yl4, yl5) values
insert into sj_gfjs_zsdwkhpj( id, zb_id, dept_id, nd, zqfw, zqlx, jb, khnr, khxd, pjbzid, pjbzmc, sj, wtms,
khfz, remark, yl1, yl2, yl3, yl4, yl5, ldnr) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.id}, #{item.zbId}, #{item.deptId}, #{item.nd}, #{item.zqfw}, #{item.zqlx}, #{item.jb}, #{item.khnr}, #{item.khxd}, #{item.pjbzid}, #{item.pjbzmc}, #{item.sj}, #{item.wtms}, #{item.khfz}, #{item.remark}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5})
( #{item.id}, #{item.zbId}, #{item.deptId}, #{item.nd}, #{item.zqfw}, #{item.zqlx}, #{item.jb},
#{item.khnr}, #{item.khxd}, #{item.pjbzid}, #{item.pjbzmc}, #{item.sj}, #{item.wtms}, #{item.khfz},
#{item.remark}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5}, #{item.ldnr})
</foreach>
</insert>
......@@ -204,6 +210,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="yl3 != null">yl3 = #{yl3},</if>
<if test="yl4 != null">yl4 = #{yl4},</if>
<if test="yl5 != null">yl5 = #{yl5},</if>
<if test="ldnr != null">ldnr = #{ldnr},</if>
</trim>
where id = #{id}
</update>
......@@ -214,6 +221,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="SET" suffixOverrides=",">
<if test="item.sj != null">sj = #{item.sj},</if>
<if test="item.wtms != null">wtms = #{item.wtms},</if>
<if test="item.ldnr != null">ldnr = #{item.ldnr},</if>
<if test="item.khfz != null">khfz = #{item.khfz},</if>
</trim>
where id = #{item.id}
......
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