Commit 107e5814 by jiang'yun

修改

parent f03ceafc
...@@ -15,6 +15,9 @@ import com.ruoyi.project.zjsgfa.domain.*; ...@@ -15,6 +15,9 @@ import com.ruoyi.project.zjsgfa.domain.*;
import com.ruoyi.project.zjsgfa.domain.Vo.DrillingFluidConstant; import com.ruoyi.project.zjsgfa.domain.Vo.DrillingFluidConstant;
import com.ruoyi.project.zjsgfa.mapper.*; import com.ruoyi.project.zjsgfa.mapper.*;
import com.ruoyi.project.zt.domain.CommonParam;
import com.ruoyi.project.zt.domain.Ljjw;
import com.ruoyi.project.zt.service.DjdcService;
import org.apache.poi.ss.usermodel.*; import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.*; import org.apache.poi.xssf.usermodel.*;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
...@@ -99,6 +102,9 @@ public class SjDjjcController extends BaseController ...@@ -99,6 +102,9 @@ public class SjDjjcController extends BaseController
/** /**
* 查询设计信息-井基础信息列表 * 查询设计信息-井基础信息列表
*/ */
...@@ -1450,6 +1456,18 @@ public class SjDjjcController extends BaseController ...@@ -1450,6 +1456,18 @@ public class SjDjjcController extends BaseController
/** /**
* 保存邻井资料
*/
@PostMapping("/saveLjzl")
public AjaxResult saveLjzl(@RequestBody CommonParam param) throws Exception{
return sjDjjcService.saveLjzl(param);
}
/**
* 计算指定方向上的视平移 * 计算指定方向上的视平移
* @param closureAzimuth 闭合方位角(度) * @param closureAzimuth 闭合方位角(度)
* @param nsDisplacement 南北位移(米) * @param nsDisplacement 南北位移(米)
......
...@@ -19,11 +19,11 @@ public class SjLjjw extends BaseEntity ...@@ -19,11 +19,11 @@ public class SjLjjw extends BaseEntity
private Long id; private Long id;
/** 井号 */ /** 井号 */
@Excel(name = "井号") // @Excel(name = "井号")
private String jh; private String jh;
/** 邻井井号 */ /** 邻井井号 */
@Excel(name = "邻井井号") @Excel(name = "井号")
private String ljjh; private String ljjh;
/** 井型 */ /** 井型 */
......
...@@ -19,7 +19,7 @@ public class SjQkztfx extends BaseEntity ...@@ -19,7 +19,7 @@ public class SjQkztfx extends BaseEntity
private Long id; private Long id;
/** 井号 */ /** 井号 */
@Excel(name = "井号") // @Excel(name = "井号")
private String jh; private String jh;
/** 开次 */ /** 开次 */
...@@ -47,19 +47,19 @@ public class SjQkztfx extends BaseEntity ...@@ -47,19 +47,19 @@ public class SjQkztfx extends BaseEntity
private Double ytzl; private Double ytzl;
/** 二趟钻率 */ /** 二趟钻率 */
@Excel(name = "二趟钻率") // @Excel(name = "二趟钻率")
private Double etzl; private Double etzl;
/** 三趟钻率 */ /** 三趟钻率 */
@Excel(name = "三趟钻率") // @Excel(name = "三趟钻率")
private Double stzl; private Double stzl;
/** 四趟钻率 */ /** 四趟钻率 */
@Excel(name = "四趟钻率") // @Excel(name = "四趟钻率")
private Double sitzl; private Double sitzl;
/** 五趟钻率 */ /** 五趟钻率 */
@Excel(name = "五趟钻率") // @Excel(name = "五趟钻率")
private Double wtzl; private Double wtzl;
/** 进尺中位数 */ /** 进尺中位数 */
......
...@@ -2,6 +2,7 @@ package com.ruoyi.project.zjsgfa.domain; ...@@ -2,6 +2,7 @@ package com.ruoyi.project.zjsgfa.domain;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
...@@ -13,6 +14,7 @@ import com.ruoyi.framework.web.domain.BaseEntity; ...@@ -13,6 +14,7 @@ import com.ruoyi.framework.web.domain.BaseEntity;
* @author ruoyi * @author ruoyi
* @date 2025-07-22 * @date 2025-07-22
*/ */
@Data
public class SjSzfxjg extends BaseEntity public class SjSzfxjg extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -20,6 +22,8 @@ public class SjSzfxjg extends BaseEntity ...@@ -20,6 +22,8 @@ public class SjSzfxjg extends BaseEntity
/** 主键 */ /** 主键 */
private Long id; private Long id;
private String jh;
/** 分析范围 */ /** 分析范围 */
@Excel(name = "分析范围") @Excel(name = "分析范围")
private String fxfw; private String fxfw;
...@@ -57,12 +61,12 @@ public class SjSzfxjg extends BaseEntity ...@@ -57,12 +61,12 @@ public class SjSzfxjg extends BaseEntity
private Double tjpf; private Double tjpf;
/** 创建人 */ /** 创建人 */
@Excel(name = "创建人") // @Excel(name = "创建人")
private String createdBy; private String createdBy;
/** 创建时间 */ /** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd") // @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") // @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date createdTime; private Date createdTime;
public void setId(Long id) public void setId(Long id)
......
...@@ -19,15 +19,15 @@ public class SjZqfx extends BaseEntity ...@@ -19,15 +19,15 @@ public class SjZqfx extends BaseEntity
private Long id; private Long id;
/** 井号 */ /** 井号 */
@Excel(name = "井号") // @Excel(name = "井号")
private String jh; private String jh;
/** 邻井井号 */ /** 邻井井号 */
@Excel(name = "邻井井号") @Excel(name = "井号")
private String ljjh; private String ljjh;
/** 井筒名 */ /** 井筒名 */
@Excel(name = "井筒名") // @Excel(name = "井筒名")
private String jtm; private String jtm;
/** 开始井深 */ /** 开始井深 */
...@@ -75,7 +75,7 @@ public class SjZqfx extends BaseEntity ...@@ -75,7 +75,7 @@ public class SjZqfx extends BaseEntity
private Double wjycsl; private Double wjycsl;
/** 完井(中完)生产周期 */ /** 完井(中完)生产周期 */
@Excel(name = "完井", readConverterExp = "中=完") @Excel(name = "完井生产周期")
private Double wjsczq; private Double wjsczq;
/** 钻井异常描述 */ /** 钻井异常描述 */
...@@ -83,7 +83,7 @@ public class SjZqfx extends BaseEntity ...@@ -83,7 +83,7 @@ public class SjZqfx extends BaseEntity
private String zjycms; private String zjycms;
/** 中完(完井异常描述) */ /** 中完(完井异常描述) */
@Excel(name = "中完", readConverterExp = "完=井异常描述") @Excel(name = "中完异常描述")
private String wjycms; private String wjycms;
public void setId(Long id) public void setId(Long id)
......
...@@ -19,11 +19,11 @@ public class SjZtgjsj extends BaseEntity ...@@ -19,11 +19,11 @@ public class SjZtgjsj extends BaseEntity
private Long id; private Long id;
/** 井号 */ /** 井号 */
@Excel(name = "井号") // @Excel(name = "井号")
private String jh; private String jh;
/** 邻井井号 */ /** 邻井井号 */
@Excel(name = "邻井井号") @Excel(name = "井号")
private String ljjh; private String ljjh;
/** 开次 */ /** 开次 */
......
...@@ -58,4 +58,9 @@ public interface SjLjjwMapper ...@@ -58,4 +58,9 @@ public interface SjLjjwMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjLjjwByIds(Long[] ids); public int deleteSjLjjwByIds(Long[] ids);
int deleteSjLjjwByJh(String jh);
int insertSjLjjwBatch(List<SjLjjw> sjLjjwList);
} }
...@@ -58,4 +58,9 @@ public interface SjQkztfxMapper ...@@ -58,4 +58,9 @@ public interface SjQkztfxMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjQkztfxByIds(Long[] ids); public int deleteSjQkztfxByIds(Long[] ids);
int deleteSjQkztfxByJh(String jh);
int insertSjQkztfxBatch(List<SjQkztfx> sjQkztfxList);
} }
...@@ -58,4 +58,9 @@ public interface SjSzfxjgMapper ...@@ -58,4 +58,9 @@ public interface SjSzfxjgMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjSzfxjgByIds(Long[] ids); public int deleteSjSzfxjgByIds(Long[] ids);
int deleteSjSzfxjgByJh(String jh);
int insertSjSzfxjgBatch(List<SjSzfxjg> sjSzfxjgList);
} }
...@@ -58,4 +58,9 @@ public interface SjZqfxMapper ...@@ -58,4 +58,9 @@ public interface SjZqfxMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjZqfxByIds(Long[] ids); public int deleteSjZqfxByIds(Long[] ids);
int deleteSjZqfxByJh(String jh);
int insertSjZqfxBatch(List<SjZqfx> sjZqfxList);
} }
...@@ -58,4 +58,9 @@ public interface SjZtgjsjMapper ...@@ -58,4 +58,9 @@ public interface SjZtgjsjMapper
* @return 结果 * @return 结果
*/ */
public int deleteSjZtgjsjByIds(Long[] ids); public int deleteSjZtgjsjByIds(Long[] ids);
int deleteSjZtgjsjByJh(String jh);
int insertSjZtgjsjBatch(List<SjZtgjsj> sjZtgjsjList);
} }
package com.ruoyi.project.zjsgfa.service; package com.ruoyi.project.zjsgfa.service;
import java.util.List; import java.util.List;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.zjsgfa.domain.SjDjjc; import com.ruoyi.project.zjsgfa.domain.SjDjjc;
import com.ruoyi.project.zt.domain.CommonParam;
/** /**
* 设计信息-井基础信息Service接口 * 设计信息-井基础信息Service接口
...@@ -58,4 +61,7 @@ public interface ISjDjjcService ...@@ -58,4 +61,7 @@ public interface ISjDjjcService
* @return 结果 * @return 结果
*/ */
public int deleteSjDjjcById(Long id); public int deleteSjDjjcById(Long id);
AjaxResult saveLjzl(CommonParam param) throws Exception;
} }
package com.ruoyi.project.zjsgfa.service.impl; package com.ruoyi.project.zjsgfa.service.impl;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.bean.BeanUtils;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.zjsgfa.domain.*;
import com.ruoyi.project.zjsgfa.mapper.*;
import com.ruoyi.project.zt.domain.*;
import com.ruoyi.project.zt.domain.vo.SjInfo;
import com.ruoyi.project.zt.service.DjdcService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ruoyi.project.zjsgfa.mapper.SjDjjcMapper;
import com.ruoyi.project.zjsgfa.domain.SjDjjc;
import com.ruoyi.project.zjsgfa.service.ISjDjjcService; import com.ruoyi.project.zjsgfa.service.ISjDjjcService;
/** /**
...@@ -21,6 +28,22 @@ public class SjDjjcServiceImpl implements ISjDjjcService ...@@ -21,6 +28,22 @@ public class SjDjjcServiceImpl implements ISjDjjcService
@Autowired @Autowired
private SjDjjcMapper sjDjjcMapper; private SjDjjcMapper sjDjjcMapper;
@Autowired
private DjdcService djdcService;
@Autowired
private SjLjjwMapper sjLjjwMapper;
@Autowired
private SjZqfxMapper sjZqfxMapper;
@Autowired
private SjZtgjsjMapper sjZtgjsjMapper;
@Autowired
private SjQkztfxMapper sjQkztfxMapper;
@Autowired
private SjJsjgMapper sjJsjgMapper;
@Autowired
private SjSzfxjgMapper sjSzfxjgMapper;
/** /**
* 查询设计信息-井基础信息 * 查询设计信息-井基础信息
* *
...@@ -100,4 +123,103 @@ public class SjDjjcServiceImpl implements ISjDjjcService ...@@ -100,4 +123,103 @@ public class SjDjjcServiceImpl implements ISjDjjcService
{ {
return sjDjjcMapper.deleteSjDjjcById(id); return sjDjjcMapper.deleteSjDjjcById(id);
} }
@Override
public AjaxResult saveLjzl(CommonParam param) throws Exception {
String jh = param.getSjjh();
SjDjjc sjDjjc = sjDjjcMapper.selectSjDjjcByJh(jh);
param.setQk(sjDjjc.getQk());
param.setJkhzb(sjDjjc.getJkhzb());
param.setJkzzb(sjDjjc.getJkzzb());
param.setJdhzb(sjDjjc.getJdhzb());
param.setJdzzb(sjDjjc.getJdzzb());
//保存邻井
List<Ljjw> ljjwList = djdcService.getLjjwList(param);
List<SjLjjw> sjLjjwList=new ArrayList<>();
ljjwList.forEach(item->{
SjLjjw sjLjjw=new SjLjjw();
BeanUtils.copyProperties(item,sjLjjw);
sjLjjw.setJh(jh);
sjLjjw.setLjjh(item.getJh());
sjLjjwList.add(sjLjjw);
});
if(sjLjjwList.size()>0){
sjLjjwMapper.deleteSjLjjwByJh(jh);
sjLjjwMapper.insertSjLjjwBatch(sjLjjwList);
}
param.setJkhzb(null);
param.setJkzzb(null);
param.setJdhzb(null);
param.setJdzzb(null);
//周期分析
List<DjZqsjfx> zqshfxList = djdcService.getZqshfxList(param);
List<SjZqfx> sjZqfxList=new ArrayList<>();
zqshfxList.forEach(item->{
SjZqfx sjZqfx=new SjZqfx();
BeanUtils.copyProperties(item,sjZqfx);
sjZqfx.setJh(jh);
sjZqfx.setLjjh(item.getJh());
sjZqfxList.add(sjZqfx);
});
if(sjZqfxList.size()>0){
sjZqfxMapper.deleteSjZqfxByJh(jh);
sjZqfxMapper.insertSjZqfxBatch(sjZqfxList);
}
//钻头关键数据
List<Djjc> djjcList = djdcService.getDjjcList(param);
List<SjZtgjsj> sjZtgjsjList=new ArrayList<>();
djjcList.forEach(item->{
SjZtgjsj sjZtgjsj=new SjZtgjsj();
BeanUtils.copyProperties(item,sjZtgjsj);
sjZtgjsj.setJh(jh);
sjZtgjsj.setLjjh(item.getJh());
sjZtgjsjList.add(sjZtgjsj);
});
if(sjZtgjsjList.size()>0){
sjZtgjsjMapper.deleteSjZtgjsjByJh(jh);
sjZtgjsjMapper.insertSjZtgjsjBatch(sjZtgjsjList);
}
//区块钻头分析
List<DjZtfx> djZtfxList = djdcService.getDjZtfxList(param);
List<SjQkztfx> sjQkztfxList=new ArrayList<>();
djZtfxList.forEach(item->{
SjQkztfx sjQkztfx=new SjQkztfx();
BeanUtils.copyProperties(item,sjQkztfx);
sjQkztfx.setJh(jh);
sjQkztfxList.add(sjQkztfx);
});
if(sjQkztfxList.size()>0){
sjQkztfxMapper.deleteSjQkztfxByJh(jh);
sjQkztfxMapper.insertSjQkztfxBatch(sjQkztfxList);
}
//实钻分析结果
SjJsjg sjJsjg =new SjJsjg();
sjJsjg.setJh(jh);
List<SjJsjg> sjJsjgList = sjJsjgMapper.selectSjJsjgList(sjJsjg);
List<SjInfo> sjInfoList=new ArrayList<>();
for(int i=0;i<sjJsjgList.size();i++){
SjInfo sjInfo =new SjInfo();
sjInfo.setKc((i+1)+"");
sjInfo.setZtcc(sjJsjgList.get(0).getZtzj());
sjInfoList.add(sjInfo);
}
param.setSj(sjInfoList);
List<LjSzfxjg> ljSzfxjgList=djdcService.getSztfxjgList(djZtfxList,djjcList,param);
List<SjSzfxjg> sjSzfxjgList=new ArrayList<>();
ljSzfxjgList.forEach(item->{
SjSzfxjg sjSzfxjg=new SjSzfxjg();
BeanUtils.copyProperties(item,sjSzfxjg);
sjSzfxjg.setJh(jh);
sjSzfxjgList.add(sjSzfxjg);
});
if(sjSzfxjgList.size()>0){
sjSzfxjgMapper.deleteSjSzfxjgByJh(jh);
sjSzfxjgMapper.insertSjSzfxjgBatch(sjSzfxjgList);
}
return AjaxResult.success();
}
} }
...@@ -16,6 +16,8 @@ public class CommonParam { ...@@ -16,6 +16,8 @@ public class CommonParam {
private String exportPath; private String exportPath;
//井号 //井号
private String jh; private String jh;
//设计井号
private String sjjh;
//井型 //井型
private List<String> jxs; private List<String> jxs;
......
...@@ -45,4 +45,6 @@ public interface DjdcService { ...@@ -45,4 +45,6 @@ public interface DjdcService {
List<LjDzfc> getDzfcList(CommonParam param); List<LjDzfc> getDzfcList(CommonParam param);
List<LjSzfxjg> getSztfxjgList(List<DjZtfx> djZtfxList, List<Djjc> djjcList, CommonParam param);
} }
...@@ -106,6 +106,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -106,6 +106,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="jdzjl != null">#{jdzjl},</if> <if test="jdzjl != null">#{jdzjl},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjLjjwBatch">
INSERT INTO sj_ljjw
(
jh, ljjh, jx, wjjs, wjczjs, wzcw, kc, zjzq, wjzq,
jkjl, jdjl, jkhzb, jkzzb, jkhjl, jkzjl,
jdhzb, jdzzb, jdhjl, jdzjl
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.ljjh},
#{item.jx},
#{item.wjjs},
#{item.wjczjs},
#{item.wzcw},
#{item.kc},
#{item.zjzq},
#{item.wjzq},
#{item.jkjl},
#{item.jdjl},
#{item.jkhzb},
#{item.jkzzb},
#{item.jkhjl},
#{item.jkzjl},
#{item.jdhzb},
#{item.jdzzb},
#{item.jdhjl},
#{item.jdzjl}
)
</foreach>
</insert>
<update id="updateSjLjjw" parameterType="SjLjjw"> <update id="updateSjLjjw" parameterType="SjLjjw">
update sj_ljjw update sj_ljjw
...@@ -143,4 +176,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -143,4 +176,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjLjjwByJh">
delete from sj_ljjw where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -94,6 +94,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -94,6 +94,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="qsjsZw != null">#{qsjsZw},</if> <if test="qsjsZw != null">#{qsjsZw},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjQkztfxBatch">
INSERT INTO sj_qkztfx
(
jh, kc, ztxh, cj, cc, ztsl,
ytzl, etzl, stzl, sitzl, wtzl,
jc_zw, jc_max, jxzs_zw, jxzs_max, qsjs_zw
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.kc},
#{item.ztxh},
#{item.cj},
#{item.cc},
#{item.ztsl},
#{item.ytzl},
#{item.etzl},
#{item.stzl},
#{item.sitzl},
#{item.wtzl},
#{item.jcZw},
#{item.jcMax},
#{item.jxzsZw},
#{item.jxzsMax},
#{item.qsjsZw}
)
</foreach>
</insert>
<update id="updateSjQkztfx" parameterType="SjQkztfx"> <update id="updateSjQkztfx" parameterType="SjQkztfx">
update sj_qkztfx update sj_qkztfx
...@@ -128,4 +158,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -128,4 +158,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjQkztfxByJh">
delete from sj_qkztfx where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -19,15 +19,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -19,15 +19,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="createdTime" column="created_time" /> <result property="createdTime" column="created_time" />
<result property="updateBy" column="update_by" /> <result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="jh" column="jh" />
</resultMap> </resultMap>
<sql id="selectSjSzfxjgVo"> <sql id="selectSjSzfxjgVo">
select id, fxfw, fxdx, fxxy, fxjl, scfx, yxyj, zyjy, qcyj, tjpf, created_by, created_time, update_by, update_time from sj_szfxjg select id, jh,fxfw, fxdx, fxxy, fxjl, scfx, yxyj, zyjy, qcyj, tjpf, created_by, created_time, update_by, update_time from sj_szfxjg
</sql> </sql>
<select id="selectSjSzfxjgList" parameterType="SjSzfxjg" resultMap="SjSzfxjgResult"> <select id="selectSjSzfxjgList" parameterType="SjSzfxjg" resultMap="SjSzfxjgResult">
<include refid="selectSjSzfxjgVo"/> <include refid="selectSjSzfxjgVo"/>
<where> <where>
<if test="jh != null and jh != ''"> and jh = #{jh}</if>
<if test="fxfw != null and fxfw != ''"> and fxfw = #{fxfw}</if> <if test="fxfw != null and fxfw != ''"> and fxfw = #{fxfw}</if>
<if test="fxdx != null and fxdx != ''"> and fxdx = #{fxdx}</if> <if test="fxdx != null and fxdx != ''"> and fxdx = #{fxdx}</if>
<if test="fxxy != null and fxxy != ''"> and fxxy = #{fxxy}</if> <if test="fxxy != null and fxxy != ''"> and fxxy = #{fxxy}</if>
...@@ -63,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -63,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdTime != null">created_time,</if> <if test="createdTime != null">created_time,</if>
<if test="updateBy != null">update_by,</if> <if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="jh != null">jh,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="fxfw != null">#{fxfw},</if> <if test="fxfw != null">#{fxfw},</if>
...@@ -78,8 +81,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -78,8 +81,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdTime != null">#{createdTime},</if> <if test="createdTime != null">#{createdTime},</if>
<if test="updateBy != null">#{updateBy},</if> <if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="jh != null">#{jh},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjSzfxjgBatch">
INSERT INTO sj_szfxjg
(
jh,fxfw, fxdx, fxxy, fxjl, scfx,
yxyj, zyjy, qcyj, tjpf,
created_by, created_time, update_by, update_time
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.fxfw},
#{item.fxdx},
#{item.fxxy},
#{item.fxjl},
#{item.scfx},
#{item.yxyj},
#{item.zyjy},
#{item.qcyj},
#{item.tjpf},
#{item.createdBy},
#{item.createdTime},
#{item.updateBy},
#{item.updateTime}
)
</foreach>
</insert>
<update id="updateSjSzfxjg" parameterType="SjSzfxjg"> <update id="updateSjSzfxjg" parameterType="SjSzfxjg">
update sj_szfxjg update sj_szfxjg
...@@ -97,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -97,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createdTime != null">created_time = #{createdTime},</if> <if test="createdTime != null">created_time = #{createdTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if> <if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="jh != null">jh = #{jh},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
...@@ -111,4 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -111,4 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjSzfxjgByJh">
delete from sj_szfxjg where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -98,6 +98,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -98,6 +98,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="wjycms != null">#{wjycms},</if> <if test="wjycms != null">#{wjycms},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjZqfxBatch">
INSERT INTO sj_zqfx
(
jh, ljjh, jtm, ksjs, js, kc, jc, cw,
zjzq, zjycsl, zjsczq, zjsl, zwzq,
wjycsl, wjsczq, zjycms, wjycms
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.ljjh},
#{item.jtm},
#{item.ksjs},
#{item.js},
#{item.kc},
#{item.jc},
#{item.cw},
#{item.zjzq},
#{item.zjycsl},
#{item.zjsczq},
#{item.zjsl},
#{item.zwzq},
#{item.wjycsl},
#{item.wjsczq},
#{item.zjycms},
#{item.wjycms}
)
</foreach>
</insert>
<update id="updateSjZqfx" parameterType="SjZqfx"> <update id="updateSjZqfx" parameterType="SjZqfx">
update sj_zqfx update sj_zqfx
...@@ -133,4 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -133,4 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjZqfxByJh">
delete from sj_zqfx where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -94,6 +94,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -94,6 +94,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="zb != null">#{zb},</if> <if test="zb != null">#{zb},</if>
</trim> </trim>
</insert> </insert>
<insert id="insertSjZtgjsjBatch">
INSERT INTO sj_ztgjsj
(
jh, ljjh, kc, jd, ztcc, ztxh, pz, mxqk,
qzyy, cw, zjymd, pl, lgby, jc, jxzs, zb
)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.jh},
#{item.ljjh},
#{item.kc},
#{item.jd},
#{item.ztcc},
#{item.ztxh},
#{item.pz},
#{item.mxqk},
#{item.qzyy},
#{item.cw},
#{item.zjymd},
#{item.pl},
#{item.lgby},
#{item.jc},
#{item.jxzs},
#{item.zb}
)
</foreach>
</insert>
<update id="updateSjZtgjsj" parameterType="SjZtgjsj"> <update id="updateSjZtgjsj" parameterType="SjZtgjsj">
update sj_ztgjsj update sj_ztgjsj
...@@ -128,4 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -128,4 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteSjZtgjsjByJh">
delete from sj_ztgjsj where jh = #{jh}
</delete>
</mapper> </mapper>
\ No newline at end of file
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