| | |
| | | import com.ltkj.hosp.service.ITjOrderDetailService; |
| | | import com.ltkj.hosp.service.ITjOrderService; |
| | | import com.ltkj.hosp.vodomain.ShenGaoTiZhongVo; |
| | | import com.ltkj.system.service.ISysConfigService; |
| | | import com.ltkj.web.controller.system.TjCheckController; |
| | | import com.ltkj.web.controller.system.TjReportController; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | private ITjOrderService tjOrderService; |
| | | @Autowired |
| | | private ITjOrderDetailService detailService; |
| | | @Autowired |
| | | private ISysConfigService sysConfigService; |
| | | |
| | | /** |
| | | * æä¾ç»ä¸æ¹è°ç¨çæ¥åæ¥çæ¥å£ |
| | |
| | | JSONObject entries = JSONUtil.parseObj(json); |
| | | String card = entries.getStr("card"); |
| | | // TjCustomer customer = tjCustomerMapper.getCusInfo(card); |
| | | List<Map<String ,Object>> customer = tjCustomerMapper.getCusInfoList(card); |
| | | return AjaxResult.success(customer); |
| | | String key = sysConfigService.selectConfigByKey("h5OrXcxQueryDate"); |
| | | if (StrUtil.isBlank(key)){ |
| | | key = "2025-05-01"; |
| | | } |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | try { |
| | | Date date = sdf.parse(key); |
| | | List<Map<String ,Object>> customer = tjCustomerMapper.getCusInfoList(card,date); |
| | | return AjaxResult.success(customer); |
| | | } catch (ParseException e) { |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | left join tj_order b on b.card_id = a.card_id join tj_customer c on c.cus_id = b.user_id |
| | | left join sys_attachment d on d.old_file_name<>concat(c.cus_name,'_',a.id,'.jpg') |
| | | where a.his_xmdm in ('8522','gmd'); |
| | | |
| | | -- ç
ç§ç»è®¡æ¥è¡¨ |
| | | INSERT INTO `jimu_report` (`id`, `code`, `name`, `note`, `status`, `type`, `json_str`, `api_url`, `thumb`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `api_method`, `api_code`, `template`, `view_count`, `css_str`, `js_str`, `tenant_id`, `print_type`, `is_start`, `create_id`, `update_id`) VALUES ('1042322631512850432', '20250123163821', 'ç
ç§ç»è®¡', NULL, NULL, 'datainfo', '{\"loopBlockList\":[],\"area\":{\"sri\":3,\"sci\":1,\"eri\":3,\"eci\":1,\"width\":250,\"height\":40},\"excel_config_id\":\"1042322631512850432\",\"printConfig\":{\"paper\":\"A4\",\"width\":210,\"height\":297,\"definition\":1,\"isBackend\":false,\"marginX\":10,\"marginY\":10,\"layout\":\"portrait\",\"printCallBackUrl\":\"\"},\"zonedEditionList\":[],\"rows\":{\"0\":{\"cells\":{\"0\":{\"merge\":[1,6],\"height\":50,\"text\":\"ç
ç§ç»è®¡\",\"style\":1}}},\"1\":{\"cells\":{}},\"2\":{\"cells\":{\"0\":{\"style\":7,\"text\":\" 项ç®\"},\"1\":{\"style\":8,\"text\":\" å¼å¸¸é¡¹ç®\",\"rendered\":\"\",\"config\":\"\"},\"2\":{\"style\":8,\"text\":\" 鳿§äººæ°\"},\"3\":{\"style\":8,\"text\":\"é´æ§äººæ° \"},\"4\":{\"style\":8,\"text\":\"æ»æ£æ¥äººæ°\"},\"5\":{\"style\":8,\"text\":\" æ£å¸¸ç\"}}},\"3\":{\"cells\":{\"0\":{\"style\":11,\"text\":\"#{data.group(pro_name)}\",\"aggregate\":\"group\",\"rendered\":\"\",\"config\":\"\"},\"1\":{\"style\":11,\"text\":\"#{data.temp_result}\",\"aggregate\":\"select\",\"rendered\":\"\",\"config\":\"\",\"display\":\"normal\"},\"2\":{\"style\":12,\"text\":\"#{data.yangxing}\",\"rendered\":\"\",\"config\":\"\"},\"3\":{\"style\":12,\"text\":\"#{data.yinxing}\"},\"4\":{\"style\":12,\"text\":\"#{data.person_count}\"},\"5\":{\"style\":13,\"text\":\"#{data.zcl}\",\"decimalPlaces\":\"2\"}},\"height\":40},\"5\":{\"cells\":{\"0\":{\"style\":10,\"text\":\" \"},\"1\":{\"style\":10,\"text\":\" \",\"rendered\":\"\",\"config\":\"\"},\"2\":{\"style\":10,\"text\":\" \"},\"3\":{\"style\":10,\"text\":\" \"},\"4\":{\"style\":10,\"text\":\" \"},\"5\":{\"style\":10,\"text\":\" \"}}},\"6\":{\"cells\":{\"0\":{\"style\":10,\"text\":\" \"},\"1\":{\"style\":10,\"text\":\" \"},\"2\":{\"style\":10,\"text\":\" \"},\"3\":{\"style\":10,\"text\":\" \"},\"4\":{\"style\":10,\"text\":\" \"},\"5\":{\"style\":10,\"text\":\" \"}}},\"len\":99},\"dbexps\":[],\"dicts\":[],\"rpbar\":{\"show\":true,\"pageSize\":\"\",\"btnList\":[]},\"groupField\":\"data.pro_name\",\"fixedPrintHeadRows\":[],\"fixedPrintTailRows\":[],\"freeze\":\"A1\",\"dataRectWidth\":640,\"displayConfig\":{},\"background\":false,\"name\":\"sheet1\",\"autofilter\":{},\"styles\":[{\"align\":\"center\"},{\"align\":\"center\",\"font\":{\"size\":22}},{\"font\":{\"size\":22}},{\"bgcolor\":\"#deeaf6\"},{\"bgcolor\":\"#deeaf6\",\"border\":{\"bottom\":[\"thin\",\"#000\"],\"top\":[\"thin\",\"#000\"],\"left\":[\"thin\",\"#000\"],\"right\":[\"thin\",\"#000\"]}},{\"border\":{\"bottom\":[\"thin\",\"#000\"],\"top\":[\"thin\",\"#000\"],\"left\":[\"thin\",\"#000\"],\"right\":[\"thin\",\"#000\"]}},{\"bgcolor\":\"#deeaf6\",\"border\":{\"bottom\":[\"thin\",\"#000\"],\"top\":[\"thin\",\"#000\"],\"left\":[\"thin\",\"#000\"],\"right\":[\"thin\",\"#000\"]},\"font\":{\"bold\":true}},{\"bgcolor\":\"#deeaf6\",\"border\":{\"bottom\":[\"thin\",\"#000\"],\"top\":[\"thin\",\"#000\"],\"left\":[\"thin\",\"#000\"],\"right\":[\"thin\",\"#000\"]},\"font\":{\"bold\":true},\"align\":\"center\"},{\"bgcolor\":\"#deeaf6\",\"border\":{\"bottom\":[\"thin\",\"#000\"],\"top\":[\"thin\",\"#000\"],\"left\":[\"thin\",\"#000\"],\"right\":[\"thin\",\"#000\"]},\"align\":\"center\"},{\"border\":{\"bottom\":[\"thin\",\"#000\"],\"top\":[\"thin\",\"#000\"],\"left\":[\"thin\",\"#000\"],\"right\":[\"thin\",\"#000\"]},\"format\":\"number\"},{},{\"border\":{\"bottom\":[\"thin\",\"#000\"],\"top\":[\"thin\",\"#000\"],\"left\":[\"thin\",\"#000\"],\"right\":[\"thin\",\"#000\"]},\"textwrap\":true},{\"border\":{\"bottom\":[\"thin\",\"#000\"],\"top\":[\"thin\",\"#000\"],\"left\":[\"thin\",\"#000\"],\"right\":[\"thin\",\"#000\"]},\"align\":\"center\"},{\"border\":{\"bottom\":[\"thin\",\"#000\"],\"top\":[\"thin\",\"#000\"],\"left\":[\"thin\",\"#000\"],\"right\":[\"thin\",\"#000\"]},\"format\":\"number\",\"align\":\"center\"}],\"validations\":[],\"isGroup\":true,\"cols\":{\"1\":{\"width\":250},\"2\":{\"width\":60},\"3\":{\"width\":60},\"4\":{\"width\":70},\"5\":{\"width\":100},\"len\":50},\"merges\":[\"A1:G2\"]}', NULL, NULL, '10001', '2025-01-23 16:38:22', '10001', '2025-05-26 14:45:56', 0, NULL, NULL, 0, 53, NULL, NULL, NULL, NULL, NULL, NULL, NULL); |
| | | INSERT INTO `jimu_report_db` (`id`, `jimu_report_id`, `create_by`, `update_by`, `create_time`, `update_time`, `db_code`, `db_ch_name`, `db_type`, `db_table_name`, `db_dyn_sql`, `db_key`, `tb_db_key`, `tb_db_table_name`, `java_type`, `java_value`, `api_url`, `api_method`, `is_list`, `is_page`, `db_source`, `db_source_type`, `json_data`, `api_convert`, `create_id`, `update_id`) VALUES ('1047054311028981760', '1042322631512850432', '10001', '10001', '2025-05-26 14:45:54', '2025-05-26 14:45:54', 'data', 'ä¿¡æ¯', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://192.168.1.2:5000/report/jmreport/getBingZhong?hospId=ltkjpeis10_jdczgzyy&start=${start}&end=${end}', '0', '1', '0', '', NULL, '', '', NULL, NULL); |
| | | INSERT INTO `jimu_report_db_param` (`id`, `jimu_report_head_id`, `param_name`, `param_txt`, `param_value`, `order_num`, `create_by`, `create_time`, `update_by`, `update_time`, `search_flag`, `widget_type`, `search_mode`, `dict_code`, `search_format`, `ext_json`, `create_id`, `update_id`) VALUES ('1086866920296972288', '1047054311028981760', 'start', 'å¼å§æ¶é´', '=dateStr(\'yyyy-MM-dd\', -1)', 1, '10001', '2025-05-26 14:45:54', NULL, NULL, 1, 'date', NULL, NULL, 'yyyy-MM-dd HH:mm:ss', '', NULL, NULL); |
| | | INSERT INTO `jimu_report_db_param` (`id`, `jimu_report_head_id`, `param_name`, `param_txt`, `param_value`, `order_num`, `create_by`, `create_time`, `update_by`, `update_time`, `search_flag`, `widget_type`, `search_mode`, `dict_code`, `search_format`, `ext_json`, `create_id`, `update_id`) VALUES ('1086868045213499392', '1047054311028981760', 'end', 'ç»ææ¶é´', '=dateStr(\'yyyy-MM-dd 23:59:59\')', 2, '10001', '2025-05-26 14:45:54', NULL, NULL, 1, 'date', NULL, NULL, 'yyyy-MM-dd HH:mm:ss', '', NULL, NULL); |
| | | INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `deleted`, `create_id`, `update_id`) VALUES (2403, 'ç
ç§ç»è®¡', 2035, 60, 'bztj', 'jmreport/bztj/index', NULL, 1, 0, 'C', '0', '0', NULL, '#', 'è¶
级管çå', '2025-05-26 09:43:57', '', NULL, '', 0, NULL, NULL); |
| | |
| | | ALTER TABLE tj_order ADD COLUMN zhiye_jl VARCHAR(255) NULL COMMENT 'èä¸ç»è®º'; |
| | | ALTER TABLE tj_order ADD COLUMN zhiye_jg VARCHAR(255) NULL COMMENT 'èä¸ç»æ'; |
| | | |
| | | ALTER TABLE `tj_order` |
| | | ADD COLUMN `zhiye_gz` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'èä¸å·¥ç§' AFTER `zhiye_jg`, |
| | | ADD COLUMN `zhiye_zgln` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'è䏿»å·¥é¾å¹´' AFTER `zhiye_gz`, |
| | | ADD COLUMN `zhiye_zgly` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'æ»å·¥é¾æ' AFTER `zhiye_zgln`, |
| | | ADD COLUMN `zhiye_jhys` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'è䏿¥å®³å ç´ ' AFTER `zhiye_zgly`, |
| | | ADD COLUMN `zhiye_rzsj` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'èä¸å
¥èæ¶é´' AFTER `zhiye_jhys`, |
| | | ADD COLUMN `zhiye_scdw` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'è䏿å¤åä½' AFTER `zhiye_rzsj`, |
| | | ADD COLUMN `zhiye_zysksrq` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'èä¸å²å¼å§æ¥æ' AFTER `zhiye_scdw`, |
| | | ADD COLUMN `zhiye_zysjsrq` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'èä¸å²ç»ææ¥æ' AFTER `zhiye_zysksrq`, |
| | | ADD COLUMN `zhiye_zysszdw` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'èä¸å²æå¨åä½' AFTER `zhiye_zysjsrq`; |
| | | |
| | | # åå¨è¿ç¨ä¿®æ¹ |
| | | # tj_check_list |
| | | # å¢å 忰以åæç»ç»æéè¿åå¢å æ¡ä»¶ |
| | |
| | | package com.ltkj.hosp.mapper; |
| | | |
| | | import java.sql.ResultSet; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | |
| | | List<TjCustomer> getcusList(TjCustomer tjCustomer); |
| | | |
| | | List<Map<String ,Object >> getCusInfoList(String card); |
| | | List<Map<String ,Object >> getCusInfoList(@Param("card") String card,@Param("time") Date time); |
| | | |
| | | List<Map<String ,Object >> getCusInfoListByCardAndName(@Param("card") String card,@Param("name") String name); |
| | | |
| | |
| | | LEFT JOIN tj_report r ON o.tj_number = r.tj_number |
| | | WHERE |
| | | c.cus_idcard = #{card} |
| | | and o.create_time > #{time} |
| | | ORDER BY |
| | | o.create_time DESC |
| | | </select> |