|
@ -1000,7 +1000,7 @@ public class ImService {
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public JSONObject addTeamConsult(ConsultTeamDo ct, String patient, String doctor, String source) throws Exception {
|
|
|
public JSONObject addTeamConsult(ConsultTeamDo ct, String patient, String doctor, String source,String relationCode) throws Exception {
|
|
|
JSONObject re = new JSONObject();
|
|
|
boolean boo = StringUtils.isEmpty(getUnfinishedConsult(patient, doctor));
|
|
|
logger.info("boo" + boo);
|
|
@ -1088,7 +1088,7 @@ public class ImService {
|
|
|
consultTeamDao.save(ct);
|
|
|
consultDao.save(consult);
|
|
|
if(ct.getType()==28){
|
|
|
ServiceItemPlanDO serviceItemPlanDO = serviceItemPlanDao.findById(ct.getRelationCode()).orElse(null);
|
|
|
ServiceItemPlanDO serviceItemPlanDO = serviceItemPlanDao.findById(relationCode).orElse(null);
|
|
|
if(serviceItemPlanDO!=null){
|
|
|
serviceItemPlanDO.setRelationCode(ct.getConsult());
|
|
|
serviceItemPlanDao.save(serviceItemPlanDO);
|