|
@@ -36,6 +36,7 @@ public class PharmaceuticalService {
|
|
|
// }
|
|
|
|
|
|
public List<PageData> findArchivesList(PageData pd) throws Exception{
|
|
|
+
|
|
|
return (List<PageData>) daoSupport.findForList("PharmaceuticalServiceMapper.selectArchivesListLinkDrugs", pd);
|
|
|
}
|
|
|
|
|
@@ -238,9 +239,12 @@ public class PharmaceuticalService {
|
|
|
}
|
|
|
|
|
|
public boolean checkPatientIsExist(PageData pd) throws Exception{
|
|
|
- Object pageData =daoSupport.findForList("PharmaceuticalServiceMapper.checkPatientIsExist", pd);
|
|
|
- return StringUtils.isNull(pageData);
|
|
|
-
|
|
|
+ List<PageData> pdlist = (List<PageData>) daoSupport.findForList("PharmaceuticalServiceMapper.checkPatientIsExist", pd);
|
|
|
+ if(pdlist.size()>0){
|
|
|
+ return true;
|
|
|
+ }else{
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|
|
|
public Object selectPatientById(PageData pd) throws Exception{
|
|
|
Object PageData =daoSupport.findForList("PharmaceuticalServiceMapper.selectPatientById", pd);
|
|
@@ -256,12 +260,22 @@ public class PharmaceuticalService {
|
|
|
if (StringUtils.isNull(storeName)) {
|
|
|
pd.put("storeName", getSysUser().getDept().getDeptName());
|
|
|
}
|
|
|
+ String name = (String) pd.get("name");
|
|
|
+ String smName = (String) pd.get("smName");
|
|
|
+ if (StringUtils.isNotEmpty(smName)) {
|
|
|
+ if(name.equals(smName)){
|
|
|
+ pd.put("realNameStatus", 1);
|
|
|
+ }else{
|
|
|
+ pd.put("realNameStatus", 0);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ pd.put("realNameStatus", 2);
|
|
|
+ }
|
|
|
pd.put("storeId", getSysUser().getDeptId());//这里系统先自动获取系统所登录的门店
|
|
|
pd.put("creator", getSysUser().getLoginName());//创建人
|
|
|
pd.put("createTime", DateUtils.getTime());//创建时间
|
|
|
pd.put("archiveCreator", getSysUser().getLoginName());//档案创建人
|
|
|
pd.put("archiveCompleteStatus", 0);//档案是否完善 1已完善 0未完善
|
|
|
- pd.put("realNameStatus", 0);//是否实名 1已经实名 0未实名 待对接服务校验
|
|
|
|
|
|
return daoSupport.update("PharmaceuticalServiceMapper.insertArchiveRecord", pd);
|
|
|
}
|
|
@@ -274,12 +288,22 @@ public class PharmaceuticalService {
|
|
|
if (StringUtils.isNull(storeName)) {
|
|
|
pd.put("storeName", getSysUser().getDept().getDeptName());
|
|
|
}
|
|
|
+ String name = (String) pd.get("name");
|
|
|
+ String smName = (String) pd.get("smName");
|
|
|
+ if (StringUtils.isNotEmpty(smName)) {
|
|
|
+ if(name.equals(smName)){
|
|
|
+ pd.put("realNameStatus", 1);
|
|
|
+ }else{
|
|
|
+ pd.put("realNameStatus", 0);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ pd.put("realNameStatus", 2);
|
|
|
+ }
|
|
|
pd.put("storeId", getSysUser().getDeptId());//这里系统先自动获取系统所登录的门店
|
|
|
pd.put("creator", getSysUser().getLoginName());//创建人
|
|
|
pd.put("createTime", DateUtils.getTime());//创建时间
|
|
|
pd.put("archiveCreator", getSysUser().getLoginName());//档案创建人
|
|
|
pd.put("archiveCompleteStatus", 0);//档案是否完善 1已完善 0未完善
|
|
|
- pd.put("realNameStatus", 0);//是否实名 1已经实名 0未实名 待对接服务校验
|
|
|
int result = daoSupport.update("PharmaceuticalServiceMapper.insertArchiveRecord", pd);
|
|
|
|
|
|
if(result>0){
|