| | |
| | | import com.example.utils.AjaxResult; |
| | | import com.example.utils.FieldNameConverter; |
| | | import com.example.utils.HttpClientUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | * @Author: zhaowenxuan |
| | | * @Date: 2024/12/25 10:14 |
| | | */ |
| | | @Slf4j |
| | | @Service("ShanXiQinXiAnMeiJiLis") |
| | | public class MeiJiLisService implements LisService { |
| | | @Autowired |
| | |
| | | hashMap.put("YBKH",""); |
| | | hashMap.put("TJDW",map.get(ApiParamsConstants.COMP_NAME)); |
| | | hashMap.put("ISACTIVE","1"); |
| | | hashMap.put("SENDDOCTOR",map.get(ApiParamsConstantsLis.SENDDOCTOR)); |
| | | hashMap.put("SENDDOCTORNAME",map.get(ApiParamsConstantsLis.SENDDOCTORNAME)); |
| | | hashMap.put("SENDDEPARTCODE",map.get(ApiParamsConstantsLis.SENDDEPARTCODE)); |
| | | hashMap.put("SENDDEPARTNAME",map.get(ApiParamsConstantsLis.SENDDEPARTNAME)); |
| | | hashMap.put("APPLYDEPARTCODE",map.get(ApiParamsConstantsLis.APPLYDEPARTCODE)); |
| | | hashMap.put("APPLYDEPARTNAME",map.get(ApiParamsConstantsLis.APPLYDEPARTNAME)); |
| | | hashMap.put("APPLYDOCTORCODE",map.get(ApiParamsConstantsLis.APPLYDOCTORCODE)); |
| | | hashMap.put("APPLYDOCTORNAME",map.get(ApiParamsConstantsLis.APPLYDOCTORNAME)); |
| | | hashMap.put("SENDDOCTOR","1573"); |
| | | hashMap.put("SENDDOCTORNAME","孙鹏侠"); |
| | | hashMap.put("SENDDEPARTCODE","533"); |
| | | hashMap.put("SENDDEPARTNAME","体检中心"); |
| | | hashMap.put("APPLYDEPARTCODE","533"); |
| | | hashMap.put("APPLYDEPARTNAME","体检中心"); |
| | | hashMap.put("APPLYDOCTORCODE","1573"); |
| | | hashMap.put("APPLYDOCTORNAME","孙鹏侠"); |
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | String dqsj = format.format(new Date()); |
| | | hashMap.put("APPLYDATETIME",dqsj); |
| | |
| | | hashMap.put("SENDDATE",dqsj); |
| | | hashMap.put("SFDATE",dqsj); |
| | | // TODO |
| | | hashMap.put("HOSPITALID",""); |
| | | hashMap.put("HOSPITALID","xamjyy"); |
| | | // TODO |
| | | hashMap.put("CARDTYPE",""); |
| | | // hashMap.put("CARDTYPE",""); |
| | | hashMap.put("PATIENTTYPE","3"); |
| | | hashMap.put("SFYNAME",map.get(ApiParamsConstantsLis.SFYNAME)); |
| | | hashMap.put("jizhenBz","0"); |
| | |
| | | orderInfoList.add(object); |
| | | } |
| | | hashMap.put("OderInfoList",orderInfoList); |
| | | log.info("申请单 ->{}",JSONUtil.toJsonStr(hashMap)); |
| | | String post = sendPost(LIS_URL + "/lisinterface" + "/HisApplyList", hashMap); |
| | | JSONObject entries = JSONUtil.parseObj(post); |
| | | if (entries.getStr("MsgCode").equals("0")) |
| | |
| | | JSONObject object = (JSONObject) o; |
| | | JSONObject entries = JSONUtil.createObj(); |
| | | entries.putOpt("TXM",object.getStr(ApiParamsConstantsLis.TXM)); |
| | | entries.putOpt("TFDOCTORID",object.getStr(ApiParamsConstantsLis.TFDOCTORID)); |
| | | entries.putOpt("TFDOCTORNAME",object.getStr(ApiParamsConstantsLis.TFDOCTORNAME)); |
| | | entries.putOpt("TFDOCTORID","1573"); |
| | | entries.putOpt("TFDOCTORNAME","孙鹏侠"); |
| | | entries.putOpt("TFDATE",sj); |
| | | entries.putOpt("TFDEPARTID",object.getStr(ApiParamsConstantsLis.TFDEPARTID)); |
| | | entries.putOpt("TFDEPARTNAME",object.getStr(ApiParamsConstantsLis.TFDEPARTNAME)); |
| | | // TODO |
| | | entries.putOpt("HOSPITALID",""); |
| | | entries.putOpt("TFDEPARTID","533"); |
| | | entries.putOpt("TFDEPARTNAME","体检中心"); |
| | | entries.putOpt("HOSPITALID","xamjyy"); |
| | | entries.putOpt("TFSFXMID",object.getStr(ApiParamsConstantsLis.SFXMID)); |
| | | entries.putOpt("TFSFXMNAME",object.getStr(ApiParamsConstantsLis.SFXMNAME)); |
| | | entries.putOpt("TFKEYVALUE",object.getStr(ApiParamsConstantsLis.PRIMARY_KEY)); |