| | |
| | | package com.ltkj.hosp.service.impl; |
| | | |
| | | import cn.hutool.json.JSONObject; |
| | | import cn.hutool.json.JSONUtil; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.hosp.domain.TjOrder; |
| | | import com.ltkj.hosp.mapper.LtkjExamJcsqdMapper; |
| | | import com.ltkj.hosp.mapper.LtkjHysqdMapper; |
| | | import com.ltkj.hosp.service.LtkjExamJcsqdService; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Collections; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 病种+意见Service业务层处理 |
| | |
| | | public void deletedLtkjHysqdByTjhAndTmh(String tjh, String tmh) { |
| | | mapper.deletedLtkjHysqdByTjhAndTmh(tjh,tmh); |
| | | } |
| | | |
| | | @Override |
| | | public List<LtkjHysqd> getLtkjHysqdByTjh(String tjh) { |
| | | return mapper.getLtkjHysqdByTjh(tjh); |
| | | } |
| | | |
| | | @Override |
| | | public List<TjCustomer> getCgYcXmList(Date strTime, Date endTime) { |
| | | return mapper.getCgYcXmList(strTime,endTime); |
| | | } |
| | | |
| | | @Override |
| | | public List<TjCustomer> getHyYcXmList(Date strTime, Date endTime) { |
| | | return mapper.getHyYcXmList(strTime,endTime); |
| | | } |
| | | |
| | | @Override |
| | | public int getHyYcXmCount(String cardId) { |
| | | return mapper.getHyYcXmCount(cardId); |
| | | } |
| | | |
| | | @Override |
| | | public void deletedByTjhAndXmId(String tjh, String xmid) { |
| | | mapper.deletedByTjhAndXmId(tjh,xmid); |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult getAsyncDataByPro(String ksmc,String strIn,String brid,int pagecount,int page) { |
| | | List<Map<String, Object>> maps = mapper.getAsyncDataByPro(ksmc, strIn, brid, pagecount, page); |
| | | JSONObject entries = JSONUtil.createObj(); |
| | | entries.putOpt("ResultCode","0"); |
| | | entries.putOpt("ResultData",maps); |
| | | JSONObject object = JSONUtil.createObj(); |
| | | object.putOpt("Response",entries); |
| | | return AjaxResult.success().put("data",object).put("code",0); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String ,Object>> getAsyncJybgdByPro(String strIn) { |
| | | return mapper.getAsyncHybgdDataByPro(strIn); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> getAsyncJybgdWswByPro(String strIn) { |
| | | return mapper.getAsyncHybgdWswDataByPro(strIn); |
| | | } |
| | | } |