|
@@ -13,7 +13,6 @@ import com.fs.hospital580.entity.*;
|
|
|
import com.fs.hospital580.service.FsStoreHospital580AnswerScrmService;
|
|
import com.fs.hospital580.service.FsStoreHospital580AnswerScrmService;
|
|
|
import com.fs.hospital580.service.Hospital580Service;
|
|
import com.fs.hospital580.service.Hospital580Service;
|
|
|
import com.fs.hospital580.vo.*;
|
|
import com.fs.hospital580.vo.*;
|
|
|
-import org.apache.poi.ss.formula.functions.T;
|
|
|
|
|
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 org.springframework.transaction.annotation.Transactional;
|
|
@@ -50,7 +49,6 @@ public class Hospital580FacadeServiceImpl implements Hospital580FacadeService {
|
|
|
PreDemandDto dto = new PreDemandDto();
|
|
PreDemandDto dto = new PreDemandDto();
|
|
|
BeanUtil.copyProperties(vo, dto);
|
|
BeanUtil.copyProperties(vo, dto);
|
|
|
dto.setBizOrderId(order.getOrderId().toString());
|
|
dto.setBizOrderId(order.getOrderId().toString());
|
|
|
- // 解析返回值
|
|
|
|
|
Result580 result580 = hospital580Service.initPreDemand(dto);
|
|
Result580 result580 = hospital580Service.initPreDemand(dto);
|
|
|
order.setJumpUrl(result580.getData());
|
|
order.setJumpUrl(result580.getData());
|
|
|
order.updateById();
|
|
order.updateById();
|
|
@@ -75,6 +73,7 @@ public class Hospital580FacadeServiceImpl implements Hospital580FacadeService {
|
|
|
drugRspList.forEach(item -> {
|
|
drugRspList.forEach(item -> {
|
|
|
FsStoreHospital580PrescriptionMedicineScrmEntity entity = new FsStoreHospital580PrescriptionMedicineScrmEntity();
|
|
FsStoreHospital580PrescriptionMedicineScrmEntity entity = new FsStoreHospital580PrescriptionMedicineScrmEntity();
|
|
|
BeanUtil.copyProperties(item, entity);
|
|
BeanUtil.copyProperties(item, entity);
|
|
|
|
|
+ entity.setPreId(prescription.getPreId());
|
|
|
// 插入药品信息
|
|
// 插入药品信息
|
|
|
entity.insert();
|
|
entity.insert();
|
|
|
});
|
|
});
|
|
@@ -103,7 +102,7 @@ public class Hospital580FacadeServiceImpl implements Hospital580FacadeService {
|
|
|
// 修改处方信息
|
|
// 修改处方信息
|
|
|
FsStoreHospital580PrescriptionScrmEntity prescription = new FsStoreHospital580PrescriptionScrmEntity();
|
|
FsStoreHospital580PrescriptionScrmEntity prescription = new FsStoreHospital580PrescriptionScrmEntity();
|
|
|
prescription.update(new LambdaUpdateWrapper<FsStoreHospital580PrescriptionScrmEntity>()
|
|
prescription.update(new LambdaUpdateWrapper<FsStoreHospital580PrescriptionScrmEntity>()
|
|
|
- .eq(FsStoreHospital580PrescriptionScrmEntity::getPId, vo.getPid())
|
|
|
|
|
|
|
+ .eq(FsStoreHospital580PrescriptionScrmEntity::getPid, vo.getPid())
|
|
|
.set(FsStoreHospital580PrescriptionScrmEntity::getAuditStatus, vo.getAuditStatus())
|
|
.set(FsStoreHospital580PrescriptionScrmEntity::getAuditStatus, vo.getAuditStatus())
|
|
|
.set(FsStoreHospital580PrescriptionScrmEntity::getAudiTime, vo.getAuditTime())
|
|
.set(FsStoreHospital580PrescriptionScrmEntity::getAudiTime, vo.getAuditTime())
|
|
|
.set(FsStoreHospital580PrescriptionScrmEntity::getAuditApothecaryName, vo.getAuditApothecaryName())
|
|
.set(FsStoreHospital580PrescriptionScrmEntity::getAuditApothecaryName, vo.getAuditApothecaryName())
|