Browse Source

Merge branch 'dev' of yeshijie/jw2.0 into dev

yeshijie 7 years ago
parent
commit
37ed965ac1

+ 1 - 1
app/app-iot-server/src/main/java/com/yihu/ehr/iot/controller/product/IotProductController.java

@ -126,7 +126,7 @@ public class IotProductController extends BaseController {
    @GetMapping(value = IotRequestMapping.Product.maintenanceUnitById)
    @ApiOperation(value = "根据id查找产品", notes = "根据id查找产品")
    @ApiOperation(value = "根据id查找产品的维护单位", notes = "根据id查找产品的维护单位")
    public Envelop<IotMaintenanceUnitVO> maintenanceUnitById(@ApiParam(name = "productId", value = "productId")
                                            @RequestParam(value = "productId", required = true) String productId) {
        try {

+ 3 - 1
app/app-iot-server/src/main/java/com/yihu/ehr/iot/controller/third/wlyy/MonitoringHealthPlatformController.java

@ -178,12 +178,14 @@ public class MonitoringHealthPlatformController extends BaseController{
                                               @RequestParam(value = "type", required = true) Integer type,
                                               @ApiParam(name = "gi_type", value = "就餐类型0全部", defaultValue = "1")
                                               @RequestParam(value = "gi_type", required = false) Integer gi_type,
                                               @ApiParam(name="time",value="时间(一周,一月,半年)",defaultValue = "")
                                               @RequestParam(value="time",required = true) String time,
                                               @ApiParam(name = "begin", value = "开始时间", defaultValue = "2017-05-22")
                                               @RequestParam(value = "begin", required = true) String begin,
                                               @ApiParam(name = "end", value = "结束时间", defaultValue = "2018-06-02")
                                               @RequestParam(value = "end", required = true) String end) {
        try {
            return monitoringHealthService.getHealthIndexChartByPatient(patient,type,gi_type,begin,end);
            return monitoringHealthService.getHealthIndexChartByPatient(patient,type,gi_type,begin,end,time);
        } catch (Exception e) {
            e.printStackTrace();
            return error(-1,"查询失败");

+ 2 - 1
app/app-iot-server/src/main/java/com/yihu/ehr/iot/service/third/wlyy/MonitoringHealthService.java

@ -223,11 +223,12 @@ public class MonitoringHealthService extends BaseService{
     * @param end
     * @return
     */
    public String getHealthIndexChartByPatient(String patient,Integer type, Integer gi_type,String begin,String end) {
    public String getHealthIndexChartByPatient(String patient, Integer type, Integer gi_type, String begin, String end,String time) {
        String url = "/wlyygc/iot_monitoring/chart";
        Map<String, Object> params = new HashMap<>();
        params.put("patient",patient);
        params.put("type",type);
        params.put("time",time);
        params.put("begin",begin);
        params.put("end",end);
        params.put("gi_type",gi_type);

+ 5 - 5
common/common-entity/src/main/java/com/yihu/jw/iot/company/IotCompanyCertificateDO.java

@ -32,7 +32,7 @@ public class IotCompanyCertificateDO extends IdEntityWithOperation implements Se
    @Column(name = "launch_company_id")
    private String launchCompanyId;//发起企业id
    @Column(name = "launch_company_business_license")
    private String launchCcompanyBusinessLicense;//发起企业营业执照号
    private String launchCompanyBusinessLicense;//发起企业营业执照号
    @Column(name = "company_name")
    private String companyName;//归属企业名称
    @Column(name = "company_id")
@ -120,12 +120,12 @@ public class IotCompanyCertificateDO extends IdEntityWithOperation implements Se
        this.launchCompanyId = launchCompanyId;
    }
    public String getLaunchCcompanyBusinessLicense() {
        return launchCcompanyBusinessLicense;
    public String getLaunchCompanyBusinessLicense() {
        return launchCompanyBusinessLicense;
    }
    public void setLaunchCcompanyBusinessLicense(String launchCcompanyBusinessLicense) {
        this.launchCcompanyBusinessLicense = launchCcompanyBusinessLicense;
    public void setLaunchCompanyBusinessLicense(String launchCompanyBusinessLicense) {
        this.launchCompanyBusinessLicense = launchCompanyBusinessLicense;
    }
    public Date getStartTime() {

+ 1 - 4
svr/svr-iot/src/main/java/com/yihu/iot/controller/product/IotProductController.java

@ -55,7 +55,7 @@ public class IotProductController extends EnvelopRestController {
                size = 10;
            }
            String filters = "";
            String semicolon = "";
            String semicolon = "del=1;";
            if(StringUtils.isNotBlank(name)){
                filters = "name?"+name+" g1;registerCertificate?"+name+" g1";
                semicolon = ";";
@ -68,9 +68,6 @@ public class IotProductController extends EnvelopRestController {
                filters += semicolon +"productClassify="+classify;
                semicolon = ";";
            }
            if(StringUtils.isBlank(filters)){
                filters+= semicolon + "del=1";
            }
            String sorts = "-updateTime";
            //得到list数据
            List<IotProductBaseInfoDO> list = iotProductBaseInfoService.search(null, filters, sorts, page, size);

+ 1 - 1
svr/svr-iot/src/main/java/com/yihu/iot/service/company/IotCompanyCertificateService.java

@ -92,7 +92,7 @@ public class IotCompanyCertificateService extends BaseJpaService<IotCompanyCerti
            old.setManufacturerId(iotCompanyCertificateDO.getManufacturerId());
            old.setCompanyName(iotCompanyCertificateDO.getCompanyName());
            old.setCompanyId(iotCompanyCertificateDO.getCompanyId());
            old.setLaunchCcompanyBusinessLicense(iotCompanyCertificateDO.getLaunchCcompanyBusinessLicense());
            old.setLaunchCompanyBusinessLicense(iotCompanyCertificateDO.getLaunchCompanyBusinessLicense());
            old.setLaunchCompanyId(iotCompanyCertificateDO.getLaunchCompanyId());
            old.setLaunchCompanyName(iotCompanyCertificateDO.getLaunchCompanyName());
            old.setStartTime(iotCompanyCertificateDO.getStartTime());