Pārlūkot izejas kodu

协同服务代码提交

liuwenbin 6 gadi atpakaļ
vecāks
revīzija
f71a4f2ddf

+ 1 - 1
patient-co-manage/wlyy-manage/src/main/java/com/yihu/wlyy/controller/synergy/customer/CustomerSynergyManageController.java

@ -475,7 +475,7 @@ public class CustomerSynergyManageController extends BaseController {
        }
    }
    @RequestMapping(value = "exportWorkorder", method = RequestMethod.GET)
    @RequestMapping(value = "exportWorkorder", method = RequestMethod.GET,produces = "application/json;charset=UTF-8")
    @ApiOperation("客服系统-协同服务列表")
    public String exportWorkorder(@ApiParam(name = "userCode", value = "客服code", required = false)
                                @RequestParam(value = "userCode", required = false)String userCode,

+ 5 - 1
patient-co-manage/wlyy-manage/src/main/java/com/yihu/wlyy/service/synergy/SynergyManageService.java

@ -272,6 +272,8 @@ public class SynergyManageService extends BaseJpaService {
            map.put("hospitalName",one.get("hospital_name"));
            map.put("servicerKey",one.get("servicer_key"));
            map.put("remark",one.get("remark"));
            map.put("relationCode",one.get("relation_code"));
            map.put("relationCodeName",one.get("relation_code_name"));
            if(workorderTypeR==0||workorderTypeR==2||workorderTypeR==3){
                servicerList = workorderServicerDao.findByWorkorderCode(one.get("code")+"");
                if(servicerList.size()>0){
@ -1239,8 +1241,9 @@ public class SynergyManageService extends BaseJpaService {
            List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
            //生成excel
            response.setCharacterEncoding("utf-8");
            response.setContentType("octets/stream");
            response.setHeader("Content-Disposition", "attachment; filename="+ new String( "patientHealthIndexDataList.xls"));
            response.setHeader("Content-Disposition", "attachment; filename="+ new String( "synergyManageList.xls"));
            OutputStream os = response.getOutputStream();
            wwb = Workbook.createWorkbook(os);
            WritableSheet ws = Workbook.createWorkbook(os).createSheet("sheet",1);
@ -1259,6 +1262,7 @@ public class SynergyManageService extends BaseJpaService {
            Integer workorderTypeR = null;
            String workorderTypeName = null;
            Date createTime = null;
            i=0;
            for(Map<String,Object> one:list){
                workorderTypeR = (Integer) one.get("workorder_type");
                createTime = (Date)one.get("create_time");