From 8ebd6141caf31c9379cd0735981d9dd92598a1b8 Mon Sep 17 00:00:00 2001 From: yangfei Date: Sat, 25 Nov 2017 11:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=90=8C=E6=AD=A5=EF=BC=8C?= =?UTF-8?q?=E9=80=80=E8=AE=A2=E5=90=8E=EF=BC=8C=E9=87=8D=E6=96=B0=E5=BC=80?= =?UTF-8?q?=E9=80=9A=EF=BC=8C=E9=80=89=E6=8B=A9=E6=9C=8D=E5=8A=A1=E5=8C=BB?= =?UTF-8?q?=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mainOrm/master/PatientService.xml | 189 +++++++++++---------- .../web/facade/PatientServiceSysFacade.java | 7 +- 2 files changed, 98 insertions(+), 98 deletions(-) diff --git a/platform-biz-service/src/main/resources/mainOrm/master/PatientService.xml b/platform-biz-service/src/main/resources/mainOrm/master/PatientService.xml index 70931f2..81273a2 100644 --- a/platform-biz-service/src/main/resources/mainOrm/master/PatientService.xml +++ b/platform-biz-service/src/main/resources/mainOrm/master/PatientService.xml @@ -3,103 +3,102 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - insert into patient_service (id,parentid,pid,ser_type,ser_doct,create_date,create_user_name,create_user,ser_status,update_date,update_user_name,update_user,hospital_id,ser_code,status,receive_date,receive_user,back_date,back_user,order_id,syn_status,is_old) values (#{id},#{parentid},#{pid},#{serType},#{serDoct},#{createDate},#{createUserName},#{createUser},#{serStatus},#{updateDate},#{updateUserName},#{updateUser},#{hospitalId},#{serCode},#{status},#{receiveDate},#{receiveUser},#{backDate},#{backUser},#{orderId},#{synStatus},#{isOld}) - - update patient_service - parentid = #{parentid,jdbcType=VARCHAR}, - - - pid = #{pid,jdbcType=VARCHAR}, - - - ser_type = #{serType,jdbcType=INTEGER}, - - + update patient_service + ser_doct = #{serDoct,jdbcType=VARCHAR}, - - - create_date = #{createDate,jdbcType=TIMESTAMP}, - - - create_user_name = #{createUserName,jdbcType=VARCHAR}, - - - create_user = #{createUser,jdbcType=VARCHAR}, - - - ser_status = #{serStatus,jdbcType=INTEGER}, - - - update_date = #{updateDate,jdbcType=TIMESTAMP}, - - - update_user_name = #{updateUserName,jdbcType=VARCHAR}, - - - update_user = #{updateUser,jdbcType=VARCHAR}, - - - hospital_id = #{hospitalId,jdbcType=VARCHAR}, - - - ser_code = #{serCode,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - receive_date = #{receiveDate,jdbcType=TIMESTAMP}, - - - receive_user = #{receiveUser,jdbcType=VARCHAR}, - - - back_date = #{backDate,jdbcType=TIMESTAMP}, - - - back_user = #{backUser,jdbcType=VARCHAR}, - - - order_id = #{orderId,jdbcType=VARCHAR}, - - - syn_status = #{synStatus,jdbcType=INTEGER}, - - - is_old = #{isOld,jdbcType=INTEGER}, - - + + parentid = #{parentid,jdbcType=VARCHAR}, + + + pid = #{pid,jdbcType=VARCHAR}, + + + ser_type = #{serType,jdbcType=INTEGER}, + + + + create_date = #{createDate,jdbcType=TIMESTAMP}, + + + create_user_name = #{createUserName,jdbcType=VARCHAR}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + ser_status = #{serStatus,jdbcType=INTEGER}, + + + update_date = #{updateDate,jdbcType=TIMESTAMP}, + + + update_user_name = #{updateUserName,jdbcType=VARCHAR}, + + + update_user = #{updateUser,jdbcType=VARCHAR}, + + + hospital_id = #{hospitalId,jdbcType=VARCHAR}, + + + ser_code = #{serCode,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=INTEGER}, + + + receive_date = #{receiveDate,jdbcType=TIMESTAMP}, + + + receive_user = #{receiveUser,jdbcType=VARCHAR}, + + + back_date = #{backDate,jdbcType=TIMESTAMP}, + + + back_user = #{backUser,jdbcType=VARCHAR}, + + + order_id = #{orderId,jdbcType=VARCHAR}, + + + syn_status = #{synStatus,jdbcType=INTEGER}, + + + is_old = #{isOld,jdbcType=INTEGER}, + + where id = #{id,jdbcType=VARCHAR} @@ -109,7 +108,6 @@ - - select id,parentid,pid,ser_type,ser_doct,create_date,create_user_name,create_user,ser_status,update_date,update_user_name,update_user,hospital_id,ser_code,status,receive_date,receive_user,back_date,back_user,order_id,syn_status,is_old + - select count(1) from patient_service - + \ No newline at end of file diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceSysFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceSysFacade.java index a6fc847..7c28a2f 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceSysFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceSysFacade.java @@ -55,20 +55,19 @@ public class PatientServiceSysFacade implements SysBaseFacade { //先根据孕妇id和开通服务类型、开通医生进行查询,如果已经开通过则开通失败 PatientServiceQuery patientQuery = new PatientServiceQuery(); - //开通医院 - // patientQuery.setHospitalId(patientService.getHospitalId()); //根据孕妇主档案Id进行查询 patientQuery.setParentid(patientService.getParentid()); //开通服务 patientQuery.setSerType(patientService.getSerType()); - //开通医院 - // patientQuery.setHospitalId(patientService.getHospitalId()); List patientServices = patientServiceService.queryPatientService(patientQuery); if (CollectionUtils.isNotEmpty(patientServices)) {//修改 PatientService ps = patientServices.get(0); ps.setSerStatus(patientService.getSerStatus()); ps.setSerCode(patientService.getSerCode()); ps.setOrderId(patientService.getOrderId()); + ps.setSerDoct(patientService.getSerDoct()); + ps.setHospitalId(patientService.getHospitalId()); + //操作时间 ps.setUpdateDate(new Date()); patientServiceService.updatePatientService(ps); } else {//新增 -- 1.8.3.1