|
@ -5,12 +5,11 @@ import com.yihu.wlyy.entity.*;
|
|
|
import com.yihu.wlyy.entity.call.CallRecord;
|
|
|
import com.yihu.wlyy.entity.synergy.*;
|
|
|
import com.yihu.wlyy.repository.*;
|
|
|
import com.yihu.wlyy.repository.survey.SurveyTemplateDao;
|
|
|
import com.yihu.wlyy.repository.synergy.*;
|
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
|
import com.yihu.wlyy.util.HttpClientUtil;
|
|
|
import com.yihu.wlyy.util.IdCardUtil;
|
|
|
import com.yihu.wlyy.util.fastdfs.FastDFSUtil;
|
|
|
import com.yihu.wlyy.util.http.HttpUtils;
|
|
|
import com.yihu.wlyy.util.query.BaseJpaService;
|
|
|
import jxl.Workbook;
|
|
|
import jxl.write.*;
|
|
@ -41,8 +40,6 @@ import java.nio.charset.Charset;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
|
|
|
import static org.springframework.util.ResourceUtils.getFile;
|
|
|
|
|
|
/**
|
|
|
* Created by 刘文彬 on 2018/9/27.
|
|
|
*/
|
|
@ -79,11 +76,7 @@ public class SynergyManageService extends BaseJpaService {
|
|
|
@Autowired
|
|
|
private ManageSynergyWorkorderServicerLogDao manageSynergyWorkorderServicerLogDao;
|
|
|
@Autowired
|
|
|
private TownDao townDao;
|
|
|
@Autowired
|
|
|
private FastDFSUtil fastDFSUtil;
|
|
|
@Autowired
|
|
|
private ManageCustomerOnlineRecordDao manageCustomerOnlineRecordDao;
|
|
|
private SurveyTemplateDao surveyTemplateDao;
|
|
|
@Autowired
|
|
|
private ManageSynergyAccessoryDao manageSynergyAccessoryDao;
|
|
|
|
|
@ -357,6 +350,7 @@ public class SynergyManageService extends BaseJpaService {
|
|
|
map.put("serviceTime", s.format(workorderDO.getServiceTime()));
|
|
|
map.put("status", status);
|
|
|
map.put("title", workorderDO.getRelationCodeName());
|
|
|
map.put("relationCode", workorderDO.getRelationCode());
|
|
|
map.put("remark", workorderDO.getRemark());
|
|
|
map.put("createTime", sdf.format(workorderDO.getCreateTime()));
|
|
|
map.put("createUserName", workorderDO.getCreateUserName());
|
|
@ -385,6 +379,9 @@ public class SynergyManageService extends BaseJpaService {
|
|
|
map.put("patientName", workorderServicerDO.get(0).getServicePatientName());
|
|
|
map.put("idcard", workorderServicerDO.get(0).getIdcard());
|
|
|
map.put("ssc", workorderServicerDO.get(0).getSsc());
|
|
|
}else if(workorderDO.getType() == 5) {
|
|
|
String diseaseType = surveyTemplateDao.findByCode(workorderDO.getRelationCode());
|
|
|
map.put("diseaseType", diseaseType);
|
|
|
}
|
|
|
|
|
|
//超时标签
|
|
@ -623,7 +620,7 @@ public class SynergyManageService extends BaseJpaService {
|
|
|
* @param type
|
|
|
*/
|
|
|
public void sendMessage(ManageSynergyWorkorderDO workorderDO, User user, Integer type){
|
|
|
String url = wlyyUrl + "doctor/message/sendMessage";
|
|
|
String url = wlyyUrl + "third/synergy/sendMessage";
|
|
|
//组装message内容
|
|
|
JSONObject message = new JSONObject();
|
|
|
if(type == 24){
|