后台优化

master
zengwh 6 years ago
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();
}
}

@ -148,23 +148,23 @@ public class LogAopAction {
DefaultParameterNameDiscoverer discover = new DefaultParameterNameDiscoverer();
String[] parameterNames = discover.getParameterNames(method);
//拼接查询语句
String sqlWhere = "";
StringBuilder sqlWhere = new StringBuilder();
if (args.length == 1) {
//一个参数如id
sqlWhere = " " + propertyToField(parameterNames[0]) + " = '" + args[0] +"'";
sqlWhere.append(" " + propertyToField(parameterNames[0]) + " = '" + args[0] +"'");
} else {
String regexp = "\'";
for (int i = 0; i < args.length; i++) {
String fieldValue = (String)args[i];
fieldValue = fieldValue.replaceAll(regexp, "");
if (i != args.length - 1) {
sqlWhere += " " + propertyToField(parameterNames[i]) + " = '" + fieldValue + "' AND ";
sqlWhere.append(" " + propertyToField(parameterNames[i]) + " = '" + fieldValue + "' AND ");
} else {
sqlWhere += " " + propertyToField(parameterNames[i]) + " = '" + fieldValue +"'";
sqlWhere.append(" " + propertyToField(parameterNames[i]) + " = '" + fieldValue +"'");
}
}
}
Map<String, Object> obj = logService.selectObjectByKey(tableName, sqlWhere);
Map<String, Object> obj = logService.selectObjectByKey(tableName, sqlWhere.toString());
if(obj != null){
logBo.setRemark(obj.get(fieldName).toString());
}

@ -1047,16 +1047,16 @@ public class CommomSearchController {
if (StringUtils.isNoneBlank(commomVo.getPatientId()) && StringUtils.isNoneBlank(assortIds) && StringUtils.isNoneBlank(newAssortId)) {
//根据patientIdadmissIds(scanPage分类图片集合)批量更新分段id assrotdId
//组织picNames
String picNameStr = "";
StringBuilder picNameStr = new StringBuilder();
String[] picNames = assortIds.split(",");
for(String picName : picNames){
if(StringUtils.isNotBlank(picName)){
picNameStr += "'" + picName + "',";
picNameStr.append("'" + picName + "',");
}
}
picNameStr = picNameStr.substring(0,picNameStr.length()-1);
picNameStr = new StringBuilder(picNameStr.substring(0,picNameStr.length()-1));
//批量更新
scanAssortService.SimpleUpdateByPatientIdAndScanPages(commomVo.getPatientId(), newAssortId, picNameStr);
scanAssortService.SimpleUpdateByPatientIdAndScanPages(commomVo.getPatientId(), newAssortId, picNameStr.toString());
return ResultUtil.ok();
}
return null;
@ -1149,26 +1149,26 @@ public class CommomSearchController {
tree1.setName("全部影像资料(" + scanAssortVos.size() + ")");
tree1.setCount(scanAssortVos.size());
//定义图片集合
String scanPathList = "";
StringBuilder scanPathList = new StringBuilder();
//定义绝对路径集合
String srcs = "";
StringBuilder srcs = new StringBuilder();
//定义分类名称集合
String assortNames = "";
StringBuilder assortNames = new StringBuilder();
if (null != scanAssortVos && !scanAssortVos.isEmpty()) {
//定义图片分类不重复结合
Set<String> assortNameSet = new LinkedHashSet<>();
for (ScanAssortVo scanAssort : scanAssortVos) {
if (StringUtils.isNotBlank(scanAssort.getAssortName())) {
assortNameSet.add(scanAssort.getAssortName());
scanPathList += scanAssort.getScanPage() + ",";
srcs += scanAssort.getRootPath() + "\\" + scanAssort.getScanPage() + ",";
assortNames += scanAssort.getAssortName() + ",";
scanPathList.append(scanAssort.getScanPage() + ",");
srcs.append(scanAssort.getRootPath() + "\\" + scanAssort.getScanPage() + ",");
assortNames.append(scanAssort.getAssortName() + ",");
}
}
//设置图片名称集合
tree1.setScanPageList(scanPathList);
tree1.setSrcs(srcs);
tree1.setAssortNames(assortNames);
tree1.setScanPageList(scanPathList.toString());
tree1.setSrcs(srcs.toString());
tree1.setAssortNames(assortNames.toString());
treeList.add(tree1);
for (String assortName : assortNameSet) {
id++;
@ -1176,23 +1176,23 @@ public class CommomSearchController {
tree2.setId(id);
tree2.setParentId(1);
//定义图片集合
String scanPathList1 = "";
String srcs1 = "";
StringBuilder scanPathList1 = new StringBuilder();
StringBuilder srcs1 = new StringBuilder();
//定义分类图片的个数
Integer count = 0;
for (ScanAssortVo scanAssort : scanAssortVos) {
if (StringUtils.isNotBlank(scanAssort.getAssortName())) {
if (scanAssort.getAssortName().equals(assortName)) {
scanPathList1 += scanAssort.getScanPage() + ",";
srcs1 += scanAssort.getRootPath() + "\\" + scanAssort.getScanPage() + ",";
scanPathList1.append(scanAssort.getScanPage() + ",");
srcs1.append(scanAssort.getRootPath() + "\\" + scanAssort.getScanPage() + ",");
count++;
}
}
}
tree2.setName(assortName + "(" + count + ")");
tree2.setCount(count);
tree2.setScanPageList(scanPathList1);
tree2.setSrcs(srcs1);
tree2.setScanPageList(scanPathList1.toString());
tree2.setSrcs(srcs1.toString());
tree2.setAssortNames(assortName);
treeList.add(tree2);
}

@ -737,12 +737,12 @@ public class ApproveController {
Power_User user = (Power_User)request.getSession().getAttribute("CURRENT_USER");
String userName = user.getUserName();
if (null != ids || ids.length > 0){
String idsStr = "";
StringBuilder idsStr = new StringBuilder();
for (int i = 0; i < ids.length; i++) {
if(i != ids.length - 1) {
idsStr += ids[i] + ",";
idsStr.append(ids[i] + ",");
}else {
idsStr += ids[i];
idsStr.append(ids[i]);
}
}
Emr_Apply_Approve applyApprove = new Emr_Apply_Approve();
@ -755,7 +755,7 @@ public class ApproveController {
if("2".equals(state)){
applyApprove.setApplyState("1");
}
applyApproveService.SimpleUpdate(applyApprove,idsStr);
applyApproveService.SimpleUpdate(applyApprove,idsStr.toString());
}
return ResultUtil.ok();
}

@ -98,9 +98,9 @@ public class EmrLockController {
Integer status = 1;
List<Emr_Lock> emr_locks = emrLockService.selectLockListByStatus(status);
if(null != emr_locks && !emr_locks.isEmpty()){
String locks = "";
StringBuilder locks = new StringBuilder();
for (int i = 0; i < emr_locks.size(); i++) {
locks += "'" + emr_locks.get(i).getPatientId() + "',";
locks.append("'" + emr_locks.get(i).getPatientId() + "',");
}
return JSON.toJSONString(locks);
}else{

@ -147,17 +147,17 @@ public class BackDatabaseController {
@ResponseBody
public ResultUtil deleteLogByIds(@PathVariable("ids")String ids) throws Exception{
String[] idList = ids.split(",");
String str = "";
StringBuilder str = new StringBuilder();
for (int i = 0; i < idList.length; i++) {
if(StringUtils.isNoneBlank(idList[i])){
if(i != idList.length - 1){
str += idList[i] + ",";
str.append(idList[i] + ",");
}else{
str += idList[i];
str.append(idList[i]);
}
}
}
logService.deleteLogByIds(str);
logService.deleteLogByIds(str.toString());
return ResultUtil.ok();
}

@ -458,8 +458,8 @@ public class TemplateSearchController {
if(roleId == 0){
modleList = emrModleMapper.selectAllByCreater(null);
}else if(roleId == -100){
String creaters = CommomService.creaters(request);
modleList = emrModleMapper.selectAllByCreater(creaters);
StringBuilder creaters = CommomService.creaters(request);
modleList = emrModleMapper.selectAllByCreater(creaters.toString());
}else{
userName = "'" + userName + "'";
modleList = emrModleMapper.selectAllByCreater(userName);
@ -811,11 +811,11 @@ public class TemplateSearchController {
model.addAttribute("relateds", relateds);
//列名转属性名
if(null != relateds && !relateds.isEmpty()){
String fields = "";
StringBuilder fields = new StringBuilder();
for (int i = 0;i<relateds.size();i++){
String columnValue = relateds.get(i).getColumnValue();
String field = BeanFieldToValue.column2modelProperty(columnValue);
fields += field + ",";
fields.append(field + ",");
}
model.addAttribute("fields",fields);
}
@ -834,11 +834,11 @@ public class TemplateSearchController {
model.addAttribute("relateds", relateds);
//列名转属性名
if(null != relateds && !relateds.isEmpty()){
String fields = "";
StringBuilder fields = new StringBuilder();
for (int i = 0;i<relateds.size();i++){
String columnValue = relateds.get(i).getColumnValue();
String field = BeanFieldToValue.column2modelProperty(columnValue);
fields += field + ",";
fields.append(field + ",");
}
model.addAttribute("fields",fields);
}
@ -873,10 +873,10 @@ public class TemplateSearchController {
Power_User user = (Power_User)request.getSession().getAttribute("CURRENT_USER");
String userName = user.getUserName();
List<Emr_Apply_Approve> approveList = applyApproveMapper.selectPatientIdsByUser(userName,null,type);
String approves = "";
StringBuilder approves = new StringBuilder();
if(null != approveList && !approveList.isEmpty()){
for (int i = 0; i < approveList.size(); i++) {
approves += approveList.get(i).getPatientId() + ",";
approves.append(approveList.get(i).getPatientId() + ",");
}
}
return JSON.toJSONString(approves);
@ -893,10 +893,10 @@ public class TemplateSearchController {
try {
//查询已锁定的集合
List<Emr_Lock> emr_locks = lockMapper.selectLockListByStatus(1);
String locks = "";
StringBuilder locks = new StringBuilder();
if(null != emr_locks && !emr_locks.isEmpty()) {
for (int i = 0; i < emr_locks.size(); i++) {
locks += "'" + emr_locks.get(i).getPatientId() + "',";
locks.append("'" + emr_locks.get(i).getPatientId() + "',");
}
}
return JSON.toJSONString(locks);
@ -1214,14 +1214,14 @@ public class TemplateSearchController {
public String getPatientIdsBySql(String sql){
if (StringUtils.isNoneBlank(sql)) {
try {
String json = "";
StringBuilder json = new StringBuilder();
long start = System.currentTimeMillis();
List<CommomVo> list = commomMapper.selectAll(sql);
long end = System.currentTimeMillis();
//System.out.println("查询patiendId集合时间"+(end - start)/1000.0+"s");
if(null != list && !list.isEmpty()) {
for (int i = 0; i < list.size(); i++) {
json += "'" + list.get(i).getPatientId() + "',";
json.append("'" + list.get(i).getPatientId() + "',");
}
}
return JSON.toJSONString(json);
@ -1297,14 +1297,15 @@ public class TemplateSearchController {
try {
if(StringUtils.isNotBlank(assortIds)){
String[] assortIdStr = assortIds.split(",");
assortIds = "";
StringBuilder assortIdsBuilder = new StringBuilder();
for (int i = 0; i < assortIdStr.length; i++) {
if(i != assortIdStr.length - 1){
assortIds += "'" + assortIdStr[i] + "',";
assortIdsBuilder.append("'" + assortIdStr[i] + "',");
}else{
assortIds += "'" + assortIdStr[i] + "'";
assortIdsBuilder.append("'" + assortIdStr[i] + "'");
}
}
assortIds = assortIdsBuilder.toString();
}
List<ScanPathVo> scanPathVos = scanPathMapper.selectScanFileByBloodPatientIds(patientIds,assortIds,flag);
if(null != scanPathVos && !scanPathVos.isEmpty()){
@ -1358,14 +1359,15 @@ public class TemplateSearchController {
try {
if(StringUtils.isNotBlank(assortIds)){
String[] assortIdStr = assortIds.split(",");
assortIds = "";
StringBuilder assortIdsBuilder = new StringBuilder();
for (int i = 0; i < assortIdStr.length; i++) {
if(i != assortIdStr.length - 1){
assortIds += "'" + assortIdStr[i] + "',";
assortIdsBuilder.append("'" + assortIdStr[i] + "',");
}else{
assortIds += "'" + assortIdStr[i] + "'";
assortIdsBuilder.append("'" + assortIdStr[i] + "'");
}
}
assortIds = assortIdsBuilder.toString();
List<ScanPathVo> scanPathVos = scanPathMapper.selectScanFileByBloodPatientIds(patientIds,assortIds,flag);
//批量添加打印记录
printOrDownLoadInfoService.SimpleInsert(scanPathVos,typeId,Short.valueOf("1"));

@ -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();
}
}

@ -11,8 +11,6 @@ import com.emr.entity.tScanAssort.T_Scan_Assort;
import com.emr.service.tScanAssort.T_Scan_AssortService;
import com.emr.util.UUIDUtils;
import com.emr.util.img2PdfUtil;
import com.emr.vo.FontVo.ScanAssortVo;
import com.emr.vo.Msg;
import com.emr.vo.User;
import com.emr.vo.commomSearch.CommomBlood;
import com.emr.vo.commomSearch.CommomVo;
@ -28,8 +26,6 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import org.springframework.util.MultiValueMap;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
@ -71,20 +67,16 @@ public class CommomService {
@Autowired
private EmrPdfWaterSetMapper pdfWaterSetMapper;
//获取所属医院用户名集合
public static String creaters(HttpServletRequest request){
public static StringBuilder creaters(HttpServletRequest request){
List<User> userList = (List<User>)request.getSession().getAttribute("USER_LIST");
String creaters = "";
StringBuilder creaters = new StringBuilder();
for (int i = 0; i < userList.size(); i++) {
if(userList.get(i).getRoleId() != 0){
if(i != userList.size() - 1){
creaters += "'"+userList.get(i).getUserName() + "',";
}else{
creaters += "'"+userList.get(i).getUserName()+ "'";
}
creaters.append("'"+userList.get(i).getUserName()+ "',");
}
}
if(creaters.substring(creaters.length()-1,creaters.length()).equals(",")){
creaters = creaters.substring(0,creaters.length()-1);
if(StringUtils.isNotBlank(creaters)){
creaters = new StringBuilder(creaters.substring(0,creaters.length()-1));
}
return creaters;
}
@ -92,20 +84,16 @@ public class CommomService {
//获取所属医院用户id
public static String userIds(HttpServletRequest request){
List<User> userList = (List<User>)request.getSession().getAttribute("USER_LIST");
String userIds = "";
StringBuilder userIds = new StringBuilder();
for (int i = 0; i < userList.size(); i++) {
if(userList.get(i).getRoleId() != 0){
if(i != userList.size() - 1){
userIds += "'"+userList.get(i).getUserId() + "',";
}else{
userIds += "'"+userList.get(i).getUserId()+ "'";
}
userIds.append("'"+userList.get(i).getUserId()+ "',");
}
}
if(userIds.substring(userIds.length()-1,userIds.length()).equals(",")){
userIds = userIds.substring(0,userIds.length()-1);
if(StringUtils.isNotBlank(userIds)){
userIds = new StringBuilder(userIds.substring(0,userIds.length()-1));
}
return userIds;
return userIds.toString();
}
/**
@ -118,7 +106,6 @@ public class CommomService {
List<User> userList = new ArrayList<>();
try {
//查询缓存时候存在
userList = (List<User>)request.getSession().getAttribute("USER_LIST");
if(null == userList || userList.isEmpty()){
//调用接口查询
String resultString = "";

@ -77,10 +77,10 @@ public class ImportExcelUtil {
boolean flag = isRowEmpty(row);
if(!flag){
if(row.getPhysicalNumberOfCells() !=0){
String wrongStr = "";
StringBuilder wrongStr = new StringBuilder();
for (int k = 0; k < fieldNames.length; k++) {
//对象赋值后返回错误对象
wrongStr += getValueByField(object, fieldNames[k], getCellValue(row.getCell(k)), getCellValue(head.getCell(k)),judgeMethods[k]);
wrongStr.append(getValueByField(object, fieldNames[k], getCellValue(row.getCell(k)), getCellValue(head.getCell(k)),judgeMethods[k]));
}
//有错误信息在行尾创建cell并标红提示文字
if(StringUtils.isBlank(wrongStr)){
@ -91,7 +91,7 @@ public class ImportExcelUtil {
//判断是否有报错信息,有报错信息添加到报错信息
String valueByField = judgeMethod(jedgeMethod);
if(StringUtils.isNotBlank(valueByField)){
wrongStr += valueByField;
wrongStr.append(valueByField);
}else{
successCount++;
wrongRowIndex.add(j);
@ -117,8 +117,8 @@ public class ImportExcelUtil {
Cell cell = row.createCell( fieldNames.length);
cell.setCellStyle(cellStyle);
cell.setCellType(HSSFCell.CELL_TYPE_STRING);
wrongStr = wrongStr.substring(0,wrongStr.length()-1);
cell.setCellValue(wrongStr);
wrongStr = new StringBuilder(wrongStr.substring(0,wrongStr.length()-1));
cell.setCellValue(wrongStr.toString());
wrongCount++;
}
}
@ -197,8 +197,8 @@ public class ImportExcelUtil {
*
* object:fieldName:value:excel,head:()judgeMethod:
* */
private static String getValueByField(Object object,String fieldName,String value,String head,String judgeMethod){
String wrongStr = "";
private static StringBuilder getValueByField(Object object,String fieldName,String value,String head,String judgeMethod){
StringBuilder wrongStr = new StringBuilder();
try {
Class<?> clazz = object.getClass();
for (; clazz != Object.class; clazz = clazz.getSuperclass()) {
@ -216,7 +216,7 @@ public class ImportExcelUtil {
//执行方法
String returnWrongStr = (String)method.invoke(importExcelJudgeMethod, fieldName, value, f, object, head);
if(StringUtils.isNotBlank(returnWrongStr)){
wrongStr+=returnWrongStr;
wrongStr.append(returnWrongStr);
}
}else{
if(StringUtils.isNotBlank(value)){
@ -237,7 +237,7 @@ public class ImportExcelUtil {
}
}catch (Exception e){
e.printStackTrace();
wrongStr+="\""+head+"\"格式不正确,";
wrongStr.append("\""+head+"\"格式不正确,");
}
return wrongStr;
}

@ -101,8 +101,8 @@ public class AppleApproveServiceImpl implements ApplyApproveService{
//系统管理员全查
return applyApproveMapper.selectAllApproveByCreater(null,applyApprove,startTime1,endTime1,startTime2,endTime2);
}else if(null != roleId && roleId == -100){
String creaters = CommomService.creaters(request);
return applyApproveMapper.selectAllApproveByCreater(creaters,applyApprove,startTime1,endTime1,startTime2,endTime2);
StringBuilder creaters = CommomService.creaters(request);
return applyApproveMapper.selectAllApproveByCreater(creaters.toString(),applyApprove,startTime1,endTime1,startTime2,endTime2);
}else if(null != roleId && roleId == -101){
//TODO 可审批用户Id集合
//审批人员角色id对应可审批申请者的id集合
@ -117,7 +117,7 @@ public class AppleApproveServiceImpl implements ApplyApproveService{
@Override
public List<Emr_Apply_Approve> selectAllApprove(Emr_Apply_Approve applyApprove, String startTime1, String endTime1,
String startTime2, String endTime2,HttpServletRequest request) throws Exception{
String creaters = "";
StringBuilder creaters = new StringBuilder();
Power_User user = (Power_User)request.getSession().getAttribute("CURRENT_USER");
if(user.getRoleId() != 0 && user.getRoleId() != -100){
String resultString = "";
@ -137,19 +137,19 @@ public class AppleApproveServiceImpl implements ApplyApproveService{
for (int i = 0; i < userList.size(); i++) {
if(userList.get(i).getRoleId() != 0){
if(i != userList.size() - 1){
creaters += "'"+userList.get(i).getUserName() + "',";
creaters.append("'"+userList.get(i).getUserName() + "',");
}else{
creaters += "'"+userList.get(i).getUserName()+ "'";
creaters.append("'"+userList.get(i).getUserName()+ "'");
}
}
}
if(creaters.substring(creaters.length()-1,creaters.length()).equals(",")){
creaters = creaters.substring(0,creaters.length()-1);
creaters = new StringBuilder(creaters.substring(0,creaters.length()-1));
}
}else if(user.getRoleId() == -100){
creaters = CommomService.creaters(request);
}
return applyApproveMapper.selectAllApprove(creaters,applyApprove,startTime1,endTime1,startTime2,endTime2);
return applyApproveMapper.selectAllApprove(creaters.toString(),applyApprove,startTime1,endTime1,startTime2,endTime2);
}
@Override

@ -156,7 +156,7 @@ public class DiagServiceImpl implements DiagService {
}
//计算删除
//删除集合
String deleteDiagNos = "";
StringBuilder deleteDiagNos = new StringBuilder();
for(T_Diag diag : diags){
Boolean diagNoExist = false;
for (int i = 0; i < diagNosSplit.length; i++) {
@ -168,12 +168,12 @@ public class DiagServiceImpl implements DiagService {
}
}
if(!diagNoExist){
deleteDiagNos += diag.getDiagNo() + ",";
deleteDiagNos.append(diag.getDiagNo() + ",");
}
}
if(StringUtils.isNotBlank(deleteDiagNos)){
deleteDiagNos = deleteDiagNos.substring(0,deleteDiagNos.length()-1);
diagMapper.deleteDiagByPatientIdAndDiagNo(patientId,deleteDiagNos);
deleteDiagNos = new StringBuilder(deleteDiagNos.substring(0,deleteDiagNos.length()-1));
diagMapper.deleteDiagByPatientIdAndDiagNo(patientId,deleteDiagNos.toString());
}
}else{
//全部新增

@ -155,7 +155,7 @@ public class OperateServiceImpl implements OperateService {
}
//计算删除
//删除集合
String deleteOperateNos = "";
StringBuilder deleteOperateNos = new StringBuilder();
for(T_Operate operate : operates){
Boolean operateNoExist = false;
for (int i = 0; i < operNosSplit.length; i++) {
@ -167,12 +167,12 @@ public class OperateServiceImpl implements OperateService {
}
}
if(!operateNoExist){
deleteOperateNos += operate.getOperateNo() + ",";
deleteOperateNos.append(operate.getOperateNo() + ",");
}
}
if(StringUtils.isNotBlank(deleteOperateNos)){
deleteOperateNos = deleteOperateNos.substring(0,deleteOperateNos.length()-1);
operateMapper.deleteOperCodeByPatientIdAndOperNo(patientId,deleteOperateNos);
deleteOperateNos = new StringBuilder(deleteOperateNos.substring(0,deleteOperateNos.length()-1));
operateMapper.deleteOperCodeByPatientIdAndOperNo(patientId,deleteOperateNos.toString());
}
}else{
//全部新增

@ -144,9 +144,9 @@ public class PrintOrDownLoadInfoService {
Map<String,List> map = JSON.parseObject(scanPage, LinkedHashMap.class);
if(!CollectionUtils.isEmpty(map)) {
//定义图片分类字符串
String assortNames = "";
StringBuilder assortNames = new StringBuilder();
//定义图片名称字符串
String scanPages = "";
StringBuilder scanPages = new StringBuilder();
//遍历map
for (Map.Entry<String, List> m : map.entrySet()) {
//获取图片分类
@ -157,7 +157,7 @@ public class PrintOrDownLoadInfoService {
if (StringUtils.isNotBlank(assort.getAssortId()) &&
assortId.equals(assort.getAssortId())) {
if (StringUtils.isNotBlank(assort.getAssortName())) {
assortNames += assort.getAssortName() + ",";
assortNames.append(assort.getAssortName() + ",");
}
break;
}
@ -167,19 +167,19 @@ public class PrintOrDownLoadInfoService {
List<String> scanPageList = m.getValue();
//遍历图片名称
for (String scanPageTemp : scanPageList) {
scanPages += scanPageTemp + ",";
scanPages.append(scanPageTemp + ",");
printCount++;
}
}
//去掉尾部逗号
if (StringUtils.isNotBlank(assortNames)) {
assortNames = assortNames.substring(0, assortNames.length() - 1);
vo.setAssortName(assortNames);
assortNames = new StringBuilder(assortNames.substring(0, assortNames.length() - 1));
vo.setAssortName(assortNames.toString());
}
//去掉尾部逗号
if (StringUtils.isNotBlank(scanPages)) {
scanPages = scanPages.substring(0, scanPages.length() - 1);
vo.setScanPage(scanPages);
scanPages = new StringBuilder(scanPages.substring(0, scanPages.length() - 1));
vo.setScanPage(scanPages.toString());
}
}else{
vo.setAssortName(null);

@ -143,7 +143,7 @@ public class AnnotationTemplateServiceImpl implements AnnotationTemplateService{
//封装根据医院系统管理员获取用户id逗号隔开的字符串
private String getCreatersByHospitalId(HttpServletRequest request){
//医院管理员查对应医院用户id集合.
String creaters = "";
StringBuilder creaters = new StringBuilder();
List<User> userList = (List<User>)request.getSession().getAttribute("USER_LIST");
if(null != userList && !userList.isEmpty()){
for(int i = 0;i < userList.size();i++){
@ -154,12 +154,12 @@ public class AnnotationTemplateServiceImpl implements AnnotationTemplateService{
}
for(int i = 0;i < userList.size();i++){
if(i != userList.size() - 1){
creaters += "'" + userList.get(i).getUserName() + "',";
creaters.append("'" + userList.get(i).getUserName() + "',");
}else{
creaters += "'" + userList.get(i).getUserName() + "'";
creaters.append("'" + userList.get(i).getUserName() + "'");
}
}
}
return creaters;
return creaters.toString();
}
}

File diff suppressed because it is too large Load Diff

@ -44,8 +44,8 @@ public class EmrTypeServiceImpl implements EmrTypeService {
if(null != roleId && roleId == 0){
return emrTypeMapper.selectAllByCreater(null,isEffective);
}else if(null != roleId && roleId == -100){
String creaters = CommomService.creaters(request);
return emrTypeMapper.selectAllByCreater(creaters,isEffective);
StringBuilder creaters = CommomService.creaters(request);
return emrTypeMapper.selectAllByCreater(creaters.toString(),isEffective);
}else{
//按创建者id查
userName = "'" + userName + "'";

@ -299,6 +299,8 @@ public class img2PdfUtil {
OutputStream out = new FileOutputStream(fileOutPath);
// 加完水印的文件
PdfStamper stamper = new PdfStamper(reader,out);
//设置不允许打印
stamper.setEncryption(null, null, ~(PdfWriter.ALLOW_COPY | PdfWriter.ALLOW_PRINTING ), PdfWriter.STANDARD_ENCRYPTION_128);
// 设置字体
BaseFont font = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.EMBEDDED);
// PDF总页数

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>

@ -13,10 +13,22 @@
var path = "${path}";
</script>
</HEAD>
<body id="noprint" oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onbeforecopy="return false" oncopy=document.selection.empty() onselect=document.selection.empty()>
<body id="noprint"
oncontextmenu="return false"
ondragstart="return false"
onselectstart="return false"
onbeforecopy="return false"
oncopy=document.selection.empty()
onselect=document.selection.empty()>
<div>
<p style="margin-top:-50px;margin-bottom:0px;" media="print" class="noprint">
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" id="Pdf1" width="100%" height="120%" oncontextmenu="return false" oncontextmenu="window.event.returnvalue=false" media="print">
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" id="Pdf1" width="100%" height="120%" media="print"
oncontextmenu="return false"
ondragstart="return false"
onselectstart="return false"
onbeforecopy="return false"
oncopy=document.selection.empty()
onselect=document.selection.empty()>
<param name="_Version" value="327680">
<param name="_ExtentX" value="3000">
<param name="_ExtentY" value="16323">
@ -26,5 +38,5 @@
</p>
</div>
<script type="text/javascript" src="${path}/static/js/font/showRecordIframeBloodCommom.js"></script>
</body>
</HTML>
</body>
</HTML>

@ -160,7 +160,7 @@
<label class="col-sm-4 control-label">排序:</label>
<div class="col-sm-7">
<input type="number" class="form-control input-sm input" name="typeSort"
oninput="if(value.length>4)value=value.slice(0,4)">
oninput="if(value.length>4)value=value.slice(0,4)" min="0">
</div>
<div class="col-sm-1"></div>
</div>
@ -181,7 +181,9 @@
<div class="form-group">
<div class="col-sm-4"></div>
<div class="col-sm-8">
<label>
<input type="radio" value="1" name="selectFlag">选中类别为当前使用
</label>
</div>
</div>
</div>

@ -182,7 +182,7 @@
<label class="col-sm-4 control-label left">有效时间:</label>
<div class="col-sm-6 input-group left" style="padding-left:15px;width: 31%;">
<input type="text" class="form-control input-sm dateInput datepicker" name="effeTime"
id="effeTime1" value="${emrModle.effeTime}">
id="effeTime1" value="${emrModle.effeTime}" autocomplete="off">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>

@ -133,7 +133,7 @@
<div class="form-group">
<label class="col-sm-4 control-label">有效时间:</label>
<div class="col-sm-6 input-group">
<input type="text" class="form-control input-sm dateInput datepicker" name="effeTime">
<input type="text" class="form-control input-sm dateInput datepicker" name="effeTime" autocomplete="off">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
@ -157,7 +157,7 @@
<div class="form-group">
<label class="col-sm-4 control-label">排序:</label>
<div class="col-sm-7">
<input type="number" class="form-control input-sm input" name="modleSort" oninput="if(value.length>9)value=value.slice(0,9)">
<input type="number" class="form-control input-sm input" name="modleSort" oninput="if(value.length>9)value=value.slice(0,9)" min="0">
</div>
<div class="col-sm-1"></div>
</div>
@ -175,7 +175,9 @@
<div class="form-group">
<div class="col-sm-4"></div>
<div class="col-sm-8">
<label>
<input type="radio" value="1" name="selectFlag">选中模板为当前使用
</label>
</div>
</div>
</div>

@ -9,15 +9,17 @@ $(function(){
$('.contentDiv').css('height', '100%').css('height', '-=140px');
//加载iframe
//谷歌
$("#iframe").prop("src",path+"/commom/showRecordIframeBlood?patientId="+$("#patientId").val()+"&flag=file_path"+"&rootPaths="+$("#rootPaths").val());
/*var ie = isIE(8);
//$("#iframe").prop("src",path+"/commom/showRecordIframeBlood?patientId="+$("#patientId").val()+"&flag=file_path"+"&rootPaths="+$("#rootPaths").val());
//ie8加载iframe
//$("#iframe").prop("src",path+"/font/showRecordIframeBloodFont?patientId="+$("#patientId").val()+"&flag=file_path");
var ie = isIE(8);
if(ie) {
//ie8加载iframe
$("#iframe").prop("src",path+"/font/showRecordIframeBloodFont?patientId="+$("#patientId").val()+"&flag=file_path");
}else{
//谷歌
$("#iframe").prop("src",path+"/commom/showRecordIframeBlood?patientId="+$("#patientId").val()+"&flag=file_path"+"&rootPaths="+$("#rootPaths").val());
}*/
}
//加载其他诊断名称鼠标滑过显示全部文本
//loadQtip('.otherDiagName');
//加载病案信息

Loading…
Cancel
Save