Selaa lähdekoodia

眼科医院处方物流

ysj 5 vuotta sitten
vanhempi
commit
f867b8f5e5

+ 4 - 7
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/entrance/YkyyEntranceService.java

@ -76,6 +76,8 @@ public class YkyyEntranceService {
    private final static String updateEntityUrl="http://192.168.20.55:10023/ykyy/update";
    private final static String jdbcUrl="http://192.168.20.55:10023/ykyy/jdbcSQLQuery";
    private final static String orgCode ="350211A5004";
    private final static String orgName ="厦门大学附属厦门眼科中心";
@ -279,15 +281,10 @@ public class YkyyEntranceService {
     * @throws Exception
     */
    public JSONArray getUnsettledPrescription() throws Exception{
        String sql = "SELECT h.BRID,h.CFSB from HLW_CF01 h WHERE h.SPZT = 1 and h.FKZT = 0 and h.SJLY= 1 and h.SPRQ > TO_DATE('"+DateUtil.getNowD()+"', 'yyyy-MM-dd') ";
//        String sql = "select h.brid,h.cfsb from HLW_CF01 h where h.spzt = 1 and h.fkzt = 0";
        String sql = "SELECT h.BRID,h.CFSB from HLW_CF01 h WHERE h.SPZT = 1 and h.FKZT = 0 and h.SJLY= 1 and h.SPRQ > (sysdate-1) ";
        Map<String,Object> params = new HashedMap();
        params.put("sql",sql);
        logger.info("sql="+sql);
        HttpResponse response = HttpUtils.doGet(url,params);
        List<Map<String,Object>> rstotal = jdbcTemplate.queryForList(sql);
        logger.info("rstotal="+JSONObject.toJSONString(rstotal));
        HttpResponse response = HttpUtils.doGet(jdbcUrl,params);
        String content = response.getContent();
        logger.info("response:"+content);