Browse Source

Merge branch 'dev' of http://192.168.1.220:10080/Amoy/patient-co-management into dev

liuwenbin 7 years ago
parent
commit
01f5b80f3b

+ 0 - 25
common-lib/pom.xml

@ -16,31 +16,6 @@
    <modules>
    <modules>
        <!--<module>../jolokia-admin</module>&lt;!&ndash;springBoot性能分析项目&ndash;&gt;-->
        <module>../patient-co/patient-co-wlyy</module> <!--i健康-->
        <module>../patient-co/patient-co-wlyy-job</module> <!--i健康 job工程-->
        <module>../patient-co/patient-co-statistics</module> <!--i健康 mysql 版本统计-->
        <!--<module>../patient-co/patient-co-statistics-es</module> &lt;!&ndash;i健康 es 版本统计&ndash;&gt;-->
        <!--<module>../patient-co-figure</module>-->
        <!--对外同步数据的项目-->
        <module>../patient-co-service/wlyy_service</module> <!--其他业务同步-->
        <module>../patient-co-service/wlyy_sign</module> <!--签约同步-->
        <module>../patient-co-service/wlyy_device</module> <!--设备-->
        <!--wlyy后台管理-->
        <module>../patient-co-manage/wlyy-manage</module> <!--i健康后台管理系统-->
        <!--定制化的项目-->
        <module>../patient-co-customization/patient-co-modern-medicine</module><!--中医项目-->
        <!--公共的model-->
        <!--公共的model-->
        <module>../common/common-entity</module>
        <module>../common/common-entity</module>
    </modules>
    </modules>

+ 2 - 2
patient-co-customization/patient-co-modern-medicine/pom.xml

@ -4,10 +4,10 @@
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
    <parent>
        <artifactId>common-lib</artifactId>
        <artifactId>patient-co-lib</artifactId>
        <groupId>com.yihu</groupId>
        <groupId>com.yihu</groupId>
        <version>1.0.0</version>
        <version>1.0.0</version>
        <relativePath>../../common-lib/pom.xml</relativePath>
        <relativePath>../../patient-co-lib/pom.xml</relativePath>
    </parent>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <modelVersion>4.0.0</modelVersion>

+ 44 - 0
patient-co-lib/pom.xml

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>wlyy</artifactId>
        <groupId>com.yihu</groupId>
        <version>1.0.0</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>patient-co-lib</artifactId>
    <packaging>pom</packaging>
    <modules>
        <!--<module>../jolokia-admin</module>&lt;!&ndash;springBoot性能分析项目&ndash;&gt;-->
        <module>../patient-co/patient-co-wlyy</module> <!--i健康-->
        <module>../patient-co/patient-co-wlyy-job</module> <!--i健康 job工程-->
        <module>../patient-co/patient-co-statistics</module> <!--i健康 mysql 版本统计-->
        <!--<module>../patient-co/patient-co-statistics-es</module> &lt;!&ndash;i健康 es 版本统计&ndash;&gt;-->
        <!--<module>../patient-co-figure</module>-->
        <!--对外同步数据的项目-->
        <module>../patient-co-service/wlyy_service</module> <!--其他业务同步-->
        <module>../patient-co-service/wlyy_sign</module> <!--签约同步-->
        <module>../patient-co-service/wlyy_device</module> <!--设备-->
        <!--wlyy后台管理-->
        <module>../patient-co-manage/wlyy-manage</module> <!--i健康后台管理系统-->
        <!--定制化的项目-->
        <module>../patient-co-customization/patient-co-modern-medicine</module><!--中医项目-->
    </modules>
</project>

+ 2 - 3
patient-co/patient-co-statistics-es/pom.xml

@ -2,12 +2,11 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <parent>
    <parent>
        <artifactId>common-lib</artifactId>
        <artifactId>patient-co-lib</artifactId>
        <groupId>com.yihu</groupId>
        <groupId>com.yihu</groupId>
        <version>1.0.0</version>
        <version>1.0.0</version>
        <relativePath>../../common-lib/pom.xml</relativePath>
        <relativePath>../../patient-co-lib/pom.xml</relativePath>
    </parent>
    </parent>
    <artifactId>patient-co-statistics-es</artifactId>
    <artifactId>patient-co-statistics-es</artifactId>
    <version>1.0.0</version>
    <version>1.0.0</version>

+ 2 - 2
patient-co/patient-co-statistics/pom.xml

@ -2,10 +2,10 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <parent>
    <parent>
        <artifactId>common-lib</artifactId>
        <artifactId>patient-co-lib</artifactId>
        <groupId>com.yihu</groupId>
        <groupId>com.yihu</groupId>
        <version>1.0.0</version>
        <version>1.0.0</version>
        <relativePath>../../common-lib/pom.xml</relativePath>
        <relativePath>../../patient-co-lib/pom.xml</relativePath>
    </parent>
    </parent>
    <artifactId>patient-co-statistics</artifactId>
    <artifactId>patient-co-statistics</artifactId>

+ 2 - 2
patient-co/patient-co-wlyy-job/pom.xml

@ -4,10 +4,10 @@
    <modelVersion>4.0.0</modelVersion>
    <modelVersion>4.0.0</modelVersion>
    <parent>
    <parent>
        <artifactId>common-lib</artifactId>
        <artifactId>patient-co-lib</artifactId>
        <groupId>com.yihu</groupId>
        <groupId>com.yihu</groupId>
        <version>1.0.0</version>
        <version>1.0.0</version>
        <relativePath>../../common-lib/pom.xml</relativePath>
        <relativePath>../../patient-co-lib/pom.xml</relativePath>
    </parent>
    </parent>

+ 2 - 2
patient-co/patient-co-wlyy/pom.xml

@ -4,10 +4,10 @@
    <modelVersion>4.0.0</modelVersion>
    <modelVersion>4.0.0</modelVersion>
    <parent>
    <parent>
        <artifactId>common-lib</artifactId>
        <artifactId>patient-co-lib</artifactId>
        <groupId>com.yihu</groupId>
        <groupId>com.yihu</groupId>
        <version>1.0.0</version>
        <version>1.0.0</version>
        <relativePath>../../common-lib/pom.xml</relativePath>
        <relativePath>../../patient-co-lib/pom.xml</relativePath>
    </parent>
    </parent>

+ 19 - 11
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/prescription/PrescriptionInfoService.java

@ -690,6 +690,11 @@ public class PrescriptionInfoService extends BaseService {
        List<Map<String,Object>> states = new ArrayList<>();
        List<Map<String,Object>> states = new ArrayList<>();
        Map<String,Object> map0 = new HashMap<>();
        map0.put("name","续方申请通过");
        map0.put("code",PrescriptionLog.PrescriptionLogStatus.wait_pay.getValue());
        states.add(map0);
        Map<String,Object> map1 = new HashMap<>();
        Map<String,Object> map1 = new HashMap<>();
        map1.put("name","订单已支付");
        map1.put("name","订单已支付");
        map1.put("code",PrescriptionLog.PrescriptionLogStatus.pay_success.getValue());
        map1.put("code",PrescriptionLog.PrescriptionLogStatus.pay_success.getValue());
@ -711,9 +716,9 @@ public class PrescriptionInfoService extends BaseService {
        states.add(map4);
        states.add(map4);
        Map<String,Object> map5 = new HashMap<>();
        Map<String,Object> map5 = new HashMap<>();
        map2.put("name","配药完成");
        map2.put("code",PrescriptionLog.PrescriptionLogStatus.finish.getValue());
        states.add(map2);
        map5.put("name","配送完成");
        map5.put("code",PrescriptionLog.PrescriptionLogStatus.finish.getValue());
        states.add(map5);
        //设置配送状态下拉框
        //设置配送状态下拉框
        rs.put("states",states);
        rs.put("states",states);
@ -778,8 +783,8 @@ public class PrescriptionInfoService extends BaseService {
            param.add("%"+nameKey+"%");
            param.add("%"+nameKey+"%");
        }
        }
        if(StringUtils.isNotBlank(teamCode)){
        if(StringUtils.isNotBlank(teamCode)){
            pre_sql.append(" AND p.admin_team_id = ? ");
            param.add("%"+teamCode+"%");
            pre_sql.append(" AND pr.admin_team_id = ? ");
            param.add(teamCode);
        }
        }
        if(StringUtils.isNotBlank(startDate)){
        if(StringUtils.isNotBlank(startDate)){
            pre_sql.append(" AND pr.create_time >= ? ");
            pre_sql.append(" AND pr.create_time >= ? ");
@ -815,12 +820,15 @@ public class PrescriptionInfoService extends BaseService {
    }
    }
    public JSONObject getCountExpressage(String teamCode){
    public JSONObject getCountExpressage(String teamCode){
        StringBuffer pre_sql = new StringBuffer("SELECT count(1) AS count FROM  " +
                "  wlyy_prescription pr " +
                "  JOIN wlyy_prescription_expressage e ON pr.code = e.prescription_code " +
                "  WHERE pr.admin_team_id = ? "+
                "  AND pr.dispensary_type =3" +
                "  AND e.expressage_code IS NULL");
        StringBuffer pre_sql = new StringBuffer("SELECT " +
                " count(1) AS count  " +
                " FROM " +
                " wlyy_prescription pr " +
                " JOIN wlyy_prescription_expressage e ON pr. CODE = e.prescription_code  " +
                " WHERE " +
                " pr.admin_team_id = ? " +
                " AND pr.dispensary_type = 3 " +
                " AND e.expressage_code IS NULL");
        List<Map<String,Object>> list = jdbcTemplate.queryForList(pre_sql.toString(),new Object[]{teamCode});
        List<Map<String,Object>> list = jdbcTemplate.queryForList(pre_sql.toString(),new Object[]{teamCode});
        if(list!=null&&list.size()>0){
        if(list!=null&&list.size()>0){

+ 2 - 2
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/doctor/prescription/PrescriptionInfoController.java

@ -230,7 +230,7 @@ public class PrescriptionInfoController extends BaseController{
                                                  @RequestParam(required = false) @ApiParam(value = "机构", name = "hospital")String hospital,
                                                  @RequestParam(required = false) @ApiParam(value = "机构", name = "hospital")String hospital,
                                                  @RequestParam(required = false) @ApiParam(value = "配送状态", name = "state")String state,
                                                  @RequestParam(required = false) @ApiParam(value = "配送状态", name = "state")String state,
                                                  @RequestParam(required = false) @ApiParam(value = "配送方式:1 自取 2快递配送 3健管师配送", name = "dispensaryType")String dispensaryType,
                                                  @RequestParam(required = false) @ApiParam(value = "配送方式:1 自取 2快递配送 3健管师配送", name = "dispensaryType")String dispensaryType,
                                                  @RequestParam(required = false) @ApiParam(value = "未分配健管师", name = "传1为未分配健管师")String AllocationType,
                                                  @RequestParam(required = false) @ApiParam(value = "传1为未分配健管师", name = "AllocationType")String AllocationType,
                                                  @RequestParam(required = false) @ApiParam(value = "起始页", name = "page")Integer page,
                                                  @RequestParam(required = false) @ApiParam(value = "起始页", name = "page")Integer page,
                                                  @RequestParam(required = false) @ApiParam(value = "每页大小", name = "size")Integer size){
                                                  @RequestParam(required = false) @ApiParam(value = "每页大小", name = "size")Integer size){
        try {
        try {
@ -290,7 +290,7 @@ public class PrescriptionInfoController extends BaseController{
        }
        }
    }
    }
    @RequestMapping(value = "/distributionHealthDoctor", method = RequestMethod.GET)
    @RequestMapping(value = "/distributionHealthDoctor", method = RequestMethod.POST)
    @ApiOperation(value = "配置建管师")
    @ApiOperation(value = "配置建管师")
    public String distributionHealthDoctor(@RequestParam(required = true) @ApiParam(value = "续方Code字符串用','分割", name = "codes") String codes,
    public String distributionHealthDoctor(@RequestParam(required = true) @ApiParam(value = "续方Code字符串用','分割", name = "codes") String codes,
                                           @RequestParam(required = true) @ApiParam(value = "健康管理师Code", name = "healthDoctor")String healthDoctor){
                                           @RequestParam(required = true) @ApiParam(value = "健康管理师Code", name = "healthDoctor")String healthDoctor){

+ 18 - 8
readme.MD

@ -1,11 +1,24 @@
common
**根目录的pom是负责放项目中用到的包和版本的**
        
**common-lib**
    公共的模块父类包,maven主要的包在根目录的 pom.xml中
    
**common**
    
    
    common-entity   i健康公共的实体类
    common-entity   i健康公共的实体类
    
    
jolokia-admin
**patient-co-lib**
    业务模块的公共maven
    
   
**jolokia-admin**
     监控springboot项目的性能
     监控springboot项目的性能
        
        
patient-co  i健康相关的业务
**patient-co  i健康相关的业务**
   
   
    patient-co-analysis  数据采集分析项目
    patient-co-analysis  数据采集分析项目
        主要功能是监听kafka解析日志并且入库到mongodb
        主要功能是监听kafka解析日志并且入库到mongodb
@ -20,12 +33,9 @@ patient-co  i健康相关的业务
    patient-co-wlyy
    patient-co-wlyy
        i健康后台项目 包括医生端与患者端
        i健康后台项目 包括医生端与患者端
        
        
        
common-lib
    公共的maven父类包,maven主要的包在根目录的 pom.xml中
    
    
    
    
patient-co-service   i健康和外部项目对接的项目
**patient-co-service   i健康和外部项目对接的项目**
    
    
    wlyy_device  设备数据上传的项目 
    wlyy_device  设备数据上传的项目 
    
    
@ -33,6 +43,6 @@ patient-co-service   i健康和外部项目对接的项目
    
    
    wlyy_service 和基卫对接其他业务
    wlyy_service 和基卫对接其他业务
 
 
patient-co-customization  定制化的项目
**patient-co-customization  定制化的项目**
    patient-co-modern-medicine  集美区中医
    patient-co-modern-medicine  集美区中医