Browse Source

fix:[填报表单]优化

master
15881625488@163.com 2 months ago
parent
commit
f347fc18e2
11 changed files with 58 additions and 66 deletions
  1. +4
    -4
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/GyzjMapper.java
  2. +4
    -4
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/MjyMapper.java
  3. +4
    -4
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/SjMapper.java
  4. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GspServiceImpl.java
  5. +12
    -14
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java
  6. +8
    -14
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java
  7. +4
    -4
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SjServiceImpl.java
  8. +5
    -5
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java
  9. +6
    -6
      hxhq-modules/hxhq-system/src/main/resources/mapper/business/GyzjMapper.xml
  10. +6
    -6
      hxhq-modules/hxhq-system/src/main/resources/mapper/business/MjyMapper.xml
  11. +4
    -4
      hxhq-modules/hxhq-system/src/main/resources/mapper/business/SjMapper.xml

+ 4
- 4
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/GyzjMapper.java View File

@ -47,16 +47,16 @@ public interface GyzjMapper extends BaseMapper
/** /**
* 批量修改库存 * 批量修改库存
* @param bhList 试剂编号
* @param idList id
* @param kc 库存量 * @param kc 库存量
*/ */
void updateKcBatch(@Param("bhList") List<String> bhList, @Param("kc") String kc);
void updateKcBatch(@Param("idList") List<Long> idList, @Param("kc") String kc);
/** /**
* 修改存储条件 * 修改存储条件
* @param bhList 试剂编号
* @param idList id
* @param cctj 存储条件 * @param cctj 存储条件
* @param ccwz 存储位置 * @param ccwz 存储位置
*/ */
void updateCc(@Param("bhList") List<String> bhList, @Param("cctj") String cctj, @Param("ccwz") String ccwz);
void updateCc(@Param("idList") List<Long> idList, @Param("cctj") String cctj, @Param("ccwz") String ccwz);
} }

+ 4
- 4
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/MjyMapper.java View File

@ -48,16 +48,16 @@ public interface MjyMapper extends BaseMapper
/** /**
* 批量修改库存 * 批量修改库存
* @param bhList 试剂编号
* @param idList id
* @param kc 库存量 * @param kc 库存量
*/ */
void updateKcBatch(@Param("bhList") List<String> bhList, @Param("kc") String kc);
void updateKcBatch(@Param("idList") List<Long> idList, @Param("kc") String kc);
/** /**
* 修改存储条件 * 修改存储条件
* @param bhList 试剂编号
* @param idList id
* @param cctj 存储条件 * @param cctj 存储条件
* @param ccwz 存储位置 * @param ccwz 存储位置
*/ */
void updateCc(@Param("bhList") List<String> bhList, @Param("cctj") String cctj, @Param("ccwz") String ccwz);
void updateCc(@Param("idList") List<Long> idList, @Param("cctj") String cctj, @Param("ccwz") String ccwz);
} }

+ 4
- 4
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/SjMapper.java View File

@ -49,16 +49,16 @@ public interface SjMapper extends BaseMapper
/** /**
* 批量修改库存 * 批量修改库存
* @param bhList 试剂编号
* @param idList id
* @param kc 库存量 * @param kc 库存量
*/ */
void updateKcBatch(@Param("bhList") List<String> bhList, @Param("kc") String kc);
void updateKcBatch(@Param("idList") List<Long> idList, @Param("kc") String kc);
/** /**
* 修改存储条件 * 修改存储条件
* @param bhList 试剂编号
* @param idList id
* @param cctj 存储条件 * @param cctj 存储条件
* @param ccwz 存储位置 * @param ccwz 存储位置
*/ */
void updateCc(@Param("bhList") List<String> bhList, @Param("cctj") String cctj, @Param("ccwz") String ccwz);
void updateCc(@Param("idList") List<Long> idList, @Param("cctj") String cctj, @Param("ccwz") String ccwz);
} }

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GspServiceImpl.java View File

@ -66,7 +66,7 @@ public class GspServiceImpl extends ServiceImpl implements IGspS
*/ */
@Override @Override
public void storageResource(StudyFormFill studyFormFill, Template template,String remark){ public void storageResource(StudyFormFill studyFormFill, Template template,String remark){
//todo
} }
/** /**

+ 12
- 14
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java View File

@ -86,10 +86,14 @@ public class GyzjServiceImpl extends ServiceImpl implements IG
gyzj.setBh(form.getBh()); gyzj.setBh(form.getBh());
gyzj.setStudyId(form.getStudyId()); gyzj.setStudyId(form.getStudyId());
gyzj.setBdId(form.getStudyFormId()); gyzj.setBdId(form.getStudyFormId());
gyzj.setZjzt(ZjztEnum.wrk.getValue());
gyzj.setJyzt(JyztEnum.wjy.getValue());
this.save(gyzj); this.save(gyzj);
} else { } else {
gyzj.setStudyId(form.getStudyId()); gyzj.setStudyId(form.getStudyId());
gyzj.setBdId(form.getStudyFormId()); gyzj.setBdId(form.getStudyFormId());
gyzj.setZjzt(ZjztEnum.wrk.getValue());
gyzj.setJyzt(JyztEnum.wjy.getValue());
this.updateById(gyzj); this.updateById(gyzj);
} }
} }
@ -1549,25 +1553,19 @@ public class GyzjServiceImpl extends ServiceImpl implements IG
if (StringUtils.isNotEmpty(resource) && !StringUtils.equals(empty, resource)) { if (StringUtils.isNotEmpty(resource) && !StringUtils.equals(empty, resource)) {
List<StudyFormFillResource> studyFormFillResourceList = JSONUtil.toList(resource, StudyFormFillResource.class); List<StudyFormFillResource> studyFormFillResourceList = JSONUtil.toList(resource, StudyFormFillResource.class);
List<StudyFormFillResource> tmp = studyFormFillResourceList.stream().filter(p -> (p.getType() == null && mark) || (p.getType() != null && StudyFormFillResourceTypeEnum.gyzj.getValue() == p.getType())).collect(Collectors.toList()); List<StudyFormFillResource> tmp = studyFormFillResourceList.stream().filter(p -> (p.getType() == null && mark) || (p.getType() != null && StudyFormFillResourceTypeEnum.gyzj.getValue() == p.getType())).collect(Collectors.toList());
// 根据编号获取需要处置的列表
if (tmp.size() > 0) { if (tmp.size() > 0) {
List<String> bhList = tmp.stream().map(StudyFormFillResource::getBh).collect(Collectors.toList()); List<String> bhList = tmp.stream().map(StudyFormFillResource::getBh).collect(Collectors.toList());
LambdaQueryWrapper<Gyzj> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<Gyzj> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.in(Gyzj::getBh, bhList); queryWrapper.in(Gyzj::getBh, bhList);
gyzjList = this.list(queryWrapper); gyzjList = this.list(queryWrapper);
for (Gyzj gyzj : gyzjList) { for (Gyzj gyzj : gyzjList) {
gyzj.setCczt(CcztEnum.Cc.getValue());
this.updateById(gyzj);
gyzjMap.put(gyzj.getBh(), gyzj); gyzjMap.put(gyzj.getBh(), gyzj);
} }
for (StudyFormFillResource studyFormFillResource : studyFormFillResourceList) {
Gyzj gyzj = gyzjMap.get(studyFormFillResource.getBh());
if (gyzj != null) {
gyzj.setCczt(CcztEnum.Cc.getValue());
this.updateById(gyzj);
}
}
// 存储
cc(studyFormFill, gyzjMap, jcgjList, tzList, remark, qmr);
} }
// 存储
cc(studyFormFill, gyzjMap, jcgjList, tzList, remark, qmr);
} }
if (jcgjList.size() > 0) { if (jcgjList.size() > 0) {
gyzjJcgjService.saveBatch(jcgjList); gyzjJcgjService.saveBatch(jcgjList);
@ -1597,11 +1595,11 @@ public class GyzjServiceImpl extends ServiceImpl implements IG
if (StringUtils.isNotEmpty(cclist) && !StringUtils.equals(empty, cclist)) { if (StringUtils.isNotEmpty(cclist) && !StringUtils.equals(empty, cclist)) {
List<StudyFormFillCc> studyFormFillCcList = JSONUtil.toList(cclist, StudyFormFillCc.class); List<StudyFormFillCc> studyFormFillCcList = JSONUtil.toList(cclist, StudyFormFillCc.class);
for (StudyFormFillCc studyFormFillCc : studyFormFillCcList) { for (StudyFormFillCc studyFormFillCc : studyFormFillCcList) {
List<String> list = new ArrayList<>();
List<Long> list = new ArrayList<>();
for (String bh : studyFormFillCc.getList()) { for (String bh : studyFormFillCc.getList()) {
Gyzj gyzj = gyzjMap.get(bh); Gyzj gyzj = gyzjMap.get(bh);
if (gyzj != null) { if (gyzj != null) {
list.add(bh);
list.add(gyzj.getId());
// 稽查轨迹 // 稽查轨迹
HashMap<String, String> formData = new HashMap<>(2); HashMap<String, String> formData = new HashMap<>(2);
formData.put("存储位置", studyFormFillCc.getCcwz()); formData.put("存储位置", studyFormFillCc.getCcwz());
@ -1638,11 +1636,11 @@ public class GyzjServiceImpl extends ServiceImpl implements IG
if (StringUtils.isNotEmpty(czlist) && !StringUtils.equals(empty, czlist)) { if (StringUtils.isNotEmpty(czlist) && !StringUtils.equals(empty, czlist)) {
List<StudyFormFillCz> studyFormFillCzList = JSONUtil.toList(czlist, StudyFormFillCz.class); List<StudyFormFillCz> studyFormFillCzList = JSONUtil.toList(czlist, StudyFormFillCz.class);
for (StudyFormFillCz studyFormFillCz : studyFormFillCzList) { for (StudyFormFillCz studyFormFillCz : studyFormFillCzList) {
List<String> list = new ArrayList<>();
List<Long> list = new ArrayList<>();
for (String bh : studyFormFillCz.getList()) { for (String bh : studyFormFillCz.getList()) {
Gyzj gyzj = gyzjMap.get(bh); Gyzj gyzj = gyzjMap.get(bh);
if (gyzj != null) { if (gyzj != null) {
list.add(bh);
list.add(gyzj.getId());
// 稽查轨迹 // 稽查轨迹
HashMap<String, String> formData = new HashMap<>(2); HashMap<String, String> formData = new HashMap<>(2);
formData.put("处置方式", studyFormFillCz.getCzfs()); formData.put("处置方式", studyFormFillCz.getCzfs());

+ 8
- 14
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java View File

@ -1330,25 +1330,19 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS
if (StringUtils.isNotEmpty(resource) && !StringUtils.equals(empty, resource)) { if (StringUtils.isNotEmpty(resource) && !StringUtils.equals(empty, resource)) {
List<StudyFormFillResource> studyFormFillResourceList = JSONUtil.toList(resource, StudyFormFillResource.class); List<StudyFormFillResource> studyFormFillResourceList = JSONUtil.toList(resource, StudyFormFillResource.class);
List<StudyFormFillResource> tmp = studyFormFillResourceList.stream().filter(p -> (p.getType() == null && mark) || (p.getType() != null && StudyFormFillResourceTypeEnum.mjy.getValue() == p.getType())).collect(Collectors.toList()); List<StudyFormFillResource> tmp = studyFormFillResourceList.stream().filter(p -> (p.getType() == null && mark) || (p.getType() != null && StudyFormFillResourceTypeEnum.mjy.getValue() == p.getType())).collect(Collectors.toList());
// 根据编号获取需要处置的列表
if (tmp.size() > 0) { if (tmp.size() > 0) {
List<String> bhList = tmp.stream().map(StudyFormFillResource::getBh).collect(Collectors.toList()); List<String> bhList = tmp.stream().map(StudyFormFillResource::getBh).collect(Collectors.toList());
LambdaQueryWrapper<Mjy> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<Mjy> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.in(Mjy::getBh, bhList); queryWrapper.in(Mjy::getBh, bhList);
mjyList = this.list(queryWrapper); mjyList = this.list(queryWrapper);
for (Mjy mjy : mjyList) { for (Mjy mjy : mjyList) {
mjy.setCczt(CcztEnum.Cc.getValue());
this.updateById(mjy);
mjyMap.put(mjy.getBh(), mjy); mjyMap.put(mjy.getBh(), mjy);
} }
for (StudyFormFillResource studyFormFillResource : studyFormFillResourceList) {
Mjy mjy = mjyMap.get(studyFormFillResource.getBh());
if (mjy != null) {
mjy.setCczt(CcztEnum.Cc.getValue());
this.updateById(mjy);
}
}
// 存储
cc(studyFormFill, mjyMap, jcgjList, tzList, remark, qmr);
} }
// 存储
cc(studyFormFill, mjyMap, jcgjList, tzList, remark, qmr);
} }
if (jcgjList.size() > 0) { if (jcgjList.size() > 0) {
mjyJcgjService.saveBatch(jcgjList); mjyJcgjService.saveBatch(jcgjList);
@ -1380,11 +1374,11 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS
if (StringUtils.isNotEmpty(czlist) && !StringUtils.equals(empty, czlist)) { if (StringUtils.isNotEmpty(czlist) && !StringUtils.equals(empty, czlist)) {
List<StudyFormFillCz> studyFormFillCzList = JSONUtil.toList(czlist, StudyFormFillCz.class); List<StudyFormFillCz> studyFormFillCzList = JSONUtil.toList(czlist, StudyFormFillCz.class);
for (StudyFormFillCz studyFormFillCz : studyFormFillCzList) { for (StudyFormFillCz studyFormFillCz : studyFormFillCzList) {
List<String> list = new ArrayList<>();
List<Long> list = new ArrayList<>();
for (String bh : studyFormFillCz.getList()) { for (String bh : studyFormFillCz.getList()) {
Mjy mjy = mjyMap.get(bh); Mjy mjy = mjyMap.get(bh);
if (mjy != null) { if (mjy != null) {
list.add(bh);
list.add(mjy.getId());
// 稽查轨迹 // 稽查轨迹
HashMap<String, String> formData = new HashMap<>(2); HashMap<String, String> formData = new HashMap<>(2);
formData.put("处置方式", studyFormFillCz.getCzfs()); formData.put("处置方式", studyFormFillCz.getCzfs());
@ -1420,11 +1414,11 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS
if (StringUtils.isNotEmpty(cclist) && !StringUtils.equals(empty, cclist)) { if (StringUtils.isNotEmpty(cclist) && !StringUtils.equals(empty, cclist)) {
List<StudyFormFillCc> studyFormFillCcList = JSONUtil.toList(cclist, StudyFormFillCc.class); List<StudyFormFillCc> studyFormFillCcList = JSONUtil.toList(cclist, StudyFormFillCc.class);
for (StudyFormFillCc studyFormFillCc : studyFormFillCcList) { for (StudyFormFillCc studyFormFillCc : studyFormFillCcList) {
List<String> list = new ArrayList<>();
List<Long> list = new ArrayList<>();
for (String bh : studyFormFillCc.getList()) { for (String bh : studyFormFillCc.getList()) {
Mjy mjy = mjyMap.get(bh); Mjy mjy = mjyMap.get(bh);
if (mjy != null) { if (mjy != null) {
list.add(bh);
list.add(mjy.getId());
// 稽查轨迹 // 稽查轨迹
HashMap<String, String> formData = new HashMap<>(2); HashMap<String, String> formData = new HashMap<>(2);
formData.put("存储位置", studyFormFillCc.getCcwz()); formData.put("存储位置", studyFormFillCc.getCcwz());

+ 4
- 4
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SjServiceImpl.java View File

@ -875,11 +875,11 @@ public class SjServiceImpl extends ServiceImpl implements ISjServi
if (StringUtils.isNotEmpty(cclist) && !StringUtils.equals(empty, cclist)) { if (StringUtils.isNotEmpty(cclist) && !StringUtils.equals(empty, cclist)) {
List<StudyFormFillCc> studyFormFillCcList = JSONUtil.toList(cclist, StudyFormFillCc.class); List<StudyFormFillCc> studyFormFillCcList = JSONUtil.toList(cclist, StudyFormFillCc.class);
for (StudyFormFillCc studyFormFillCc : studyFormFillCcList) { for (StudyFormFillCc studyFormFillCc : studyFormFillCcList) {
List<String> list = new ArrayList<>();
List<Long> list = new ArrayList<>();
for (String bh : studyFormFillCc.getList()) { for (String bh : studyFormFillCc.getList()) {
Sj sj = sjMap.get(bh); Sj sj = sjMap.get(bh);
if (sj != null) { if (sj != null) {
list.add(bh);
list.add(sj.getId());
// 稽查轨迹 // 稽查轨迹
LinkedHashMap<String, String> jcnrMap = new LinkedHashMap<>(); LinkedHashMap<String, String> jcnrMap = new LinkedHashMap<>();
jcnrMap.put("存储位置", studyFormFillCc.getCcwz()); jcnrMap.put("存储位置", studyFormFillCc.getCcwz());
@ -921,11 +921,11 @@ public class SjServiceImpl extends ServiceImpl implements ISjServi
if (StringUtils.isNotEmpty(czlist) && !StringUtils.equals(empty, czlist)) { if (StringUtils.isNotEmpty(czlist) && !StringUtils.equals(empty, czlist)) {
List<StudyFormFillCz> studyFormFillCzList = JSONUtil.toList(czlist, StudyFormFillCz.class); List<StudyFormFillCz> studyFormFillCzList = JSONUtil.toList(czlist, StudyFormFillCz.class);
for (StudyFormFillCz studyFormFillCz : studyFormFillCzList) { for (StudyFormFillCz studyFormFillCz : studyFormFillCzList) {
List<String> list = new ArrayList<>();
List<Long> list = new ArrayList<>();
for (String bh : studyFormFillCz.getList()) { for (String bh : studyFormFillCz.getList()) {
Sj sj = sjMap.get(bh); Sj sj = sjMap.get(bh);
if (sj != null) { if (sj != null) {
list.add(bh);
list.add(sj.getId());
// 稽查轨迹 // 稽查轨迹
LinkedHashMap<String, String> jcnrMap = new LinkedHashMap<>(); LinkedHashMap<String, String> jcnrMap = new LinkedHashMap<>();
jcnrMap.put("处置方式", studyFormFillCz.getCzfs()); jcnrMap.put("处置方式", studyFormFillCz.getCzfs());

+ 5
- 5
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java View File

@ -489,13 +489,13 @@ public class StudyFormFillServiceImpl extends ServiceImpl
checkPassword(qmr, studyFormFill.getQmrmm()); checkPassword(qmr, studyFormFill.getQmrmm());
if (studyFormFill.getId() != null) { if (studyFormFill.getId() != null) {
StudyFormFill studyFormFillOld = this.queryInfo(studyFormFill.getId()); StudyFormFill studyFormFillOld = this.queryInfo(studyFormFill.getId());
studyFormFillOld.setResource(studyFormFill.getResource());
Template template = templateService.getById(studyFormFillOld.getTemplateId()); Template template = templateService.getById(studyFormFillOld.getTemplateId());
//只有列表有 开始配置 配置完成的时候并且点了配置完成后 药剂存储才能选到配置出来的药剂其余都只能选择使用的 //只有列表有 开始配置 配置完成的时候并且点了配置完成后 药剂存储才能选到配置出来的药剂其余都只能选择使用的
mjyService.storageResource(studyFormFillOld,template,studyFormFill.getRemark());
gyzjService.storageResource(studyFormFillOld,template,studyFormFill.getRemark());
gspService.storageResource(studyFormFillOld,template,studyFormFill.getRemark());
//更新 Resource
this.updateById(studyFormFillOld);
mjyService.storageResource(studyFormFill,template,studyFormFill.getRemark());
gyzjService.storageResource(studyFormFill,template,studyFormFill.getRemark());
gspService.storageResource(studyFormFill,template,studyFormFill.getRemark());
String cclist = studyFormFill.getCclist(); String cclist = studyFormFill.getCclist();
String empty = "[]"; String empty = "[]";
if (StringUtils.isNotEmpty(cclist) && !StringUtils.equals(empty, cclist)) { if (StringUtils.isNotEmpty(cclist) && !StringUtils.equals(empty, cclist)) {

+ 6
- 6
hxhq-modules/hxhq-system/src/main/resources/mapper/business/GyzjMapper.xml View File

@ -40,15 +40,15 @@
</select> </select>
<update id="updateKcBatch"> <update id="updateKcBatch">
UPDATE t_gyzj SET kc = #{kc} WHERE bh in
<foreach item="item" index="index" collection="bhList" separator=",">
(#{item})
UPDATE t_gyzj SET kc = #{kc} WHERE id in
<foreach item="item" index="index" collection="idList" open="(" separator="," close=")">
#{item}
</foreach> </foreach>
</update> </update>
<update id="updateCc"> <update id="updateCc">
UPDATE t_gyzj SET cctj = #{cctj}, ccwz = #{ccwz} WHERE bh in
<foreach item="item" index="index" collection="bhList" separator=",">
(#{item})
UPDATE t_gyzj SET cctj = #{cctj}, ccwz = #{ccwz} WHERE id in
<foreach item="item" index="index" collection="idList" open="(" separator="," close=")">
#{item}
</foreach> </foreach>
</update> </update>
<update id="updateKc"> <update id="updateKc">

+ 6
- 6
hxhq-modules/hxhq-system/src/main/resources/mapper/business/MjyMapper.xml View File

@ -38,15 +38,15 @@
</select> </select>
<update id="updateKcBatch"> <update id="updateKcBatch">
UPDATE t_mjy SET kc = #{kc} WHERE bh in
<foreach item="item" index="index" collection="bhList" separator=",">
(#{item})
UPDATE t_mjy SET kc = #{kc} WHERE id in
<foreach item="item" index="index" collection="idList" open="(" separator="," close=")">
#{item}
</foreach> </foreach>
</update> </update>
<update id="updateCc"> <update id="updateCc">
UPDATE t_mjy SET cctj = #{cctj}, ccwz = #{ccwz} WHERE bh in
<foreach item="item" index="index" collection="bhList" separator=",">
(#{item})
UPDATE t_mjy SET cctj = #{cctj}, ccwz = #{ccwz} WHERE id in
<foreach item="item" index="index" collection="idList" open="(" separator="," close=")">
#{item}
</foreach> </foreach>
</update> </update>
<update id="updateKc"> <update id="updateKc">

+ 4
- 4
hxhq-modules/hxhq-system/src/main/resources/mapper/business/SjMapper.xml View File

@ -4,14 +4,14 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hxhq.business.mapper.SjMapper"> <mapper namespace="com.hxhq.business.mapper.SjMapper">
<update id="updateKcBatch"> <update id="updateKcBatch">
UPDATE t_sj SET kc = #{kc} WHERE bh in
<foreach item="item" index="index" collection="bhList" open="(" separator="," close=")">
UPDATE t_sj SET kc = #{kc} WHERE id in
<foreach item="item" index="index" collection="idList" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
</update> </update>
<update id="updateCc"> <update id="updateCc">
UPDATE t_sj SET cctj = #{cctj}, ccwz = #{ccwz} WHERE bh in
<foreach item="item" index="index" collection="bhList" open="(" separator="," close=")">
UPDATE t_sj SET cctj = #{cctj}, ccwz = #{ccwz} WHERE id in
<foreach item="item" index="index" collection="idList" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
</update> </update>

Loading…
Cancel
Save