|
@@ -1,15 +1,19 @@
|
|
|
package com.fs.his.service.impl;
|
|
package com.fs.his.service.impl;
|
|
|
|
|
|
|
|
|
|
+import com.fs.common.BeanCopyUtils;
|
|
|
import com.fs.common.utils.DateUtils;
|
|
import com.fs.common.utils.DateUtils;
|
|
|
import com.fs.his.domain.FsPrescribeDataScrm;
|
|
import com.fs.his.domain.FsPrescribeDataScrm;
|
|
|
import com.fs.his.dto.FsPrescribeDataDoctorQueryDto;
|
|
import com.fs.his.dto.FsPrescribeDataDoctorQueryDto;
|
|
|
|
|
+import com.fs.his.dto.FsPrescribeDataDoctorUpdateDto;
|
|
|
import com.fs.his.dto.FsPrescribeDataDrugDoctorQueryDto;
|
|
import com.fs.his.dto.FsPrescribeDataDrugDoctorQueryDto;
|
|
|
|
|
+import com.fs.his.dto.FsPrescribeDataDrugDoctorUpdateDto;
|
|
|
import com.fs.his.mapper.FsPrescribeDataScrmMapper;
|
|
import com.fs.his.mapper.FsPrescribeDataScrmMapper;
|
|
|
import com.fs.his.service.IFsPrescribeDataScrmService;
|
|
import com.fs.his.service.IFsPrescribeDataScrmService;
|
|
|
import com.fs.qw.vo.FsPrescribeDataScrmVO;
|
|
import com.fs.qw.vo.FsPrescribeDataScrmVO;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
import java.util.Collections;
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -108,6 +112,15 @@ public class FsPrescribeDataScrmServiceImpl implements IFsPrescribeDataScrmServi
|
|
|
return list;
|
|
return list;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
+ public int doctorExecuteScrmPrescribe(FsPrescribeDataDoctorUpdateDto updateDto) {
|
|
|
|
|
+ FsPrescribeDataScrm updatePrescribe=new FsPrescribeDataScrm();
|
|
|
|
|
+ BeanCopyUtils.copy(updateDto,updatePrescribe);
|
|
|
|
|
+ //TODO 删除只有医生签名的处方图片
|
|
|
|
|
+ return fsPrescribeDataScrmMapper.updateFsPrescribeDataScrm(updatePrescribe);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public List<FsPrescribeDataScrmVO> pendingStorePrescribeList(FsPrescribeDataDrugDoctorQueryDto queryDto) {
|
|
public List<FsPrescribeDataScrmVO> pendingStorePrescribeList(FsPrescribeDataDrugDoctorQueryDto queryDto) {
|
|
|
List<FsPrescribeDataScrmVO> list=fsPrescribeDataScrmMapper.pendingStorePrescribeList(queryDto);
|
|
List<FsPrescribeDataScrmVO> list=fsPrescribeDataScrmMapper.pendingStorePrescribeList(queryDto);
|
|
@@ -116,4 +129,17 @@ public class FsPrescribeDataScrmServiceImpl implements IFsPrescribeDataScrmServi
|
|
|
}
|
|
}
|
|
|
return list;
|
|
return list;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
+ public int drugDoctorExecuteScrmPrescribe(FsPrescribeDataDrugDoctorUpdateDto updateDto) {
|
|
|
|
|
+ FsPrescribeDataScrm updatePrescribe=new FsPrescribeDataScrm();
|
|
|
|
|
+ BeanCopyUtils.copy(updateDto,updatePrescribe);
|
|
|
|
|
+ if (updateDto.getStatus()==1){
|
|
|
|
|
+ //TODO 生成具有医生、药师签名的处方图片
|
|
|
|
|
+ }else if (updateDto.getStatus()==2){
|
|
|
|
|
+ //TODO 删除只有医生签名的处方图片
|
|
|
|
|
+ }
|
|
|
|
|
+ return fsPrescribeDataScrmMapper.updateFsPrescribeDataScrm(updatePrescribe);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|