后台优化
parent
58e3b9ea31
commit
68326ec902
@ -1,103 +0,0 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.dao.CommomMapper;
|
||||
import com.emr.dao.Emr_DictionaryMapper;
|
||||
import com.emr.dao.emrCode.T_DiagMapper;
|
||||
import com.emr.dao.emrCode.T_OperateMapper;
|
||||
import com.emr.dao.tBoby.TBabyMapper;
|
||||
import com.emr.dao.tTumour.TTumourChemotherapyMapper;
|
||||
import com.emr.entity.Emr_Dictionary;
|
||||
import com.emr.entity.Power_User;
|
||||
import com.emr.entity.ResultUtil;
|
||||
import com.emr.entity.emrCode.T_Diag;
|
||||
import com.emr.entity.emrCode.T_Operate;
|
||||
import com.emr.entity.tBoby.TBaby;
|
||||
import com.emr.entity.tTumour.TTumourChemotherapy;
|
||||
import com.emr.service.CommomService;
|
||||
import com.emr.service.his.HisService;
|
||||
import com.emr.vo.User;
|
||||
import com.emr.vo.commomSearch.CommomVo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2020/1/14 17:16
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2020/1/14 17:16
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("his/")
|
||||
public class HisController {
|
||||
@Autowired
|
||||
private HisService hisService;
|
||||
@Autowired
|
||||
private CommomMapper commomMapper;
|
||||
@Autowired
|
||||
private T_DiagMapper diagMapper;
|
||||
@Autowired
|
||||
private T_OperateMapper operateMapper;
|
||||
@Autowired
|
||||
private TBabyMapper babyMapper;
|
||||
@Autowired
|
||||
private TTumourChemotherapyMapper tumourChemotherapyMapper;
|
||||
@Autowired
|
||||
private Emr_DictionaryMapper dictionaryMapper;
|
||||
@Autowired
|
||||
private CommomService commomService;
|
||||
@PostMapping("saveProvincial")
|
||||
@ResponseBody
|
||||
public ResultUtil saveProvincial(String patientId, HttpServletRequest request) throws Exception{
|
||||
//查询基本信息
|
||||
String sql = "SELECT commomtable.*,commomtable1.*,t_charge.case_type FROM commomtable LEFT JOIN commomtable1 ON commomtable.patient_id = commomtable1.patient_id LEFT JOIN t_charge on commomtable.patient_id = t_charge.patient_id" +
|
||||
" WHERE commomtable.patient_id = '"+ patientId +"'";
|
||||
List<CommomVo> commomVos = commomMapper.selectAll(sql);
|
||||
if(null != commomVos && !commomVos.isEmpty()){
|
||||
//查询一对多诊断记录
|
||||
List<T_Diag> diags = diagMapper.selectAllByPatientId(patientId, null);
|
||||
//查询一对多手术记录
|
||||
List<T_Operate> operates = operateMapper.selectAllByPatientId(patientId, null);
|
||||
//查询一对多婴儿记录
|
||||
List<TBaby> babies = babyMapper.selectAllByPatientId(patientId, null);
|
||||
//查询一对多化疗记录
|
||||
List<TTumourChemotherapy> tTumourChemotherapies = tumourChemotherapyMapper.selectByPatientId(patientId);
|
||||
//查询相关字典
|
||||
String typeCodes = "'sex_code','country','nation_code','marital_status','dept_code','quality_level','idDeadPsy_code','blood_type','rh_code','recordType_code'," +
|
||||
"'job','admiss_type','clinicalRecord_code','isDrugAllergy_code','zd_dis_type','isAdmissPlan_code','pay_type','admiss_thing','cut_code','heal_code','anaesthesia','whether','operate_class','childbirthResult_code','childStatus_code','breath_code','radiotherapy_type_code','radiotherapy_program_code'," +
|
||||
"'radiotherapy_device_code','chemotherapy_type_code','chemotherapy_method_code','curative_effect_code','cut_heal_grade'";
|
||||
List<Emr_Dictionary> dictionarys = dictionaryMapper.getDictionaryByTypeCodes(typeCodes);
|
||||
//查询用户列表
|
||||
Power_User user = (Power_User) request.getSession().getAttribute("CURRENT_USER");
|
||||
List<User> userList = commomService.getUserList(user.getUserName(), request);
|
||||
CommomVo commomVo = commomVos.get(0);
|
||||
//插入HIS_BA1基本信息表
|
||||
hisService.insertHisBa1(commomVo,dictionarys,userList,babies,operates.size());
|
||||
//插入HIS_BA6 HIS_病人转科情况
|
||||
hisService.insertHisBa2(commomVo,dictionarys);
|
||||
//插入HIS_BA3 病人诊断信息
|
||||
hisService.insertHisBa3(commomVo,dictionarys,diags);
|
||||
//插入HIS_BA4 病人手术信息
|
||||
hisService.insertHisBa4(commomVo,dictionarys,operates,userList);
|
||||
//插入HIS_BA5 妇婴卡
|
||||
hisService.insertHisBa5(commomVo,dictionarys,babies);
|
||||
//插入HIS_BA6 肿瘤卡
|
||||
hisService.insertHisBa6(commomVo,dictionarys);
|
||||
//插入HIS_BA7 化疗卡
|
||||
hisService.insertHisBa7(commomVo,dictionarys,tTumourChemotherapies);
|
||||
}
|
||||
return ResultUtil.ok();
|
||||
}
|
||||
}
|
||||
@ -1,22 +0,0 @@
|
||||
package com.emr.dao.his;
|
||||
|
||||
import com.emr.entity.his.HISBA1;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HISBA1Mapper {
|
||||
int deleteByPrimaryKey(Long fid);
|
||||
|
||||
int insert(HISBA1 record);
|
||||
|
||||
int insertSelective(HISBA1 record);
|
||||
|
||||
HISBA1 selectByPrimaryKey(Long fid);
|
||||
|
||||
int updateByPrimaryKeySelective(HISBA1 record);
|
||||
|
||||
int updateByPrimaryKey(HISBA1 record);
|
||||
|
||||
List<HISBA1> selectAllByParam(@Param("fprn") String fprn, @Param("ftimes") Integer ftimes);
|
||||
}
|
||||
@ -1,29 +0,0 @@
|
||||
package com.emr.dao.his;
|
||||
|
||||
import com.emr.entity.his.HISBA1;
|
||||
import com.emr.entity.his.HISBA2;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HISBA2Mapper {
|
||||
int deleteByPrimaryKey(Long fid);
|
||||
|
||||
int insert(HISBA2 record);
|
||||
|
||||
int insertSelective(HISBA2 record);
|
||||
|
||||
HISBA2 selectByPrimaryKey(Long fid);
|
||||
|
||||
int updateByPrimaryKeySelective(HISBA2 record);
|
||||
|
||||
int updateByPrimaryKey(HISBA2 record);
|
||||
|
||||
List<HISBA2> selectAllByParam(@Param("fprn") String fprn, @Param("ftimes") Integer ftimes);
|
||||
|
||||
int SimpleInsert(@Param("list")List<HISBA2> list);
|
||||
|
||||
int SimpleUpdate(@Param("list")List<HISBA2> list);
|
||||
|
||||
int SimpleDelete(@Param("ids")String ids);
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
package com.emr.dao.his;
|
||||
|
||||
import com.emr.entity.his.HISBA3;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HISBA3Mapper {
|
||||
int deleteByPrimaryKey(Long fid);
|
||||
|
||||
int insert(HISBA3 record);
|
||||
|
||||
int insertSelective(HISBA3 record);
|
||||
|
||||
HISBA3 selectByPrimaryKey(Long fid);
|
||||
|
||||
int updateByPrimaryKeySelective(HISBA3 record);
|
||||
|
||||
int updateByPrimaryKey(HISBA3 record);
|
||||
|
||||
List<HISBA3> selectAllByParam(@Param("fprn") String fprn, @Param("ftimes") Integer ftimes);
|
||||
|
||||
//批量删除
|
||||
int deleteAllByParam(@Param("fprn") String fprn, @Param("ftimes") Integer ftimes);
|
||||
//批量添加
|
||||
int SimpleInsert(@Param("list")List<HISBA3> list);
|
||||
}
|
||||
@ -1,26 +0,0 @@
|
||||
package com.emr.dao.his;
|
||||
|
||||
import com.emr.entity.his.HISBA4;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HISBA4Mapper {
|
||||
int deleteByPrimaryKey(Long fid);
|
||||
|
||||
int insert(HISBA4 record);
|
||||
|
||||
int insertSelective(HISBA4 record);
|
||||
|
||||
HISBA4 selectByPrimaryKey(Long fid);
|
||||
|
||||
int updateByPrimaryKeySelective(HISBA4 record);
|
||||
|
||||
int updateByPrimaryKey(HISBA4 record);
|
||||
|
||||
List<HISBA4> selectAllByParam(@Param("fprn") String fprn, @Param("ftimes") Integer ftimes);
|
||||
//批量删除
|
||||
int deleteAllByParam(@Param("fprn") String fprn, @Param("ftimes") Integer ftimes);
|
||||
//批量添加
|
||||
int SimpleInsert(@Param("list")List<HISBA4> list);
|
||||
}
|
||||
@ -1,26 +0,0 @@
|
||||
package com.emr.dao.his;
|
||||
|
||||
import com.emr.entity.his.HISBA5;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HISBA5Mapper {
|
||||
int deleteByPrimaryKey(Long fid);
|
||||
|
||||
int insert(HISBA5 record);
|
||||
|
||||
int insertSelective(HISBA5 record);
|
||||
|
||||
HISBA5 selectByPrimaryKey(Long fid);
|
||||
|
||||
int updateByPrimaryKeySelective(HISBA5 record);
|
||||
|
||||
int updateByPrimaryKey(HISBA5 record);
|
||||
|
||||
List<HISBA5> selectAllByParam(@Param("fprn") String fprn, @Param("ftimes") Integer ftimes);
|
||||
//批量删除
|
||||
int deleteAllByParam(@Param("fprn") String fprn, @Param("ftimes") Integer ftimes);
|
||||
//批量添加
|
||||
int SimpleInsert(@Param("list")List<HISBA5> list);
|
||||
}
|
||||
@ -1,23 +0,0 @@
|
||||
package com.emr.dao.his;
|
||||
|
||||
import com.emr.entity.his.HISBA1;
|
||||
import com.emr.entity.his.HISBA6;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HISBA6Mapper {
|
||||
int deleteByPrimaryKey(Long fid);
|
||||
|
||||
int insert(HISBA6 record);
|
||||
|
||||
int insertSelective(HISBA6 record);
|
||||
|
||||
HISBA6 selectByPrimaryKey(Long fid);
|
||||
|
||||
int updateByPrimaryKeySelective(HISBA6 record);
|
||||
|
||||
int updateByPrimaryKey(HISBA6 record);
|
||||
|
||||
List<HISBA6> selectAllByParam(@Param("fprn") String fprn, @Param("ftimes") Short ftimes);
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
package com.emr.dao.his;
|
||||
|
||||
import com.emr.entity.his.HISBA7;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HISBA7Mapper {
|
||||
int deleteByPrimaryKey(Long fid);
|
||||
|
||||
int insert(HISBA7 record);
|
||||
|
||||
int insertSelective(HISBA7 record);
|
||||
|
||||
HISBA7 selectByPrimaryKey(Long fid);
|
||||
|
||||
int updateByPrimaryKeySelective(HISBA7 record);
|
||||
|
||||
int updateByPrimaryKey(HISBA7 record);
|
||||
|
||||
List<HISBA7> selectAllByParam(@Param("fprn") String fprn, @Param("ftimes") Integer ftimes);
|
||||
|
||||
//批量删除
|
||||
int deleteAllByParam(@Param("fprn") String fprn, @Param("ftimes") Integer ftimes);
|
||||
//批量添加
|
||||
int SimpleInsert(@Param("list")List<HISBA7> list);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,75 +0,0 @@
|
||||
package com.emr.entity.his;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class HISBA2 {
|
||||
private Long fid;
|
||||
|
||||
private String fprn;
|
||||
|
||||
private Integer ftimes;
|
||||
|
||||
private String fzktykh;
|
||||
|
||||
private String fzkdept;
|
||||
|
||||
private Date fzkdate;
|
||||
|
||||
private String fzktime;
|
||||
|
||||
public Long getFid() {
|
||||
return fid;
|
||||
}
|
||||
|
||||
public void setFid(Long fid) {
|
||||
this.fid = fid;
|
||||
}
|
||||
|
||||
public String getFprn() {
|
||||
return fprn;
|
||||
}
|
||||
|
||||
public void setFprn(String fprn) {
|
||||
this.fprn = fprn == null ? null : fprn.trim();
|
||||
}
|
||||
|
||||
public Integer getFtimes() {
|
||||
return ftimes;
|
||||
}
|
||||
|
||||
public void setFtimes(Integer ftimes) {
|
||||
this.ftimes = ftimes;
|
||||
}
|
||||
|
||||
public String getFzktykh() {
|
||||
return fzktykh;
|
||||
}
|
||||
|
||||
public void setFzktykh(String fzktykh) {
|
||||
this.fzktykh = fzktykh == null ? null : fzktykh.trim();
|
||||
}
|
||||
|
||||
public String getFzkdept() {
|
||||
return fzkdept;
|
||||
}
|
||||
|
||||
public void setFzkdept(String fzkdept) {
|
||||
this.fzkdept = fzkdept == null ? null : fzkdept.trim();
|
||||
}
|
||||
|
||||
public Date getFzkdate() {
|
||||
return fzkdate;
|
||||
}
|
||||
|
||||
public void setFzkdate(Date fzkdate) {
|
||||
this.fzkdate = fzkdate;
|
||||
}
|
||||
|
||||
public String getFzktime() {
|
||||
return fzktime;
|
||||
}
|
||||
|
||||
public void setFzktime(String fzktime) {
|
||||
this.fzktime = fzktime == null ? null : fzktime.trim();
|
||||
}
|
||||
}
|
||||
@ -1,113 +0,0 @@
|
||||
package com.emr.entity.his;
|
||||
|
||||
public class HISBA3 {
|
||||
private Long fid;
|
||||
|
||||
private String fprn;
|
||||
|
||||
private Integer ftimes;
|
||||
|
||||
private String fzdlx;
|
||||
|
||||
private Byte ficdversion;
|
||||
|
||||
private String ficdm;
|
||||
|
||||
private String fjbname;
|
||||
|
||||
private String fzljgbh;
|
||||
|
||||
private String fzljg;
|
||||
|
||||
private String frybqbh;
|
||||
|
||||
private String frybq;
|
||||
|
||||
public Long getFid() {
|
||||
return fid;
|
||||
}
|
||||
|
||||
public void setFid(Long fid) {
|
||||
this.fid = fid;
|
||||
}
|
||||
|
||||
public String getFprn() {
|
||||
return fprn;
|
||||
}
|
||||
|
||||
public void setFprn(String fprn) {
|
||||
this.fprn = fprn == null ? null : fprn.trim();
|
||||
}
|
||||
|
||||
public Integer getFtimes() {
|
||||
return ftimes;
|
||||
}
|
||||
|
||||
public void setFtimes(Integer ftimes) {
|
||||
this.ftimes = ftimes;
|
||||
}
|
||||
|
||||
public String getFzdlx() {
|
||||
return fzdlx;
|
||||
}
|
||||
|
||||
public void setFzdlx(String fzdlx) {
|
||||
this.fzdlx = fzdlx == null ? null : fzdlx.trim();
|
||||
}
|
||||
|
||||
public Byte getFicdversion() {
|
||||
return ficdversion;
|
||||
}
|
||||
|
||||
public void setFicdversion(Byte ficdversion) {
|
||||
this.ficdversion = ficdversion;
|
||||
}
|
||||
|
||||
public String getFicdm() {
|
||||
return ficdm;
|
||||
}
|
||||
|
||||
public void setFicdm(String ficdm) {
|
||||
this.ficdm = ficdm == null ? null : ficdm.trim();
|
||||
}
|
||||
|
||||
public String getFjbname() {
|
||||
return fjbname;
|
||||
}
|
||||
|
||||
public void setFjbname(String fjbname) {
|
||||
this.fjbname = fjbname == null ? null : fjbname.trim();
|
||||
}
|
||||
|
||||
public String getFzljgbh() {
|
||||
return fzljgbh;
|
||||
}
|
||||
|
||||
public void setFzljgbh(String fzljgbh) {
|
||||
this.fzljgbh = fzljgbh == null ? null : fzljgbh.trim();
|
||||
}
|
||||
|
||||
public String getFzljg() {
|
||||
return fzljg;
|
||||
}
|
||||
|
||||
public void setFzljg(String fzljg) {
|
||||
this.fzljg = fzljg == null ? null : fzljg.trim();
|
||||
}
|
||||
|
||||
public String getFrybqbh() {
|
||||
return frybqbh;
|
||||
}
|
||||
|
||||
public void setFrybqbh(String frybqbh) {
|
||||
this.frybqbh = frybqbh == null ? null : frybqbh.trim();
|
||||
}
|
||||
|
||||
public String getFrybq() {
|
||||
return frybq;
|
||||
}
|
||||
|
||||
public void setFrybq(String frybq) {
|
||||
this.frybq = frybq == null ? null : frybq.trim();
|
||||
}
|
||||
}
|
||||
@ -1,295 +0,0 @@
|
||||
package com.emr.entity.his;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class HISBA4 {
|
||||
private Long fid;
|
||||
|
||||
private String fprn;
|
||||
|
||||
private Integer ftimes;
|
||||
|
||||
private String fname;
|
||||
|
||||
private Integer foptimes;
|
||||
|
||||
private String fopcode;
|
||||
|
||||
private String fop;
|
||||
|
||||
private Date fopdate;
|
||||
|
||||
private String fqiekoubh;
|
||||
|
||||
private String fqiekou;
|
||||
|
||||
private String fyuhebh;
|
||||
|
||||
private String fyuhe;
|
||||
|
||||
private String fdocbh;
|
||||
|
||||
private String fdocname;
|
||||
|
||||
private String fmazuibh;
|
||||
|
||||
private String fmazui;
|
||||
|
||||
private Boolean fiffsop;
|
||||
|
||||
private String fopdoct1bh;
|
||||
|
||||
private String fopdoct1;
|
||||
|
||||
private String fopdoct2bh;
|
||||
|
||||
private String fopdoct2;
|
||||
|
||||
private String fmzdoctbh;
|
||||
|
||||
private String fmzdoct;
|
||||
|
||||
private String foptykh;
|
||||
|
||||
private String fopksname;
|
||||
|
||||
private String fzqssbh;
|
||||
|
||||
private String fzqss;
|
||||
|
||||
private String fssjbbh;
|
||||
|
||||
private String fssjb;
|
||||
|
||||
public Long getFid() {
|
||||
return fid;
|
||||
}
|
||||
|
||||
public void setFid(Long fid) {
|
||||
this.fid = fid;
|
||||
}
|
||||
|
||||
public String getFprn() {
|
||||
return fprn;
|
||||
}
|
||||
|
||||
public void setFprn(String fprn) {
|
||||
this.fprn = fprn == null ? null : fprn.trim();
|
||||
}
|
||||
|
||||
public Integer getFtimes() {
|
||||
return ftimes;
|
||||
}
|
||||
|
||||
public void setFtimes(Integer ftimes) {
|
||||
this.ftimes = ftimes;
|
||||
}
|
||||
|
||||
public String getFname() {
|
||||
return fname;
|
||||
}
|
||||
|
||||
public void setFname(String fname) {
|
||||
this.fname = fname == null ? null : fname.trim();
|
||||
}
|
||||
|
||||
public Integer getFoptimes() {
|
||||
return foptimes;
|
||||
}
|
||||
|
||||
public void setFoptimes(Integer foptimes) {
|
||||
this.foptimes = foptimes;
|
||||
}
|
||||
|
||||
public String getFopcode() {
|
||||
return fopcode;
|
||||
}
|
||||
|
||||
public void setFopcode(String fopcode) {
|
||||
this.fopcode = fopcode == null ? null : fopcode.trim();
|
||||
}
|
||||
|
||||
public String getFop() {
|
||||
return fop;
|
||||
}
|
||||
|
||||
public void setFop(String fop) {
|
||||
this.fop = fop == null ? null : fop.trim();
|
||||
}
|
||||
|
||||
public Date getFopdate() {
|
||||
return fopdate;
|
||||
}
|
||||
|
||||
public void setFopdate(Date fopdate) {
|
||||
this.fopdate = fopdate;
|
||||
}
|
||||
|
||||
public String getFqiekoubh() {
|
||||
return fqiekoubh;
|
||||
}
|
||||
|
||||
public void setFqiekoubh(String fqiekoubh) {
|
||||
this.fqiekoubh = fqiekoubh == null ? null : fqiekoubh.trim();
|
||||
}
|
||||
|
||||
public String getFqiekou() {
|
||||
return fqiekou;
|
||||
}
|
||||
|
||||
public void setFqiekou(String fqiekou) {
|
||||
this.fqiekou = fqiekou == null ? null : fqiekou.trim();
|
||||
}
|
||||
|
||||
public String getFyuhebh() {
|
||||
return fyuhebh;
|
||||
}
|
||||
|
||||
public void setFyuhebh(String fyuhebh) {
|
||||
this.fyuhebh = fyuhebh == null ? null : fyuhebh.trim();
|
||||
}
|
||||
|
||||
public String getFyuhe() {
|
||||
return fyuhe;
|
||||
}
|
||||
|
||||
public void setFyuhe(String fyuhe) {
|
||||
this.fyuhe = fyuhe == null ? null : fyuhe.trim();
|
||||
}
|
||||
|
||||
public String getFdocbh() {
|
||||
return fdocbh;
|
||||
}
|
||||
|
||||
public void setFdocbh(String fdocbh) {
|
||||
this.fdocbh = fdocbh == null ? null : fdocbh.trim();
|
||||
}
|
||||
|
||||
public String getFdocname() {
|
||||
return fdocname;
|
||||
}
|
||||
|
||||
public void setFdocname(String fdocname) {
|
||||
this.fdocname = fdocname == null ? null : fdocname.trim();
|
||||
}
|
||||
|
||||
public String getFmazuibh() {
|
||||
return fmazuibh;
|
||||
}
|
||||
|
||||
public void setFmazuibh(String fmazuibh) {
|
||||
this.fmazuibh = fmazuibh == null ? null : fmazuibh.trim();
|
||||
}
|
||||
|
||||
public String getFmazui() {
|
||||
return fmazui;
|
||||
}
|
||||
|
||||
public void setFmazui(String fmazui) {
|
||||
this.fmazui = fmazui == null ? null : fmazui.trim();
|
||||
}
|
||||
|
||||
public Boolean getFiffsop() {
|
||||
return fiffsop;
|
||||
}
|
||||
|
||||
public void setFiffsop(Boolean fiffsop) {
|
||||
this.fiffsop = fiffsop;
|
||||
}
|
||||
|
||||
public String getFopdoct1bh() {
|
||||
return fopdoct1bh;
|
||||
}
|
||||
|
||||
public void setFopdoct1bh(String fopdoct1bh) {
|
||||
this.fopdoct1bh = fopdoct1bh == null ? null : fopdoct1bh.trim();
|
||||
}
|
||||
|
||||
public String getFopdoct1() {
|
||||
return fopdoct1;
|
||||
}
|
||||
|
||||
public void setFopdoct1(String fopdoct1) {
|
||||
this.fopdoct1 = fopdoct1 == null ? null : fopdoct1.trim();
|
||||
}
|
||||
|
||||
public String getFopdoct2bh() {
|
||||
return fopdoct2bh;
|
||||
}
|
||||
|
||||
public void setFopdoct2bh(String fopdoct2bh) {
|
||||
this.fopdoct2bh = fopdoct2bh == null ? null : fopdoct2bh.trim();
|
||||
}
|
||||
|
||||
public String getFopdoct2() {
|
||||
return fopdoct2;
|
||||
}
|
||||
|
||||
public void setFopdoct2(String fopdoct2) {
|
||||
this.fopdoct2 = fopdoct2 == null ? null : fopdoct2.trim();
|
||||
}
|
||||
|
||||
public String getFmzdoctbh() {
|
||||
return fmzdoctbh;
|
||||
}
|
||||
|
||||
public void setFmzdoctbh(String fmzdoctbh) {
|
||||
this.fmzdoctbh = fmzdoctbh == null ? null : fmzdoctbh.trim();
|
||||
}
|
||||
|
||||
public String getFmzdoct() {
|
||||
return fmzdoct;
|
||||
}
|
||||
|
||||
public void setFmzdoct(String fmzdoct) {
|
||||
this.fmzdoct = fmzdoct == null ? null : fmzdoct.trim();
|
||||
}
|
||||
|
||||
public String getFoptykh() {
|
||||
return foptykh;
|
||||
}
|
||||
|
||||
public void setFoptykh(String foptykh) {
|
||||
this.foptykh = foptykh == null ? null : foptykh.trim();
|
||||
}
|
||||
|
||||
public String getFopksname() {
|
||||
return fopksname;
|
||||
}
|
||||
|
||||
public void setFopksname(String fopksname) {
|
||||
this.fopksname = fopksname == null ? null : fopksname.trim();
|
||||
}
|
||||
|
||||
public String getFzqssbh() {
|
||||
return fzqssbh;
|
||||
}
|
||||
|
||||
public void setFzqssbh(String fzqssbh) {
|
||||
this.fzqssbh = fzqssbh == null ? null : fzqssbh.trim();
|
||||
}
|
||||
|
||||
public String getFzqss() {
|
||||
return fzqss;
|
||||
}
|
||||
|
||||
public void setFzqss(String fzqss) {
|
||||
this.fzqss = fzqss == null ? null : fzqss.trim();
|
||||
}
|
||||
|
||||
public String getFssjbbh() {
|
||||
return fssjbbh;
|
||||
}
|
||||
|
||||
public void setFssjbbh(String fssjbbh) {
|
||||
this.fssjbbh = fssjbbh == null ? null : fssjbbh.trim();
|
||||
}
|
||||
|
||||
public String getFssjb() {
|
||||
return fssjb;
|
||||
}
|
||||
|
||||
public void setFssjb(String fssjb) {
|
||||
this.fssjb = fssjb == null ? null : fssjb.trim();
|
||||
}
|
||||
}
|
||||
@ -1,193 +0,0 @@
|
||||
package com.emr.entity.his;
|
||||
|
||||
public class HISBA5 {
|
||||
private Long fid;
|
||||
|
||||
private String fprn;
|
||||
|
||||
private Integer ftimes;
|
||||
|
||||
private Integer fbabynum;
|
||||
|
||||
private String fname;
|
||||
|
||||
private String fbabysexbh;
|
||||
|
||||
private String fbabysex;
|
||||
|
||||
private Double ftz;
|
||||
|
||||
private String fresultbh;
|
||||
|
||||
private String fresult;
|
||||
|
||||
private String fzgbh;
|
||||
|
||||
private String fzg;
|
||||
|
||||
private String fgricd10;
|
||||
|
||||
private String fgrname;
|
||||
|
||||
private Integer fbabygr;
|
||||
|
||||
private Integer fbabyqj;
|
||||
|
||||
private Integer fbabysuc;
|
||||
|
||||
private String fhxbh;
|
||||
|
||||
private String fhx;
|
||||
|
||||
public Long getFid() {
|
||||
return fid;
|
||||
}
|
||||
|
||||
public void setFid(Long fid) {
|
||||
this.fid = fid;
|
||||
}
|
||||
|
||||
public String getFprn() {
|
||||
return fprn;
|
||||
}
|
||||
|
||||
public void setFprn(String fprn) {
|
||||
this.fprn = fprn == null ? null : fprn.trim();
|
||||
}
|
||||
|
||||
public Integer getFtimes() {
|
||||
return ftimes;
|
||||
}
|
||||
|
||||
public void setFtimes(Integer ftimes) {
|
||||
this.ftimes = ftimes;
|
||||
}
|
||||
|
||||
public Integer getFbabynum() {
|
||||
return fbabynum;
|
||||
}
|
||||
|
||||
public void setFbabynum(Integer fbabynum) {
|
||||
this.fbabynum = fbabynum;
|
||||
}
|
||||
|
||||
public String getFname() {
|
||||
return fname;
|
||||
}
|
||||
|
||||
public void setFname(String fname) {
|
||||
this.fname = fname == null ? null : fname.trim();
|
||||
}
|
||||
|
||||
public String getFbabysexbh() {
|
||||
return fbabysexbh;
|
||||
}
|
||||
|
||||
public void setFbabysexbh(String fbabysexbh) {
|
||||
this.fbabysexbh = fbabysexbh == null ? null : fbabysexbh.trim();
|
||||
}
|
||||
|
||||
public String getFbabysex() {
|
||||
return fbabysex;
|
||||
}
|
||||
|
||||
public void setFbabysex(String fbabysex) {
|
||||
this.fbabysex = fbabysex == null ? null : fbabysex.trim();
|
||||
}
|
||||
|
||||
public Double getFtz() {
|
||||
return ftz;
|
||||
}
|
||||
|
||||
public void setFtz(Double ftz) {
|
||||
this.ftz = ftz;
|
||||
}
|
||||
|
||||
public String getFresultbh() {
|
||||
return fresultbh;
|
||||
}
|
||||
|
||||
public void setFresultbh(String fresultbh) {
|
||||
this.fresultbh = fresultbh == null ? null : fresultbh.trim();
|
||||
}
|
||||
|
||||
public String getFresult() {
|
||||
return fresult;
|
||||
}
|
||||
|
||||
public void setFresult(String fresult) {
|
||||
this.fresult = fresult == null ? null : fresult.trim();
|
||||
}
|
||||
|
||||
public String getFzgbh() {
|
||||
return fzgbh;
|
||||
}
|
||||
|
||||
public void setFzgbh(String fzgbh) {
|
||||
this.fzgbh = fzgbh == null ? null : fzgbh.trim();
|
||||
}
|
||||
|
||||
public String getFzg() {
|
||||
return fzg;
|
||||
}
|
||||
|
||||
public void setFzg(String fzg) {
|
||||
this.fzg = fzg == null ? null : fzg.trim();
|
||||
}
|
||||
|
||||
public String getFgricd10() {
|
||||
return fgricd10;
|
||||
}
|
||||
|
||||
public void setFgricd10(String fgricd10) {
|
||||
this.fgricd10 = fgricd10 == null ? null : fgricd10.trim();
|
||||
}
|
||||
|
||||
public String getFgrname() {
|
||||
return fgrname;
|
||||
}
|
||||
|
||||
public void setFgrname(String fgrname) {
|
||||
this.fgrname = fgrname == null ? null : fgrname.trim();
|
||||
}
|
||||
|
||||
public Integer getFbabygr() {
|
||||
return fbabygr;
|
||||
}
|
||||
|
||||
public void setFbabygr(Integer fbabygr) {
|
||||
this.fbabygr = fbabygr;
|
||||
}
|
||||
|
||||
public Integer getFbabyqj() {
|
||||
return fbabyqj;
|
||||
}
|
||||
|
||||
public void setFbabyqj(Integer fbabyqj) {
|
||||
this.fbabyqj = fbabyqj;
|
||||
}
|
||||
|
||||
public Integer getFbabysuc() {
|
||||
return fbabysuc;
|
||||
}
|
||||
|
||||
public void setFbabysuc(Integer fbabysuc) {
|
||||
this.fbabysuc = fbabysuc;
|
||||
}
|
||||
|
||||
public String getFhxbh() {
|
||||
return fhxbh;
|
||||
}
|
||||
|
||||
public void setFhxbh(String fhxbh) {
|
||||
this.fhxbh = fhxbh == null ? null : fhxbh.trim();
|
||||
}
|
||||
|
||||
public String getFhx() {
|
||||
return fhx;
|
||||
}
|
||||
|
||||
public void setFhx(String fhx) {
|
||||
this.fhx = fhx == null ? null : fhx.trim();
|
||||
}
|
||||
}
|
||||
@ -1,355 +0,0 @@
|
||||
package com.emr.entity.his;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class HISBA6 {
|
||||
private Long fid;
|
||||
|
||||
private String fprn;
|
||||
|
||||
private Integer ftimes;
|
||||
|
||||
private String fflfsbh;
|
||||
|
||||
private String fflfs;
|
||||
|
||||
private String fflcxbh;
|
||||
|
||||
private String fflcx;
|
||||
|
||||
private String fflzzbh;
|
||||
|
||||
private String fflzz;
|
||||
|
||||
private Integer fyjy;
|
||||
|
||||
private Integer fycs;
|
||||
|
||||
private Integer fyts;
|
||||
|
||||
private Date fyrq1;
|
||||
|
||||
private Date fyrq2;
|
||||
|
||||
private Integer fqjy;
|
||||
|
||||
private Integer fqcs;
|
||||
|
||||
private Integer fqts;
|
||||
|
||||
private Date fqrq1;
|
||||
|
||||
private Date fqrq2;
|
||||
|
||||
private String fzname;
|
||||
|
||||
private Integer fzjy;
|
||||
|
||||
private Integer fzcs;
|
||||
|
||||
private Integer fzts;
|
||||
|
||||
private Date fzrq1;
|
||||
|
||||
private Date fzrq2;
|
||||
|
||||
private String fhlfsbh;
|
||||
|
||||
private String fhlfs;
|
||||
|
||||
private String fhlffbh;
|
||||
|
||||
private String fhlff;
|
||||
|
||||
private String fqtype;
|
||||
|
||||
private String fqt;
|
||||
|
||||
private String fqn;
|
||||
|
||||
private String fqm;
|
||||
|
||||
private String fqall;
|
||||
|
||||
private String fqallbh;
|
||||
|
||||
public Long getFid() {
|
||||
return fid;
|
||||
}
|
||||
|
||||
public void setFid(Long fid) {
|
||||
this.fid = fid;
|
||||
}
|
||||
|
||||
public String getFprn() {
|
||||
return fprn;
|
||||
}
|
||||
|
||||
public void setFprn(String fprn) {
|
||||
this.fprn = fprn == null ? null : fprn.trim();
|
||||
}
|
||||
|
||||
public Integer getFtimes() {
|
||||
return ftimes;
|
||||
}
|
||||
|
||||
public void setFtimes(Integer ftimes) {
|
||||
this.ftimes = ftimes;
|
||||
}
|
||||
|
||||
public String getFflfsbh() {
|
||||
return fflfsbh;
|
||||
}
|
||||
|
||||
public void setFflfsbh(String fflfsbh) {
|
||||
this.fflfsbh = fflfsbh == null ? null : fflfsbh.trim();
|
||||
}
|
||||
|
||||
public String getFflfs() {
|
||||
return fflfs;
|
||||
}
|
||||
|
||||
public void setFflfs(String fflfs) {
|
||||
this.fflfs = fflfs == null ? null : fflfs.trim();
|
||||
}
|
||||
|
||||
public String getFflcxbh() {
|
||||
return fflcxbh;
|
||||
}
|
||||
|
||||
public void setFflcxbh(String fflcxbh) {
|
||||
this.fflcxbh = fflcxbh == null ? null : fflcxbh.trim();
|
||||
}
|
||||
|
||||
public String getFflcx() {
|
||||
return fflcx;
|
||||
}
|
||||
|
||||
public void setFflcx(String fflcx) {
|
||||
this.fflcx = fflcx == null ? null : fflcx.trim();
|
||||
}
|
||||
|
||||
public String getFflzzbh() {
|
||||
return fflzzbh;
|
||||
}
|
||||
|
||||
public void setFflzzbh(String fflzzbh) {
|
||||
this.fflzzbh = fflzzbh == null ? null : fflzzbh.trim();
|
||||
}
|
||||
|
||||
public String getFflzz() {
|
||||
return fflzz;
|
||||
}
|
||||
|
||||
public void setFflzz(String fflzz) {
|
||||
this.fflzz = fflzz == null ? null : fflzz.trim();
|
||||
}
|
||||
|
||||
public Integer getFyjy() {
|
||||
return fyjy;
|
||||
}
|
||||
|
||||
public void setFyjy(Integer fyjy) {
|
||||
this.fyjy = fyjy;
|
||||
}
|
||||
|
||||
public Integer getFycs() {
|
||||
return fycs;
|
||||
}
|
||||
|
||||
public void setFycs(Integer fycs) {
|
||||
this.fycs = fycs;
|
||||
}
|
||||
|
||||
public Integer getFyts() {
|
||||
return fyts;
|
||||
}
|
||||
|
||||
public void setFyts(Integer fyts) {
|
||||
this.fyts = fyts;
|
||||
}
|
||||
|
||||
public Date getFyrq1() {
|
||||
return fyrq1;
|
||||
}
|
||||
|
||||
public void setFyrq1(Date fyrq1) {
|
||||
this.fyrq1 = fyrq1;
|
||||
}
|
||||
|
||||
public Date getFyrq2() {
|
||||
return fyrq2;
|
||||
}
|
||||
|
||||
public void setFyrq2(Date fyrq2) {
|
||||
this.fyrq2 = fyrq2;
|
||||
}
|
||||
|
||||
public Integer getFqjy() {
|
||||
return fqjy;
|
||||
}
|
||||
|
||||
public void setFqjy(Integer fqjy) {
|
||||
this.fqjy = fqjy;
|
||||
}
|
||||
|
||||
public Integer getFqcs() {
|
||||
return fqcs;
|
||||
}
|
||||
|
||||
public void setFqcs(Integer fqcs) {
|
||||
this.fqcs = fqcs;
|
||||
}
|
||||
|
||||
public Integer getFqts() {
|
||||
return fqts;
|
||||
}
|
||||
|
||||
public void setFqts(Integer fqts) {
|
||||
this.fqts = fqts;
|
||||
}
|
||||
|
||||
public Date getFqrq1() {
|
||||
return fqrq1;
|
||||
}
|
||||
|
||||
public void setFqrq1(Date fqrq1) {
|
||||
this.fqrq1 = fqrq1;
|
||||
}
|
||||
|
||||
public Date getFqrq2() {
|
||||
return fqrq2;
|
||||
}
|
||||
|
||||
public void setFqrq2(Date fqrq2) {
|
||||
this.fqrq2 = fqrq2;
|
||||
}
|
||||
|
||||
public String getFzname() {
|
||||
return fzname;
|
||||
}
|
||||
|
||||
public void setFzname(String fzname) {
|
||||
this.fzname = fzname == null ? null : fzname.trim();
|
||||
}
|
||||
|
||||
public Integer getFzjy() {
|
||||
return fzjy;
|
||||
}
|
||||
|
||||
public void setFzjy(Integer fzjy) {
|
||||
this.fzjy = fzjy;
|
||||
}
|
||||
|
||||
public Integer getFzcs() {
|
||||
return fzcs;
|
||||
}
|
||||
|
||||
public void setFzcs(Integer fzcs) {
|
||||
this.fzcs = fzcs;
|
||||
}
|
||||
|
||||
public Integer getFzts() {
|
||||
return fzts;
|
||||
}
|
||||
|
||||
public void setFzts(Integer fzts) {
|
||||
this.fzts = fzts;
|
||||
}
|
||||
|
||||
public Date getFzrq1() {
|
||||
return fzrq1;
|
||||
}
|
||||
|
||||
public void setFzrq1(Date fzrq1) {
|
||||
this.fzrq1 = fzrq1;
|
||||
}
|
||||
|
||||
public Date getFzrq2() {
|
||||
return fzrq2;
|
||||
}
|
||||
|
||||
public void setFzrq2(Date fzrq2) {
|
||||
this.fzrq2 = fzrq2;
|
||||
}
|
||||
|
||||
public String getFhlfsbh() {
|
||||
return fhlfsbh;
|
||||
}
|
||||
|
||||
public void setFhlfsbh(String fhlfsbh) {
|
||||
this.fhlfsbh = fhlfsbh == null ? null : fhlfsbh.trim();
|
||||
}
|
||||
|
||||
public String getFhlfs() {
|
||||
return fhlfs;
|
||||
}
|
||||
|
||||
public void setFhlfs(String fhlfs) {
|
||||
this.fhlfs = fhlfs == null ? null : fhlfs.trim();
|
||||
}
|
||||
|
||||
public String getFhlffbh() {
|
||||
return fhlffbh;
|
||||
}
|
||||
|
||||
public void setFhlffbh(String fhlffbh) {
|
||||
this.fhlffbh = fhlffbh == null ? null : fhlffbh.trim();
|
||||
}
|
||||
|
||||
public String getFhlff() {
|
||||
return fhlff;
|
||||
}
|
||||
|
||||
public void setFhlff(String fhlff) {
|
||||
this.fhlff = fhlff == null ? null : fhlff.trim();
|
||||
}
|
||||
|
||||
public String getFqtype() {
|
||||
return fqtype;
|
||||
}
|
||||
|
||||
public void setFqtype(String fqtype) {
|
||||
this.fqtype = fqtype == null ? null : fqtype.trim();
|
||||
}
|
||||
|
||||
public String getFqt() {
|
||||
return fqt;
|
||||
}
|
||||
|
||||
public void setFqt(String fqt) {
|
||||
this.fqt = fqt == null ? null : fqt.trim();
|
||||
}
|
||||
|
||||
public String getFqn() {
|
||||
return fqn;
|
||||
}
|
||||
|
||||
public void setFqn(String fqn) {
|
||||
this.fqn = fqn == null ? null : fqn.trim();
|
||||
}
|
||||
|
||||
public String getFqm() {
|
||||
return fqm;
|
||||
}
|
||||
|
||||
public void setFqm(String fqm) {
|
||||
this.fqm = fqm == null ? null : fqm.trim();
|
||||
}
|
||||
|
||||
public String getFqall() {
|
||||
return fqall;
|
||||
}
|
||||
|
||||
public void setFqall(String fqall) {
|
||||
this.fqall = fqall == null ? null : fqall.trim();
|
||||
}
|
||||
|
||||
public String getFqallbh() {
|
||||
return fqallbh;
|
||||
}
|
||||
|
||||
public void setFqallbh(String fqallbh) {
|
||||
this.fqallbh = fqallbh == null ? null : fqallbh.trim();
|
||||
}
|
||||
}
|
||||
@ -1,95 +0,0 @@
|
||||
package com.emr.entity.his;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class HISBA7 {
|
||||
private Long fid;
|
||||
|
||||
private String fprn;
|
||||
|
||||
private Integer ftimes;
|
||||
|
||||
private Date fhlrq1;
|
||||
|
||||
private Date fhlrq2;
|
||||
|
||||
private String fhldrug;
|
||||
|
||||
private String fhlproc;
|
||||
|
||||
private String fhllxbh;
|
||||
|
||||
private String fhllx;
|
||||
|
||||
public Long getFid() {
|
||||
return fid;
|
||||
}
|
||||
|
||||
public void setFid(Long fid) {
|
||||
this.fid = fid;
|
||||
}
|
||||
|
||||
public String getFprn() {
|
||||
return fprn;
|
||||
}
|
||||
|
||||
public void setFprn(String fprn) {
|
||||
this.fprn = fprn == null ? null : fprn.trim();
|
||||
}
|
||||
|
||||
public Integer getFtimes() {
|
||||
return ftimes;
|
||||
}
|
||||
|
||||
public void setFtimes(Integer ftimes) {
|
||||
this.ftimes = ftimes;
|
||||
}
|
||||
|
||||
public Date getFhlrq1() {
|
||||
return fhlrq1;
|
||||
}
|
||||
|
||||
public void setFhlrq1(Date fhlrq1) {
|
||||
this.fhlrq1 = fhlrq1;
|
||||
}
|
||||
|
||||
public Date getFhlrq2() {
|
||||
return fhlrq2;
|
||||
}
|
||||
|
||||
public void setFhlrq2(Date fhlrq2) {
|
||||
this.fhlrq2 = fhlrq2;
|
||||
}
|
||||
|
||||
public String getFhldrug() {
|
||||
return fhldrug;
|
||||
}
|
||||
|
||||
public void setFhldrug(String fhldrug) {
|
||||
this.fhldrug = fhldrug == null ? null : fhldrug.trim();
|
||||
}
|
||||
|
||||
public String getFhlproc() {
|
||||
return fhlproc;
|
||||
}
|
||||
|
||||
public void setFhlproc(String fhlproc) {
|
||||
this.fhlproc = fhlproc == null ? null : fhlproc.trim();
|
||||
}
|
||||
|
||||
public String getFhllxbh() {
|
||||
return fhllxbh;
|
||||
}
|
||||
|
||||
public void setFhllxbh(String fhllxbh) {
|
||||
this.fhllxbh = fhllxbh == null ? null : fhllxbh.trim();
|
||||
}
|
||||
|
||||
public String getFhllx() {
|
||||
return fhllx;
|
||||
}
|
||||
|
||||
public void setFhllx(String fhllx) {
|
||||
this.fhllx = fhllx == null ? null : fhllx.trim();
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,154 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.emr.dao.his.HISBA2Mapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.his.HISBA2" >
|
||||
<id column="FID" property="fid" jdbcType="BIGINT" />
|
||||
<result column="FPRN" property="fprn" jdbcType="VARCHAR" />
|
||||
<result column="FTIMES" property="ftimes" jdbcType="INTEGER" />
|
||||
<result column="FZKTYKH" property="fzktykh" jdbcType="VARCHAR" />
|
||||
<result column="FZKDEPT" property="fzkdept" jdbcType="VARCHAR" />
|
||||
<result column="FZKDATE" property="fzkdate" jdbcType="TIMESTAMP" />
|
||||
<result column="FZKTIME" property="fzktime" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
FID, FPRN, FTIMES, FZKTYKH, FZKDEPT, FZKDATE, FZKTIME
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from HIS_BA2
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from HIS_BA2
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.his.HISBA2" >
|
||||
insert into HIS_BA2 (FPRN, FTIMES,
|
||||
FZKTYKH, FZKDEPT, FZKDATE,
|
||||
FZKTIME)
|
||||
values (#{fprn,jdbcType=VARCHAR}, #{ftimes,jdbcType=INTEGER},
|
||||
#{fzktykh,jdbcType=VARCHAR}, #{fzkdept,jdbcType=VARCHAR}, #{fzkdate,jdbcType=TIMESTAMP},
|
||||
#{fzktime,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.his.HISBA2" >
|
||||
insert into HIS_BA2
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
FID,
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
FPRN,
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES,
|
||||
</if>
|
||||
<if test="fzktykh != null" >
|
||||
FZKTYKH,
|
||||
</if>
|
||||
<if test="fzkdept != null" >
|
||||
FZKDEPT,
|
||||
</if>
|
||||
<if test="fzkdate != null" >
|
||||
FZKDATE,
|
||||
</if>
|
||||
<if test="fzktime != null" >
|
||||
FZKTIME,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
#{fid,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
#{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
#{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fzktykh != null" >
|
||||
#{fzktykh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzkdept != null" >
|
||||
#{fzkdept,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzkdate != null" >
|
||||
#{fzkdate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fzktime != null" >
|
||||
#{fzktime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.his.HISBA2" >
|
||||
update HIS_BA2
|
||||
<set >
|
||||
<if test="fprn != null" >
|
||||
FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fzktykh != null" >
|
||||
FZKTYKH = #{fzktykh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzkdept != null" >
|
||||
FZKDEPT = #{fzkdept,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzkdate != null" >
|
||||
FZKDATE = #{fzkdate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fzktime != null" >
|
||||
FZKTIME = #{fzktime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.his.HISBA2" >
|
||||
update HIS_BA2
|
||||
set FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
FZKTYKH = #{fzktykh,jdbcType=VARCHAR},
|
||||
FZKDEPT = #{fzkdept,jdbcType=VARCHAR},
|
||||
FZKDATE = #{fzkdate,jdbcType=TIMESTAMP},
|
||||
FZKTIME = #{fzktime,jdbcType=VARCHAR}
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--按病案号、住院次数查询记录-->
|
||||
<select id="selectAllByParam" resultMap="BaseResultMap">
|
||||
SELECT * FROM HIS_BA2 WHERE FPRN = #{fprn,jdbcType=VARCHAR} AND FTIMES = #{ftimes,jdbcType=INTEGER}
|
||||
</select>
|
||||
<!--批量添加-->
|
||||
<insert id="SimpleInsert" parameterType="java.util.List">
|
||||
insert into HIS_BA2(
|
||||
FPRN, FTIMES,
|
||||
FZKTYKH, FZKDEPT, FZKDATE,
|
||||
FZKTIME
|
||||
)
|
||||
values
|
||||
<foreach collection="list" item="items" separator=",">
|
||||
(
|
||||
#{items.fprn,jdbcType=VARCHAR}, #{items.ftimes,jdbcType=INTEGER},
|
||||
#{items.fzktykh,jdbcType=VARCHAR}, #{items.fzkdept,jdbcType=VARCHAR}, #{items.fzkdate,jdbcType=TIMESTAMP},
|
||||
#{items.fzktime,jdbcType=VARCHAR}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
<!--批量更新-->
|
||||
<update id="SimpleUpdate" parameterType="java.util.List">
|
||||
<foreach collection="list" item="items" separator=";">
|
||||
update HIS_BA2
|
||||
set FPRN = #{items.fprn,jdbcType=VARCHAR},
|
||||
FTIMES = #{items.ftimes,jdbcType=INTEGER},
|
||||
FZKTYKH = #{items.fzktykh,jdbcType=VARCHAR},
|
||||
FZKDEPT = #{items.fzkdept,jdbcType=VARCHAR},
|
||||
FZKDATE = #{items.fzkdate,jdbcType=TIMESTAMP},
|
||||
FZKTIME = #{items.fzktime,jdbcType=VARCHAR}
|
||||
where FID = #{items.fid,jdbcType=BIGINT}
|
||||
</foreach>
|
||||
</update>
|
||||
<!--批量删除-->
|
||||
<delete id="SimpleDelete" parameterType="java.lang.String">
|
||||
delete from HIS_BA2 where FID in (${ids})
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -1,189 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.emr.dao.his.HISBA3Mapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.his.HISBA3" >
|
||||
<id column="FID" property="fid" jdbcType="BIGINT" />
|
||||
<result column="FPRN" property="fprn" jdbcType="VARCHAR" />
|
||||
<result column="FTIMES" property="ftimes" jdbcType="INTEGER" />
|
||||
<result column="FZDLX" property="fzdlx" jdbcType="VARCHAR" />
|
||||
<result column="FICDVERSION" property="ficdversion" jdbcType="TINYINT" />
|
||||
<result column="FICDM" property="ficdm" jdbcType="VARCHAR" />
|
||||
<result column="FJBNAME" property="fjbname" jdbcType="VARCHAR" />
|
||||
<result column="FZLJGBH" property="fzljgbh" jdbcType="VARCHAR" />
|
||||
<result column="FZLJG" property="fzljg" jdbcType="VARCHAR" />
|
||||
<result column="FRYBQBH" property="frybqbh" jdbcType="VARCHAR" />
|
||||
<result column="FRYBQ" property="frybq" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
FID, FPRN, FTIMES, FZDLX, FICDVERSION, FICDM, FJBNAME, FZLJGBH, FZLJG, FRYBQBH, FRYBQ
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from HIS_BA3
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from HIS_BA3
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.his.HISBA3" >
|
||||
insert into HIS_BA3 (FPRN, FTIMES,
|
||||
FZDLX, FICDVERSION, FICDM,
|
||||
FJBNAME, FZLJGBH, FZLJG,
|
||||
FRYBQBH, FRYBQ)
|
||||
values (#{fprn,jdbcType=VARCHAR}, #{ftimes,jdbcType=INTEGER},
|
||||
#{fzdlx,jdbcType=VARCHAR}, #{ficdversion,jdbcType=TINYINT}, #{ficdm,jdbcType=VARCHAR},
|
||||
#{fjbname,jdbcType=VARCHAR}, #{fzljgbh,jdbcType=VARCHAR}, #{fzljg,jdbcType=VARCHAR},
|
||||
#{frybqbh,jdbcType=VARCHAR}, #{frybq,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.his.HISBA3" >
|
||||
insert into HIS_BA3
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
FID,
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
FPRN,
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES,
|
||||
</if>
|
||||
<if test="fzdlx != null" >
|
||||
FZDLX,
|
||||
</if>
|
||||
<if test="ficdversion != null" >
|
||||
FICDVERSION,
|
||||
</if>
|
||||
<if test="ficdm != null" >
|
||||
FICDM,
|
||||
</if>
|
||||
<if test="fjbname != null" >
|
||||
FJBNAME,
|
||||
</if>
|
||||
<if test="fzljgbh != null" >
|
||||
FZLJGBH,
|
||||
</if>
|
||||
<if test="fzljg != null" >
|
||||
FZLJG,
|
||||
</if>
|
||||
<if test="frybqbh != null" >
|
||||
FRYBQBH,
|
||||
</if>
|
||||
<if test="frybq != null" >
|
||||
FRYBQ,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
#{fid,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
#{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
#{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fzdlx != null" >
|
||||
#{fzdlx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ficdversion != null" >
|
||||
#{ficdversion,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="ficdm != null" >
|
||||
#{ficdm,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fjbname != null" >
|
||||
#{fjbname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzljgbh != null" >
|
||||
#{fzljgbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzljg != null" >
|
||||
#{fzljg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="frybqbh != null" >
|
||||
#{frybqbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="frybq != null" >
|
||||
#{frybq,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.his.HISBA3" >
|
||||
update HIS_BA3
|
||||
<set >
|
||||
<if test="fprn != null" >
|
||||
FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fzdlx != null" >
|
||||
FZDLX = #{fzdlx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ficdversion != null" >
|
||||
FICDVERSION = #{ficdversion,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="ficdm != null" >
|
||||
FICDM = #{ficdm,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fjbname != null" >
|
||||
FJBNAME = #{fjbname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzljgbh != null" >
|
||||
FZLJGBH = #{fzljgbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzljg != null" >
|
||||
FZLJG = #{fzljg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="frybqbh != null" >
|
||||
FRYBQBH = #{frybqbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="frybq != null" >
|
||||
FRYBQ = #{frybq,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.his.HISBA3" >
|
||||
update HIS_BA3
|
||||
set FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
FZDLX = #{fzdlx,jdbcType=VARCHAR},
|
||||
FICDVERSION = #{ficdversion,jdbcType=TINYINT},
|
||||
FICDM = #{ficdm,jdbcType=VARCHAR},
|
||||
FJBNAME = #{fjbname,jdbcType=VARCHAR},
|
||||
FZLJGBH = #{fzljgbh,jdbcType=VARCHAR},
|
||||
FZLJG = #{fzljg,jdbcType=VARCHAR},
|
||||
FRYBQBH = #{frybqbh,jdbcType=VARCHAR},
|
||||
FRYBQ = #{frybq,jdbcType=VARCHAR}
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--按病案号、住院次数查询记录-->
|
||||
<select id="selectAllByParam" resultMap="BaseResultMap">
|
||||
SELECT * FROM HIS_BA3 WHERE FPRN = #{fprn,jdbcType=VARCHAR} AND FTIMES = #{ftimes,jdbcType=INTEGER}
|
||||
</select>
|
||||
<!--批量删除-->
|
||||
<delete id="deleteAllByParam">
|
||||
DELETE FROM HIS_BA3 WHERE FPRN = #{fprn,jdbcType=VARCHAR} AND FTIMES = #{ftimes,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<!--批量添加-->
|
||||
<insert id="SimpleInsert" parameterType="java.util.List">
|
||||
insert into HIS_BA3(
|
||||
FPRN, FTIMES,
|
||||
FZDLX, FICDVERSION, FICDM,
|
||||
FJBNAME, FZLJGBH, FZLJG,
|
||||
FRYBQBH, FRYBQ
|
||||
)
|
||||
values
|
||||
<foreach collection="list" item="items" separator=",">
|
||||
(
|
||||
#{items.fprn,jdbcType=VARCHAR}, #{items.ftimes,jdbcType=INTEGER},
|
||||
#{items.fzdlx,jdbcType=VARCHAR}, #{items.ficdversion,jdbcType=TINYINT}, #{items.ficdm,jdbcType=VARCHAR},
|
||||
#{items.fjbname,jdbcType=VARCHAR}, #{items.fzljgbh,jdbcType=VARCHAR}, #{items.fzljg,jdbcType=VARCHAR},
|
||||
#{items.frybqbh,jdbcType=VARCHAR}, #{items.frybq,jdbcType=VARCHAR}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
@ -1,413 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.emr.dao.his.HISBA4Mapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.his.HISBA4" >
|
||||
<id column="FID" property="fid" jdbcType="BIGINT" />
|
||||
<result column="FPRN" property="fprn" jdbcType="VARCHAR" />
|
||||
<result column="FTIMES" property="ftimes" jdbcType="INTEGER" />
|
||||
<result column="FNAME" property="fname" jdbcType="VARCHAR" />
|
||||
<result column="FOPTIMES" property="foptimes" jdbcType="INTEGER" />
|
||||
<result column="FOPCODE" property="fopcode" jdbcType="VARCHAR" />
|
||||
<result column="FOP" property="fop" jdbcType="VARCHAR" />
|
||||
<result column="FOPDATE" property="fopdate" jdbcType="TIMESTAMP" />
|
||||
<result column="FQIEKOUBH" property="fqiekoubh" jdbcType="VARCHAR" />
|
||||
<result column="FQIEKOU" property="fqiekou" jdbcType="VARCHAR" />
|
||||
<result column="FYUHEBH" property="fyuhebh" jdbcType="VARCHAR" />
|
||||
<result column="FYUHE" property="fyuhe" jdbcType="VARCHAR" />
|
||||
<result column="FDOCBH" property="fdocbh" jdbcType="VARCHAR" />
|
||||
<result column="FDOCNAME" property="fdocname" jdbcType="VARCHAR" />
|
||||
<result column="FMAZUIBH" property="fmazuibh" jdbcType="VARCHAR" />
|
||||
<result column="FMAZUI" property="fmazui" jdbcType="VARCHAR" />
|
||||
<result column="FIFFSOP" property="fiffsop" jdbcType="BIT" />
|
||||
<result column="FOPDOCT1BH" property="fopdoct1bh" jdbcType="VARCHAR" />
|
||||
<result column="FOPDOCT1" property="fopdoct1" jdbcType="VARCHAR" />
|
||||
<result column="FOPDOCT2BH" property="fopdoct2bh" jdbcType="VARCHAR" />
|
||||
<result column="FOPDOCT2" property="fopdoct2" jdbcType="VARCHAR" />
|
||||
<result column="FMZDOCTBH" property="fmzdoctbh" jdbcType="VARCHAR" />
|
||||
<result column="FMZDOCT" property="fmzdoct" jdbcType="VARCHAR" />
|
||||
<result column="FOPTYKH" property="foptykh" jdbcType="VARCHAR" />
|
||||
<result column="FOPKSNAME" property="fopksname" jdbcType="VARCHAR" />
|
||||
<result column="FZQSSBH" property="fzqssbh" jdbcType="VARCHAR" />
|
||||
<result column="FZQSS" property="fzqss" jdbcType="VARCHAR" />
|
||||
<result column="FSSJBBH" property="fssjbbh" jdbcType="VARCHAR" />
|
||||
<result column="FSSJB" property="fssjb" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
FID, FPRN, FTIMES, FNAME, FOPTIMES, FOPCODE, FOP, FOPDATE, FQIEKOUBH, FQIEKOU, FYUHEBH,
|
||||
FYUHE, FDOCBH, FDOCNAME, FMAZUIBH, FMAZUI, FIFFSOP, FOPDOCT1BH, FOPDOCT1, FOPDOCT2BH,
|
||||
FOPDOCT2, FMZDOCTBH, FMZDOCT, FOPTYKH, FOPKSNAME, FZQSSBH, FZQSS, FSSJBBH, FSSJB
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from HIS_BA4
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from HIS_BA4
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.his.HISBA4" >
|
||||
insert into HIS_BA4 (FPRN, FTIMES,
|
||||
FNAME, FOPTIMES, FOPCODE,
|
||||
FOP, FOPDATE, FQIEKOUBH,
|
||||
FQIEKOU, FYUHEBH, FYUHE,
|
||||
FDOCBH, FDOCNAME, FMAZUIBH,
|
||||
FMAZUI, FIFFSOP, FOPDOCT1BH,
|
||||
FOPDOCT1, FOPDOCT2BH, FOPDOCT2,
|
||||
FMZDOCTBH, FMZDOCT, FOPTYKH,
|
||||
FOPKSNAME, FZQSSBH, FZQSS,
|
||||
FSSJBBH, FSSJB)
|
||||
values (#{fprn,jdbcType=VARCHAR}, #{ftimes,jdbcType=INTEGER},
|
||||
#{fname,jdbcType=VARCHAR}, #{foptimes,jdbcType=INTEGER}, #{fopcode,jdbcType=VARCHAR},
|
||||
#{fop,jdbcType=VARCHAR}, #{fopdate,jdbcType=TIMESTAMP}, #{fqiekoubh,jdbcType=VARCHAR},
|
||||
#{fqiekou,jdbcType=VARCHAR}, #{fyuhebh,jdbcType=VARCHAR}, #{fyuhe,jdbcType=VARCHAR},
|
||||
#{fdocbh,jdbcType=VARCHAR}, #{fdocname,jdbcType=VARCHAR}, #{fmazuibh,jdbcType=VARCHAR},
|
||||
#{fmazui,jdbcType=VARCHAR}, #{fiffsop,jdbcType=BIT}, #{fopdoct1bh,jdbcType=VARCHAR},
|
||||
#{fopdoct1,jdbcType=VARCHAR}, #{fopdoct2bh,jdbcType=VARCHAR}, #{fopdoct2,jdbcType=VARCHAR},
|
||||
#{fmzdoctbh,jdbcType=VARCHAR}, #{fmzdoct,jdbcType=VARCHAR}, #{foptykh,jdbcType=VARCHAR},
|
||||
#{fopksname,jdbcType=VARCHAR}, #{fzqssbh,jdbcType=VARCHAR}, #{fzqss,jdbcType=VARCHAR},
|
||||
#{fssjbbh,jdbcType=VARCHAR}, #{fssjb,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.his.HISBA4" >
|
||||
insert into HIS_BA4
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
FID,
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
FPRN,
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES,
|
||||
</if>
|
||||
<if test="fname != null" >
|
||||
FNAME,
|
||||
</if>
|
||||
<if test="foptimes != null" >
|
||||
FOPTIMES,
|
||||
</if>
|
||||
<if test="fopcode != null" >
|
||||
FOPCODE,
|
||||
</if>
|
||||
<if test="fop != null" >
|
||||
FOP,
|
||||
</if>
|
||||
<if test="fopdate != null" >
|
||||
FOPDATE,
|
||||
</if>
|
||||
<if test="fqiekoubh != null" >
|
||||
FQIEKOUBH,
|
||||
</if>
|
||||
<if test="fqiekou != null" >
|
||||
FQIEKOU,
|
||||
</if>
|
||||
<if test="fyuhebh != null" >
|
||||
FYUHEBH,
|
||||
</if>
|
||||
<if test="fyuhe != null" >
|
||||
FYUHE,
|
||||
</if>
|
||||
<if test="fdocbh != null" >
|
||||
FDOCBH,
|
||||
</if>
|
||||
<if test="fdocname != null" >
|
||||
FDOCNAME,
|
||||
</if>
|
||||
<if test="fmazuibh != null" >
|
||||
FMAZUIBH,
|
||||
</if>
|
||||
<if test="fmazui != null" >
|
||||
FMAZUI,
|
||||
</if>
|
||||
<if test="fiffsop != null" >
|
||||
FIFFSOP,
|
||||
</if>
|
||||
<if test="fopdoct1bh != null" >
|
||||
FOPDOCT1BH,
|
||||
</if>
|
||||
<if test="fopdoct1 != null" >
|
||||
FOPDOCT1,
|
||||
</if>
|
||||
<if test="fopdoct2bh != null" >
|
||||
FOPDOCT2BH,
|
||||
</if>
|
||||
<if test="fopdoct2 != null" >
|
||||
FOPDOCT2,
|
||||
</if>
|
||||
<if test="fmzdoctbh != null" >
|
||||
FMZDOCTBH,
|
||||
</if>
|
||||
<if test="fmzdoct != null" >
|
||||
FMZDOCT,
|
||||
</if>
|
||||
<if test="foptykh != null" >
|
||||
FOPTYKH,
|
||||
</if>
|
||||
<if test="fopksname != null" >
|
||||
FOPKSNAME,
|
||||
</if>
|
||||
<if test="fzqssbh != null" >
|
||||
FZQSSBH,
|
||||
</if>
|
||||
<if test="fzqss != null" >
|
||||
FZQSS,
|
||||
</if>
|
||||
<if test="fssjbbh != null" >
|
||||
FSSJBBH,
|
||||
</if>
|
||||
<if test="fssjb != null" >
|
||||
FSSJB,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
#{fid,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
#{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
#{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fname != null" >
|
||||
#{fname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="foptimes != null" >
|
||||
#{foptimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fopcode != null" >
|
||||
#{fopcode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fop != null" >
|
||||
#{fop,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fopdate != null" >
|
||||
#{fopdate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fqiekoubh != null" >
|
||||
#{fqiekoubh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqiekou != null" >
|
||||
#{fqiekou,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fyuhebh != null" >
|
||||
#{fyuhebh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fyuhe != null" >
|
||||
#{fyuhe,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fdocbh != null" >
|
||||
#{fdocbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fdocname != null" >
|
||||
#{fdocname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fmazuibh != null" >
|
||||
#{fmazuibh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fmazui != null" >
|
||||
#{fmazui,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fiffsop != null" >
|
||||
#{fiffsop,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="fopdoct1bh != null" >
|
||||
#{fopdoct1bh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fopdoct1 != null" >
|
||||
#{fopdoct1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fopdoct2bh != null" >
|
||||
#{fopdoct2bh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fopdoct2 != null" >
|
||||
#{fopdoct2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fmzdoctbh != null" >
|
||||
#{fmzdoctbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fmzdoct != null" >
|
||||
#{fmzdoct,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="foptykh != null" >
|
||||
#{foptykh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fopksname != null" >
|
||||
#{fopksname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzqssbh != null" >
|
||||
#{fzqssbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzqss != null" >
|
||||
#{fzqss,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fssjbbh != null" >
|
||||
#{fssjbbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fssjb != null" >
|
||||
#{fssjb,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.his.HISBA4" >
|
||||
update HIS_BA4
|
||||
<set >
|
||||
<if test="fprn != null" >
|
||||
FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fname != null" >
|
||||
FNAME = #{fname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="foptimes != null" >
|
||||
FOPTIMES = #{foptimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fopcode != null" >
|
||||
FOPCODE = #{fopcode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fop != null" >
|
||||
FOP = #{fop,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fopdate != null" >
|
||||
FOPDATE = #{fopdate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fqiekoubh != null" >
|
||||
FQIEKOUBH = #{fqiekoubh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqiekou != null" >
|
||||
FQIEKOU = #{fqiekou,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fyuhebh != null" >
|
||||
FYUHEBH = #{fyuhebh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fyuhe != null" >
|
||||
FYUHE = #{fyuhe,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fdocbh != null" >
|
||||
FDOCBH = #{fdocbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fdocname != null" >
|
||||
FDOCNAME = #{fdocname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fmazuibh != null" >
|
||||
FMAZUIBH = #{fmazuibh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fmazui != null" >
|
||||
FMAZUI = #{fmazui,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fiffsop != null" >
|
||||
FIFFSOP = #{fiffsop,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="fopdoct1bh != null" >
|
||||
FOPDOCT1BH = #{fopdoct1bh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fopdoct1 != null" >
|
||||
FOPDOCT1 = #{fopdoct1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fopdoct2bh != null" >
|
||||
FOPDOCT2BH = #{fopdoct2bh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fopdoct2 != null" >
|
||||
FOPDOCT2 = #{fopdoct2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fmzdoctbh != null" >
|
||||
FMZDOCTBH = #{fmzdoctbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fmzdoct != null" >
|
||||
FMZDOCT = #{fmzdoct,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="foptykh != null" >
|
||||
FOPTYKH = #{foptykh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fopksname != null" >
|
||||
FOPKSNAME = #{fopksname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzqssbh != null" >
|
||||
FZQSSBH = #{fzqssbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzqss != null" >
|
||||
FZQSS = #{fzqss,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fssjbbh != null" >
|
||||
FSSJBBH = #{fssjbbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fssjb != null" >
|
||||
FSSJB = #{fssjb,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.his.HISBA4" >
|
||||
update HIS_BA4
|
||||
set FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
FNAME = #{fname,jdbcType=VARCHAR},
|
||||
FOPTIMES = #{foptimes,jdbcType=INTEGER},
|
||||
FOPCODE = #{fopcode,jdbcType=VARCHAR},
|
||||
FOP = #{fop,jdbcType=VARCHAR},
|
||||
FOPDATE = #{fopdate,jdbcType=TIMESTAMP},
|
||||
FQIEKOUBH = #{fqiekoubh,jdbcType=VARCHAR},
|
||||
FQIEKOU = #{fqiekou,jdbcType=VARCHAR},
|
||||
FYUHEBH = #{fyuhebh,jdbcType=VARCHAR},
|
||||
FYUHE = #{fyuhe,jdbcType=VARCHAR},
|
||||
FDOCBH = #{fdocbh,jdbcType=VARCHAR},
|
||||
FDOCNAME = #{fdocname,jdbcType=VARCHAR},
|
||||
FMAZUIBH = #{fmazuibh,jdbcType=VARCHAR},
|
||||
FMAZUI = #{fmazui,jdbcType=VARCHAR},
|
||||
FIFFSOP = #{fiffsop,jdbcType=BIT},
|
||||
FOPDOCT1BH = #{fopdoct1bh,jdbcType=VARCHAR},
|
||||
FOPDOCT1 = #{fopdoct1,jdbcType=VARCHAR},
|
||||
FOPDOCT2BH = #{fopdoct2bh,jdbcType=VARCHAR},
|
||||
FOPDOCT2 = #{fopdoct2,jdbcType=VARCHAR},
|
||||
FMZDOCTBH = #{fmzdoctbh,jdbcType=VARCHAR},
|
||||
FMZDOCT = #{fmzdoct,jdbcType=VARCHAR},
|
||||
FOPTYKH = #{foptykh,jdbcType=VARCHAR},
|
||||
FOPKSNAME = #{fopksname,jdbcType=VARCHAR},
|
||||
FZQSSBH = #{fzqssbh,jdbcType=VARCHAR},
|
||||
FZQSS = #{fzqss,jdbcType=VARCHAR},
|
||||
FSSJBBH = #{fssjbbh,jdbcType=VARCHAR},
|
||||
FSSJB = #{fssjb,jdbcType=VARCHAR}
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--按病案号、住院次数查询记录-->
|
||||
<select id="selectAllByParam" resultMap="BaseResultMap">
|
||||
SELECT * FROM HIS_BA4 WHERE FPRN = #{fprn,jdbcType=VARCHAR} AND FTIMES = #{ftimes,jdbcType=INTEGER}
|
||||
</select>
|
||||
<!--批量删除-->
|
||||
<delete id="deleteAllByParam">
|
||||
DELETE FROM HIS_BA4 WHERE FPRN = #{fprn,jdbcType=VARCHAR} AND FTIMES = #{ftimes,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<!--批量添加-->
|
||||
<insert id="SimpleInsert" parameterType="java.util.List">
|
||||
insert into HIS_BA4(
|
||||
FPRN, FTIMES,
|
||||
FNAME, FOPTIMES, FOPCODE,
|
||||
FOP, FOPDATE, FQIEKOUBH,
|
||||
FQIEKOU, FYUHEBH, FYUHE,
|
||||
FDOCBH, FDOCNAME, FMAZUIBH,
|
||||
FMAZUI, FIFFSOP, FOPDOCT1BH,
|
||||
FOPDOCT1, FOPDOCT2BH, FOPDOCT2,
|
||||
FMZDOCTBH, FMZDOCT, FOPTYKH,
|
||||
FOPKSNAME, FZQSSBH, FZQSS,
|
||||
FSSJBBH, FSSJB
|
||||
)
|
||||
values
|
||||
<foreach collection="list" item="items" separator=",">
|
||||
(
|
||||
#{items.fprn,jdbcType=VARCHAR}, #{items.ftimes,jdbcType=INTEGER},
|
||||
#{items.fname,jdbcType=VARCHAR}, #{items.foptimes,jdbcType=INTEGER}, #{items.fopcode,jdbcType=VARCHAR},
|
||||
#{items.fop,jdbcType=VARCHAR}, #{items.fopdate,jdbcType=TIMESTAMP}, #{items.fqiekoubh,jdbcType=VARCHAR},
|
||||
#{items.fqiekou,jdbcType=VARCHAR}, #{items.fyuhebh,jdbcType=VARCHAR}, #{items.fyuhe,jdbcType=VARCHAR},
|
||||
#{items.fdocbh,jdbcType=VARCHAR}, #{items.fdocname,jdbcType=VARCHAR}, #{items.fmazuibh,jdbcType=VARCHAR},
|
||||
#{items.fmazui,jdbcType=VARCHAR}, #{items.fiffsop,jdbcType=BIT}, #{items.fopdoct1bh,jdbcType=VARCHAR},
|
||||
#{items.fopdoct1,jdbcType=VARCHAR}, #{items.fopdoct2bh,jdbcType=VARCHAR}, #{items.fopdoct2,jdbcType=VARCHAR},
|
||||
#{items.fmzdoctbh,jdbcType=VARCHAR}, #{items.fmzdoct,jdbcType=VARCHAR}, #{items.foptykh,jdbcType=VARCHAR},
|
||||
#{items.fopksname,jdbcType=VARCHAR}, #{items.fzqssbh,jdbcType=VARCHAR}, #{items.fzqss,jdbcType=VARCHAR},
|
||||
#{items.fssjbbh,jdbcType=VARCHAR}, #{items.fssjb,jdbcType=VARCHAR}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
@ -1,290 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.emr.dao.his.HISBA5Mapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.his.HISBA5" >
|
||||
<id column="FID" property="fid" jdbcType="BIGINT" />
|
||||
<result column="FPRN" property="fprn" jdbcType="VARCHAR" />
|
||||
<result column="FTIMES" property="ftimes" jdbcType="INTEGER" />
|
||||
<result column="FBABYNUM" property="fbabynum" jdbcType="INTEGER" />
|
||||
<result column="FNAME" property="fname" jdbcType="VARCHAR" />
|
||||
<result column="FBABYSEXBH" property="fbabysexbh" jdbcType="VARCHAR" />
|
||||
<result column="FBABYSEX" property="fbabysex" jdbcType="VARCHAR" />
|
||||
<result column="FTZ" property="ftz" jdbcType="DOUBLE" />
|
||||
<result column="FRESULTBH" property="fresultbh" jdbcType="VARCHAR" />
|
||||
<result column="FRESULT" property="fresult" jdbcType="VARCHAR" />
|
||||
<result column="FZGBH" property="fzgbh" jdbcType="VARCHAR" />
|
||||
<result column="FZG" property="fzg" jdbcType="VARCHAR" />
|
||||
<result column="FGRICD10" property="fgricd10" jdbcType="VARCHAR" />
|
||||
<result column="FGRNAME" property="fgrname" jdbcType="VARCHAR" />
|
||||
<result column="FBABYGR" property="fbabygr" jdbcType="INTEGER" />
|
||||
<result column="FBABYQJ" property="fbabyqj" jdbcType="INTEGER" />
|
||||
<result column="FBABYSUC" property="fbabysuc" jdbcType="INTEGER" />
|
||||
<result column="FHXBH" property="fhxbh" jdbcType="VARCHAR" />
|
||||
<result column="FHX" property="fhx" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
FID, FPRN, FTIMES, FBABYNUM, FNAME, FBABYSEXBH, FBABYSEX, FTZ, FRESULTBH, FRESULT,
|
||||
FZGBH, FZG, FGRICD10, FGRNAME, FBABYGR, FBABYQJ, FBABYSUC, FHXBH, FHX
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from HIS_BA5
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from HIS_BA5
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.his.HISBA5" >
|
||||
insert into HIS_BA5 (FPRN, FTIMES,
|
||||
FBABYNUM, FNAME, FBABYSEXBH,
|
||||
FBABYSEX, FTZ, FRESULTBH,
|
||||
FRESULT, FZGBH, FZG,
|
||||
FGRICD10, FGRNAME, FBABYGR,
|
||||
FBABYQJ, FBABYSUC, FHXBH,
|
||||
FHX)
|
||||
values (#{fprn,jdbcType=VARCHAR}, #{ftimes,jdbcType=INTEGER},
|
||||
#{fbabynum,jdbcType=INTEGER}, #{fname,jdbcType=VARCHAR}, #{fbabysexbh,jdbcType=VARCHAR},
|
||||
#{fbabysex,jdbcType=VARCHAR}, #{ftz,jdbcType=DOUBLE}, #{fresultbh,jdbcType=VARCHAR},
|
||||
#{fresult,jdbcType=VARCHAR}, #{fzgbh,jdbcType=VARCHAR}, #{fzg,jdbcType=VARCHAR},
|
||||
#{fgricd10,jdbcType=VARCHAR}, #{fgrname,jdbcType=VARCHAR}, #{fbabygr,jdbcType=INTEGER},
|
||||
#{fbabyqj,jdbcType=INTEGER}, #{fbabysuc,jdbcType=INTEGER}, #{fhxbh,jdbcType=VARCHAR},
|
||||
#{fhx,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.his.HISBA5" >
|
||||
insert into HIS_BA5
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
FID,
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
FPRN,
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES,
|
||||
</if>
|
||||
<if test="fbabynum != null" >
|
||||
FBABYNUM,
|
||||
</if>
|
||||
<if test="fname != null" >
|
||||
FNAME,
|
||||
</if>
|
||||
<if test="fbabysexbh != null" >
|
||||
FBABYSEXBH,
|
||||
</if>
|
||||
<if test="fbabysex != null" >
|
||||
FBABYSEX,
|
||||
</if>
|
||||
<if test="ftz != null" >
|
||||
FTZ,
|
||||
</if>
|
||||
<if test="fresultbh != null" >
|
||||
FRESULTBH,
|
||||
</if>
|
||||
<if test="fresult != null" >
|
||||
FRESULT,
|
||||
</if>
|
||||
<if test="fzgbh != null" >
|
||||
FZGBH,
|
||||
</if>
|
||||
<if test="fzg != null" >
|
||||
FZG,
|
||||
</if>
|
||||
<if test="fgricd10 != null" >
|
||||
FGRICD10,
|
||||
</if>
|
||||
<if test="fgrname != null" >
|
||||
FGRNAME,
|
||||
</if>
|
||||
<if test="fbabygr != null" >
|
||||
FBABYGR,
|
||||
</if>
|
||||
<if test="fbabyqj != null" >
|
||||
FBABYQJ,
|
||||
</if>
|
||||
<if test="fbabysuc != null" >
|
||||
FBABYSUC,
|
||||
</if>
|
||||
<if test="fhxbh != null" >
|
||||
FHXBH,
|
||||
</if>
|
||||
<if test="fhx != null" >
|
||||
FHX,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
#{fid,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
#{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
#{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fbabynum != null" >
|
||||
#{fbabynum,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fname != null" >
|
||||
#{fname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fbabysexbh != null" >
|
||||
#{fbabysexbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fbabysex != null" >
|
||||
#{fbabysex,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftz != null" >
|
||||
#{ftz,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="fresultbh != null" >
|
||||
#{fresultbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fresult != null" >
|
||||
#{fresult,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzgbh != null" >
|
||||
#{fzgbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzg != null" >
|
||||
#{fzg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fgricd10 != null" >
|
||||
#{fgricd10,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fgrname != null" >
|
||||
#{fgrname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fbabygr != null" >
|
||||
#{fbabygr,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fbabyqj != null" >
|
||||
#{fbabyqj,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fbabysuc != null" >
|
||||
#{fbabysuc,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fhxbh != null" >
|
||||
#{fhxbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhx != null" >
|
||||
#{fhx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.his.HISBA5" >
|
||||
update HIS_BA5
|
||||
<set >
|
||||
<if test="fprn != null" >
|
||||
FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fbabynum != null" >
|
||||
FBABYNUM = #{fbabynum,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fname != null" >
|
||||
FNAME = #{fname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fbabysexbh != null" >
|
||||
FBABYSEXBH = #{fbabysexbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fbabysex != null" >
|
||||
FBABYSEX = #{fbabysex,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftz != null" >
|
||||
FTZ = #{ftz,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="fresultbh != null" >
|
||||
FRESULTBH = #{fresultbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fresult != null" >
|
||||
FRESULT = #{fresult,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzgbh != null" >
|
||||
FZGBH = #{fzgbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzg != null" >
|
||||
FZG = #{fzg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fgricd10 != null" >
|
||||
FGRICD10 = #{fgricd10,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fgrname != null" >
|
||||
FGRNAME = #{fgrname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fbabygr != null" >
|
||||
FBABYGR = #{fbabygr,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fbabyqj != null" >
|
||||
FBABYQJ = #{fbabyqj,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fbabysuc != null" >
|
||||
FBABYSUC = #{fbabysuc,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fhxbh != null" >
|
||||
FHXBH = #{fhxbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhx != null" >
|
||||
FHX = #{fhx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.his.HISBA5" >
|
||||
update HIS_BA5
|
||||
set FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
FBABYNUM = #{fbabynum,jdbcType=INTEGER},
|
||||
FNAME = #{fname,jdbcType=VARCHAR},
|
||||
FBABYSEXBH = #{fbabysexbh,jdbcType=VARCHAR},
|
||||
FBABYSEX = #{fbabysex,jdbcType=VARCHAR},
|
||||
FTZ = #{ftz,jdbcType=DOUBLE},
|
||||
FRESULTBH = #{fresultbh,jdbcType=VARCHAR},
|
||||
FRESULT = #{fresult,jdbcType=VARCHAR},
|
||||
FZGBH = #{fzgbh,jdbcType=VARCHAR},
|
||||
FZG = #{fzg,jdbcType=VARCHAR},
|
||||
FGRICD10 = #{fgricd10,jdbcType=VARCHAR},
|
||||
FGRNAME = #{fgrname,jdbcType=VARCHAR},
|
||||
FBABYGR = #{fbabygr,jdbcType=INTEGER},
|
||||
FBABYQJ = #{fbabyqj,jdbcType=INTEGER},
|
||||
FBABYSUC = #{fbabysuc,jdbcType=INTEGER},
|
||||
FHXBH = #{fhxbh,jdbcType=VARCHAR},
|
||||
FHX = #{fhx,jdbcType=VARCHAR}
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--按病案号、住院次数查询记录-->
|
||||
<select id="selectAllByParam" resultMap="BaseResultMap">
|
||||
SELECT * FROM HIS_BA5 WHERE FPRN = #{fprn,jdbcType=VARCHAR} AND FTIMES = #{ftimes,jdbcType=INTEGER}
|
||||
</select>
|
||||
<!--批量删除-->
|
||||
<delete id="deleteAllByParam">
|
||||
DELETE FROM HIS_BA5 WHERE FPRN = #{fprn,jdbcType=VARCHAR} AND FTIMES = #{ftimes,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<!--批量添加-->
|
||||
<insert id="SimpleInsert" parameterType="java.util.List">
|
||||
insert into HIS_BA5(
|
||||
FPRN, FTIMES,
|
||||
FBABYNUM, FNAME, FBABYSEXBH,
|
||||
FBABYSEX, FTZ, FRESULTBH,
|
||||
FRESULT, FZGBH, FZG,
|
||||
FGRICD10, FGRNAME, FBABYGR,
|
||||
FBABYQJ, FBABYSUC, FHXBH,
|
||||
FHX
|
||||
)
|
||||
values
|
||||
<foreach collection="list" item="items" separator=",">
|
||||
(
|
||||
#{items.fprn,jdbcType=VARCHAR}, #{items.ftimes,jdbcType=INTEGER},
|
||||
#{items.fbabynum,jdbcType=INTEGER}, #{items.fname,jdbcType=VARCHAR}, #{items.fbabysexbh,jdbcType=VARCHAR},
|
||||
#{items.fbabysex,jdbcType=VARCHAR}, #{items.ftz,jdbcType=DOUBLE}, #{items.fresultbh,jdbcType=VARCHAR},
|
||||
#{items.fresult,jdbcType=VARCHAR}, #{items.fzgbh,jdbcType=VARCHAR}, #{items.fzg,jdbcType=VARCHAR},
|
||||
#{items.fgricd10,jdbcType=VARCHAR}, #{items.fgrname,jdbcType=VARCHAR}, #{items.fbabygr,jdbcType=INTEGER},
|
||||
#{items.fbabyqj,jdbcType=INTEGER}, #{items.fbabysuc,jdbcType=INTEGER}, #{items.fhxbh,jdbcType=VARCHAR},
|
||||
#{items.fhx,jdbcType=VARCHAR}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
@ -1,449 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.emr.dao.his.HISBA6Mapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.his.HISBA6" >
|
||||
<id column="FID" property="fid" jdbcType="BIGINT" />
|
||||
<result column="FPRN" property="fprn" jdbcType="VARCHAR" />
|
||||
<result column="FTIMES" property="ftimes" jdbcType="INTEGER" />
|
||||
<result column="FFLFSBH" property="fflfsbh" jdbcType="VARCHAR" />
|
||||
<result column="FFLFS" property="fflfs" jdbcType="VARCHAR" />
|
||||
<result column="FFLCXBH" property="fflcxbh" jdbcType="VARCHAR" />
|
||||
<result column="FFLCX" property="fflcx" jdbcType="VARCHAR" />
|
||||
<result column="FFLZZBH" property="fflzzbh" jdbcType="VARCHAR" />
|
||||
<result column="FFLZZ" property="fflzz" jdbcType="VARCHAR" />
|
||||
<result column="FYJY" property="fyjy" jdbcType="INTEGER" />
|
||||
<result column="FYCS" property="fycs" jdbcType="INTEGER" />
|
||||
<result column="FYTS" property="fyts" jdbcType="INTEGER" />
|
||||
<result column="FYRQ1" property="fyrq1" jdbcType="TIMESTAMP" />
|
||||
<result column="FYRQ2" property="fyrq2" jdbcType="TIMESTAMP" />
|
||||
<result column="FQJY" property="fqjy" jdbcType="INTEGER" />
|
||||
<result column="FQCS" property="fqcs" jdbcType="INTEGER" />
|
||||
<result column="FQTS" property="fqts" jdbcType="INTEGER" />
|
||||
<result column="FQRQ1" property="fqrq1" jdbcType="TIMESTAMP" />
|
||||
<result column="FQRQ2" property="fqrq2" jdbcType="TIMESTAMP" />
|
||||
<result column="FZNAME" property="fzname" jdbcType="VARCHAR" />
|
||||
<result column="FZJY" property="fzjy" jdbcType="INTEGER" />
|
||||
<result column="FZCS" property="fzcs" jdbcType="INTEGER" />
|
||||
<result column="FZTS" property="fzts" jdbcType="INTEGER" />
|
||||
<result column="FZRQ1" property="fzrq1" jdbcType="TIMESTAMP" />
|
||||
<result column="FZRQ2" property="fzrq2" jdbcType="TIMESTAMP" />
|
||||
<result column="FHLFSBH" property="fhlfsbh" jdbcType="VARCHAR" />
|
||||
<result column="FHLFS" property="fhlfs" jdbcType="VARCHAR" />
|
||||
<result column="FHLFFBH" property="fhlffbh" jdbcType="VARCHAR" />
|
||||
<result column="FHLFF" property="fhlff" jdbcType="VARCHAR" />
|
||||
<result column="FQTYPE" property="fqtype" jdbcType="VARCHAR" />
|
||||
<result column="FQT" property="fqt" jdbcType="VARCHAR" />
|
||||
<result column="FQN" property="fqn" jdbcType="VARCHAR" />
|
||||
<result column="FQM" property="fqm" jdbcType="VARCHAR" />
|
||||
<result column="FQALL" property="fqall" jdbcType="VARCHAR" />
|
||||
<result column="FQALLBH" property="fqallbh" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
FID, FPRN, FTIMES, FFLFSBH, FFLFS, FFLCXBH, FFLCX, FFLZZBH, FFLZZ, FYJY, FYCS, FYTS,
|
||||
FYRQ1, FYRQ2, FQJY, FQCS, FQTS, FQRQ1, FQRQ2, FZNAME, FZJY, FZCS, FZTS, FZRQ1, FZRQ2,
|
||||
FHLFSBH, FHLFS, FHLFFBH, FHLFF, FQTYPE, FQT, FQN, FQM, FQALL, FQALLBH
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from HIS_BA6
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from HIS_BA6
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.his.HISBA6" >
|
||||
insert into HIS_BA6 (FPRN, FTIMES,
|
||||
FFLFSBH, FFLFS, FFLCXBH,
|
||||
FFLCX, FFLZZBH, FFLZZ,
|
||||
FYJY, FYCS, FYTS, FYRQ1,
|
||||
FYRQ2, FQJY, FQCS,
|
||||
FQTS, FQRQ1, FQRQ2,
|
||||
FZNAME, FZJY, FZCS,
|
||||
FZTS, FZRQ1, FZRQ2,
|
||||
FHLFSBH, FHLFS, FHLFFBH,
|
||||
FHLFF, FQTYPE, FQT,
|
||||
FQN, FQM, FQALL, FQALLBH
|
||||
)
|
||||
values (#{fprn,jdbcType=VARCHAR}, #{ftimes,jdbcType=INTEGER},
|
||||
#{fflfsbh,jdbcType=VARCHAR}, #{fflfs,jdbcType=VARCHAR}, #{fflcxbh,jdbcType=VARCHAR},
|
||||
#{fflcx,jdbcType=VARCHAR}, #{fflzzbh,jdbcType=VARCHAR}, #{fflzz,jdbcType=VARCHAR},
|
||||
#{fyjy,jdbcType=INTEGER}, #{fycs,jdbcType=INTEGER}, #{fyts,jdbcType=INTEGER}, #{fyrq1,jdbcType=TIMESTAMP},
|
||||
#{fyrq2,jdbcType=TIMESTAMP}, #{fqjy,jdbcType=INTEGER}, #{fqcs,jdbcType=INTEGER},
|
||||
#{fqts,jdbcType=INTEGER}, #{fqrq1,jdbcType=TIMESTAMP}, #{fqrq2,jdbcType=TIMESTAMP},
|
||||
#{fzname,jdbcType=VARCHAR}, #{fzjy,jdbcType=INTEGER}, #{fzcs,jdbcType=INTEGER},
|
||||
#{fzts,jdbcType=INTEGER}, #{fzrq1,jdbcType=TIMESTAMP}, #{fzrq2,jdbcType=TIMESTAMP},
|
||||
#{fhlfsbh,jdbcType=VARCHAR}, #{fhlfs,jdbcType=VARCHAR}, #{fhlffbh,jdbcType=VARCHAR},
|
||||
#{fhlff,jdbcType=VARCHAR}, #{fqtype,jdbcType=VARCHAR}, #{fqt,jdbcType=VARCHAR},
|
||||
#{fqn,jdbcType=VARCHAR}, #{fqm,jdbcType=VARCHAR}, #{fqall,jdbcType=VARCHAR}, #{fqallbh,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.his.HISBA6" >
|
||||
insert into HIS_BA6
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
FID,
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
FPRN,
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES,
|
||||
</if>
|
||||
<if test="fflfsbh != null" >
|
||||
FFLFSBH,
|
||||
</if>
|
||||
<if test="fflfs != null" >
|
||||
FFLFS,
|
||||
</if>
|
||||
<if test="fflcxbh != null" >
|
||||
FFLCXBH,
|
||||
</if>
|
||||
<if test="fflcx != null" >
|
||||
FFLCX,
|
||||
</if>
|
||||
<if test="fflzzbh != null" >
|
||||
FFLZZBH,
|
||||
</if>
|
||||
<if test="fflzz != null" >
|
||||
FFLZZ,
|
||||
</if>
|
||||
<if test="fyjy != null" >
|
||||
FYJY,
|
||||
</if>
|
||||
<if test="fycs != null" >
|
||||
FYCS,
|
||||
</if>
|
||||
<if test="fyts != null" >
|
||||
FYTS,
|
||||
</if>
|
||||
<if test="fyrq1 != null" >
|
||||
FYRQ1,
|
||||
</if>
|
||||
<if test="fyrq2 != null" >
|
||||
FYRQ2,
|
||||
</if>
|
||||
<if test="fqjy != null" >
|
||||
FQJY,
|
||||
</if>
|
||||
<if test="fqcs != null" >
|
||||
FQCS,
|
||||
</if>
|
||||
<if test="fqts != null" >
|
||||
FQTS,
|
||||
</if>
|
||||
<if test="fqrq1 != null" >
|
||||
FQRQ1,
|
||||
</if>
|
||||
<if test="fqrq2 != null" >
|
||||
FQRQ2,
|
||||
</if>
|
||||
<if test="fzname != null" >
|
||||
FZNAME,
|
||||
</if>
|
||||
<if test="fzjy != null" >
|
||||
FZJY,
|
||||
</if>
|
||||
<if test="fzcs != null" >
|
||||
FZCS,
|
||||
</if>
|
||||
<if test="fzts != null" >
|
||||
FZTS,
|
||||
</if>
|
||||
<if test="fzrq1 != null" >
|
||||
FZRQ1,
|
||||
</if>
|
||||
<if test="fzrq2 != null" >
|
||||
FZRQ2,
|
||||
</if>
|
||||
<if test="fhlfsbh != null" >
|
||||
FHLFSBH,
|
||||
</if>
|
||||
<if test="fhlfs != null" >
|
||||
FHLFS,
|
||||
</if>
|
||||
<if test="fhlffbh != null" >
|
||||
FHLFFBH,
|
||||
</if>
|
||||
<if test="fhlff != null" >
|
||||
FHLFF,
|
||||
</if>
|
||||
<if test="fqtype != null" >
|
||||
FQTYPE,
|
||||
</if>
|
||||
<if test="fqt != null" >
|
||||
FQT,
|
||||
</if>
|
||||
<if test="fqn != null" >
|
||||
FQN,
|
||||
</if>
|
||||
<if test="fqm != null" >
|
||||
FQM,
|
||||
</if>
|
||||
<if test="fqall != null" >
|
||||
FQALL,
|
||||
</if>
|
||||
<if test="fqallbh != null" >
|
||||
FQALLBH,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
#{fid,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
#{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
#{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fflfsbh != null" >
|
||||
#{fflfsbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fflfs != null" >
|
||||
#{fflfs,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fflcxbh != null" >
|
||||
#{fflcxbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fflcx != null" >
|
||||
#{fflcx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fflzzbh != null" >
|
||||
#{fflzzbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fflzz != null" >
|
||||
#{fflzz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fyjy != null" >
|
||||
#{fyjy,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fycs != null" >
|
||||
#{fycs,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fyts != null" >
|
||||
#{fyts,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fyrq1 != null" >
|
||||
#{fyrq1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fyrq2 != null" >
|
||||
#{fyrq2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fqjy != null" >
|
||||
#{fqjy,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fqcs != null" >
|
||||
#{fqcs,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fqts != null" >
|
||||
#{fqts,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fqrq1 != null" >
|
||||
#{fqrq1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fqrq2 != null" >
|
||||
#{fqrq2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fzname != null" >
|
||||
#{fzname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzjy != null" >
|
||||
#{fzjy,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fzcs != null" >
|
||||
#{fzcs,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fzts != null" >
|
||||
#{fzts,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fzrq1 != null" >
|
||||
#{fzrq1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fzrq2 != null" >
|
||||
#{fzrq2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fhlfsbh != null" >
|
||||
#{fhlfsbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhlfs != null" >
|
||||
#{fhlfs,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhlffbh != null" >
|
||||
#{fhlffbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhlff != null" >
|
||||
#{fhlff,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqtype != null" >
|
||||
#{fqtype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqt != null" >
|
||||
#{fqt,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqn != null" >
|
||||
#{fqn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqm != null" >
|
||||
#{fqm,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqall != null" >
|
||||
#{fqall,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqallbh != null" >
|
||||
#{fqallbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.his.HISBA6" >
|
||||
update HIS_BA6
|
||||
<set >
|
||||
<if test="fprn != null" >
|
||||
FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fflfsbh != null" >
|
||||
FFLFSBH = #{fflfsbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fflfs != null" >
|
||||
FFLFS = #{fflfs,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fflcxbh != null" >
|
||||
FFLCXBH = #{fflcxbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fflcx != null" >
|
||||
FFLCX = #{fflcx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fflzzbh != null" >
|
||||
FFLZZBH = #{fflzzbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fflzz != null" >
|
||||
FFLZZ = #{fflzz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fyjy != null" >
|
||||
FYJY = #{fyjy,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fycs != null" >
|
||||
FYCS = #{fycs,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fyts != null" >
|
||||
FYTS = #{fyts,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fyrq1 != null" >
|
||||
FYRQ1 = #{fyrq1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fyrq2 != null" >
|
||||
FYRQ2 = #{fyrq2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fqjy != null" >
|
||||
FQJY = #{fqjy,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fqcs != null" >
|
||||
FQCS = #{fqcs,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fqts != null" >
|
||||
FQTS = #{fqts,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fqrq1 != null" >
|
||||
FQRQ1 = #{fqrq1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fqrq2 != null" >
|
||||
FQRQ2 = #{fqrq2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fzname != null" >
|
||||
FZNAME = #{fzname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fzjy != null" >
|
||||
FZJY = #{fzjy,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fzcs != null" >
|
||||
FZCS = #{fzcs,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fzts != null" >
|
||||
FZTS = #{fzts,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fzrq1 != null" >
|
||||
FZRQ1 = #{fzrq1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fzrq2 != null" >
|
||||
FZRQ2 = #{fzrq2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fhlfsbh != null" >
|
||||
FHLFSBH = #{fhlfsbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhlfs != null" >
|
||||
FHLFS = #{fhlfs,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhlffbh != null" >
|
||||
FHLFFBH = #{fhlffbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhlff != null" >
|
||||
FHLFF = #{fhlff,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqtype != null" >
|
||||
FQTYPE = #{fqtype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqt != null" >
|
||||
FQT = #{fqt,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqn != null" >
|
||||
FQN = #{fqn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqm != null" >
|
||||
FQM = #{fqm,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqall != null" >
|
||||
FQALL = #{fqall,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fqallbh != null" >
|
||||
FQALLBH = #{fqallbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.his.HISBA6" >
|
||||
update HIS_BA6
|
||||
set FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
FFLFSBH = #{fflfsbh,jdbcType=VARCHAR},
|
||||
FFLFS = #{fflfs,jdbcType=VARCHAR},
|
||||
FFLCXBH = #{fflcxbh,jdbcType=VARCHAR},
|
||||
FFLCX = #{fflcx,jdbcType=VARCHAR},
|
||||
FFLZZBH = #{fflzzbh,jdbcType=VARCHAR},
|
||||
FFLZZ = #{fflzz,jdbcType=VARCHAR},
|
||||
FYJY = #{fyjy,jdbcType=INTEGER},
|
||||
FYCS = #{fycs,jdbcType=INTEGER},
|
||||
FYTS = #{fyts,jdbcType=INTEGER},
|
||||
FYRQ1 = #{fyrq1,jdbcType=TIMESTAMP},
|
||||
FYRQ2 = #{fyrq2,jdbcType=TIMESTAMP},
|
||||
FQJY = #{fqjy,jdbcType=INTEGER},
|
||||
FQCS = #{fqcs,jdbcType=INTEGER},
|
||||
FQTS = #{fqts,jdbcType=INTEGER},
|
||||
FQRQ1 = #{fqrq1,jdbcType=TIMESTAMP},
|
||||
FQRQ2 = #{fqrq2,jdbcType=TIMESTAMP},
|
||||
FZNAME = #{fzname,jdbcType=VARCHAR},
|
||||
FZJY = #{fzjy,jdbcType=INTEGER},
|
||||
FZCS = #{fzcs,jdbcType=INTEGER},
|
||||
FZTS = #{fzts,jdbcType=INTEGER},
|
||||
FZRQ1 = #{fzrq1,jdbcType=TIMESTAMP},
|
||||
FZRQ2 = #{fzrq2,jdbcType=TIMESTAMP},
|
||||
FHLFSBH = #{fhlfsbh,jdbcType=VARCHAR},
|
||||
FHLFS = #{fhlfs,jdbcType=VARCHAR},
|
||||
FHLFFBH = #{fhlffbh,jdbcType=VARCHAR},
|
||||
FHLFF = #{fhlff,jdbcType=VARCHAR},
|
||||
FQTYPE = #{fqtype,jdbcType=VARCHAR},
|
||||
FQT = #{fqt,jdbcType=VARCHAR},
|
||||
FQN = #{fqn,jdbcType=VARCHAR},
|
||||
FQM = #{fqm,jdbcType=VARCHAR},
|
||||
FQALL = #{fqall,jdbcType=VARCHAR},
|
||||
FQALLBH = #{fqallbh,jdbcType=VARCHAR}
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--按病案号、住院次数查询记录-->
|
||||
<select id="selectAllByParam" resultMap="BaseResultMap">
|
||||
SELECT * FROM HIS_BA6 WHERE FPRN = #{fprn,jdbcType=VARCHAR} AND FTIMES = #{ftimes,jdbcType=INTEGER}
|
||||
</select>
|
||||
</mapper>
|
||||
@ -1,165 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.emr.dao.his.HISBA7Mapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.his.HISBA7" >
|
||||
<id column="FID" property="fid" jdbcType="BIGINT" />
|
||||
<result column="FPRN" property="fprn" jdbcType="VARCHAR" />
|
||||
<result column="FTIMES" property="ftimes" jdbcType="INTEGER" />
|
||||
<result column="FHLRQ1" property="fhlrq1" jdbcType="TIMESTAMP" />
|
||||
<result column="FHLRQ2" property="fhlrq2" jdbcType="TIMESTAMP" />
|
||||
<result column="FHLDRUG" property="fhldrug" jdbcType="VARCHAR" />
|
||||
<result column="FHLPROC" property="fhlproc" jdbcType="VARCHAR" />
|
||||
<result column="FHLLXBH" property="fhllxbh" jdbcType="VARCHAR" />
|
||||
<result column="FHLLX" property="fhllx" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
FID, FPRN, FTIMES, FHLRQ1, FHLRQ2, FHLDRUG, FHLPROC, FHLLXBH, FHLLX
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from HIS_BA7
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from HIS_BA7
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.his.HISBA7" >
|
||||
insert into HIS_BA7 (FPRN, FTIMES,
|
||||
FHLRQ1, FHLRQ2, FHLDRUG,
|
||||
FHLPROC, FHLLXBH, FHLLX
|
||||
)
|
||||
values (#{fprn,jdbcType=VARCHAR}, #{ftimes,jdbcType=INTEGER},
|
||||
#{fhlrq1,jdbcType=TIMESTAMP}, #{fhlrq2,jdbcType=TIMESTAMP}, #{fhldrug,jdbcType=VARCHAR},
|
||||
#{fhlproc,jdbcType=VARCHAR}, #{fhllxbh,jdbcType=VARCHAR}, #{fhllx,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.his.HISBA7" >
|
||||
insert into HIS_BA7
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
FID,
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
FPRN,
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES,
|
||||
</if>
|
||||
<if test="fhlrq1 != null" >
|
||||
FHLRQ1,
|
||||
</if>
|
||||
<if test="fhlrq2 != null" >
|
||||
FHLRQ2,
|
||||
</if>
|
||||
<if test="fhldrug != null" >
|
||||
FHLDRUG,
|
||||
</if>
|
||||
<if test="fhlproc != null" >
|
||||
FHLPROC,
|
||||
</if>
|
||||
<if test="fhllxbh != null" >
|
||||
FHLLXBH,
|
||||
</if>
|
||||
<if test="fhllx != null" >
|
||||
FHLLX,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="fid != null" >
|
||||
#{fid,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="fprn != null" >
|
||||
#{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
#{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fhlrq1 != null" >
|
||||
#{fhlrq1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fhlrq2 != null" >
|
||||
#{fhlrq2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fhldrug != null" >
|
||||
#{fhldrug,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhlproc != null" >
|
||||
#{fhlproc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhllxbh != null" >
|
||||
#{fhllxbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhllx != null" >
|
||||
#{fhllx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.his.HISBA7" >
|
||||
update HIS_BA7
|
||||
<set >
|
||||
<if test="fprn != null" >
|
||||
FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ftimes != null" >
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="fhlrq1 != null" >
|
||||
FHLRQ1 = #{fhlrq1,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fhlrq2 != null" >
|
||||
FHLRQ2 = #{fhlrq2,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="fhldrug != null" >
|
||||
FHLDRUG = #{fhldrug,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhlproc != null" >
|
||||
FHLPROC = #{fhlproc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhllxbh != null" >
|
||||
FHLLXBH = #{fhllxbh,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fhllx != null" >
|
||||
FHLLX = #{fhllx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.his.HISBA7" >
|
||||
update HIS_BA7
|
||||
set FPRN = #{fprn,jdbcType=VARCHAR},
|
||||
FTIMES = #{ftimes,jdbcType=INTEGER},
|
||||
FHLRQ1 = #{fhlrq1,jdbcType=TIMESTAMP},
|
||||
FHLRQ2 = #{fhlrq2,jdbcType=TIMESTAMP},
|
||||
FHLDRUG = #{fhldrug,jdbcType=VARCHAR},
|
||||
FHLPROC = #{fhlproc,jdbcType=VARCHAR},
|
||||
FHLLXBH = #{fhllxbh,jdbcType=VARCHAR},
|
||||
FHLLX = #{fhllx,jdbcType=VARCHAR}
|
||||
where FID = #{fid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--按病案号、住院次数查询记录-->
|
||||
<select id="selectAllByParam" resultMap="BaseResultMap">
|
||||
SELECT * FROM HIS_BA7 WHERE FPRN = #{fprn,jdbcType=VARCHAR} AND FTIMES = #{ftimes,jdbcType=INTEGER}
|
||||
</select>
|
||||
<!--批量删除-->
|
||||
<delete id="deleteAllByParam">
|
||||
DELETE FROM HIS_BA7 WHERE FPRN = #{fprn,jdbcType=VARCHAR} AND FTIMES = #{ftimes,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<!--批量添加-->
|
||||
<insert id="SimpleInsert" parameterType="java.util.List">
|
||||
insert into HIS_BA7(
|
||||
FPRN, FTIMES,
|
||||
FHLRQ1, FHLRQ2, FHLDRUG,
|
||||
FHLPROC, FHLLXBH, FHLLX
|
||||
)
|
||||
values
|
||||
<foreach collection="list" item="items" separator=",">
|
||||
(
|
||||
#{items.fprn,jdbcType=VARCHAR}, #{items.ftimes,jdbcType=INTEGER},
|
||||
#{items.fhlrq1,jdbcType=TIMESTAMP}, #{items.fhlrq2,jdbcType=TIMESTAMP}, #{items.fhldrug,jdbcType=VARCHAR},
|
||||
#{items.fhlproc,jdbcType=VARCHAR}, #{items.fhllxbh,jdbcType=VARCHAR}, #{items.fhllx,jdbcType=VARCHAR}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue