|
@ -18,7 +18,6 @@ import com.yihu.jw.entity.base.area.BaseTownDO;
|
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
|
import com.yihu.jw.entity.base.im.ConsultDo;
|
|
|
import com.yihu.jw.entity.hospital.consult.WlyyHospitalSysDictDO;
|
|
|
import com.yihu.jw.entity.hospital.healthCare.YlzMedicalRelationDO;
|
|
|
import com.yihu.jw.entity.hospital.message.SystemMessageDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.*;
|
|
|
import com.yihu.jw.entity.order.BusinessOrderDO;
|
|
@ -30,6 +29,7 @@ import com.yihu.jw.hospital.prescription.dao.PrescriptionDiagnosisDao;
|
|
|
import com.yihu.jw.hospital.prescription.dao.PrescriptionInfoDao;
|
|
|
import com.yihu.jw.hospital.prescription.service.*;
|
|
|
import com.yihu.jw.hospital.prescription.service.entrance.*;
|
|
|
import com.yihu.jw.hospital.prescription.service.entrance.util.SFUtils;
|
|
|
import com.yihu.jw.hospital.service.SystemMessage.HospitalSystemMessageService;
|
|
|
import com.yihu.jw.hospital.service.consult.QrcodeService;
|
|
|
import com.yihu.jw.hospital.ykyy.service.YkyyService;
|
|
@ -52,7 +52,6 @@ import com.yihu.jw.wlyy.service.WlyyBusinessService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import io.swagger.models.auth.In;
|
|
|
import net.sf.json.xml.XMLSerializer;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
@ -169,6 +168,28 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
|
|
|
private YkyyService ykyyService;
|
|
|
@Autowired
|
|
|
private QrcodeService qrcodeService;
|
|
|
@Autowired
|
|
|
private SFUtils sfUtils;
|
|
|
|
|
|
@PostMapping(value = "sfCreateorder")
|
|
|
@ApiOperation(value = "顺丰同城配送-下订单")
|
|
|
public ObjEnvelop sfCreateorder() {
|
|
|
try {
|
|
|
return ObjEnvelop.getSuccess("success",sfUtils.createorder());
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
}
|
|
|
}
|
|
|
@PostMapping(value = "sfCancelorder")
|
|
|
@ApiOperation(value = "顺丰同城配送-取消订单")
|
|
|
public ObjEnvelop cancelorder(@ApiParam(name = "orderId", value = "顺丰订单号")
|
|
|
@RequestParam(value = "orderId", required = true) String orderId) {
|
|
|
try {
|
|
|
return ObjEnvelop.getSuccess("success",sfUtils.cancelorder(orderId));
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = "updPrescriptionExpressage")
|
|
|
@ApiOperation(value = "修改续方收货信息")
|