|
@ -1,9 +1,13 @@
|
|
package com.yihu.wlyy.service.app.label;
|
|
package com.yihu.wlyy.service.app.label;
|
|
|
|
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabel;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabel;
|
|
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelInfo;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelLog;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelLog;
|
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelDao;
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelDao;
|
|
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelInfoDao;
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelLogDao;
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelLogDao;
|
|
|
|
import com.yihu.wlyy.repository.patient.PatientDao;
|
|
import com.yihu.wlyy.service.BaseService;
|
|
import com.yihu.wlyy.service.BaseService;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONArray;
|
|
@ -29,7 +33,8 @@ public class SignPatientLabelService extends BaseService {
|
|
SignPatientLabelDao labelDao;
|
|
SignPatientLabelDao labelDao;
|
|
@Autowired
|
|
@Autowired
|
|
SignPatientLabelLogDao labelLogDao;
|
|
SignPatientLabelLogDao labelLogDao;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
SignPatientLabelInfoDao labelInfoDao;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 新增自定义标签
|
|
* 新增自定义标签
|
|
@ -61,8 +66,8 @@ public class SignPatientLabelService extends BaseService {
|
|
* @param teamCode
|
|
* @param teamCode
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public SignPatientLabel isLabelNameExist(String labelName, long teamCode){
|
|
|
|
return labelDao.findByLabelNameAndLabelTypeAndTeamCode(labelName,"4",teamCode);
|
|
|
|
|
|
public SignPatientLabel isLabelNameExist(String labelName, long teamCode) {
|
|
|
|
return labelDao.findByLabelNameAndLabelTypeAndTeamCode(labelName, "4", teamCode);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -97,6 +102,7 @@ public class SignPatientLabelService extends BaseService {
|
|
label.setCzrq(new Date());
|
|
label.setCzrq(new Date());
|
|
|
|
|
|
labelLogDao.save(log);
|
|
labelLogDao.save(log);
|
|
|
|
labelInfoDao.updateLabelName(newName,labelCode);
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|