|
@ -10,14 +10,16 @@ import com.yihu.wlyy.service.app.prescription.PrescriptionInfoService;
|
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionPayService;
|
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionService;
|
|
|
import com.yihu.wlyy.service.third.jw.JwPrescriptionService;
|
|
|
import com.yihu.wlyy.service.third.jw.JwSignService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.json.JSONObject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@ -279,11 +281,10 @@ public class PrescriptionInfoController extends BaseController{
|
|
|
@RequestMapping(value = "/getPrescriptionDurgDict", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取基卫的药品字典")
|
|
|
public String getPrescriptionDurgDict(
|
|
|
@RequestParam(required = true,name = "dictName") @ApiParam(value = "字典名称", name = "dictName",required = true) String dictName,
|
|
|
@RequestParam(required = true,name = "hospital") @ApiParam(value = "医院code", name = "hospital",required = true) String hospital
|
|
|
@RequestParam(required = true,name = "dictName") @ApiParam(value = "字典名称", name = "dictName",required = true) String dictName
|
|
|
){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data",jwPrescriptionService.getDictForI(dictName,hospital));
|
|
|
return write(200, "操作成功!", "data",jwPrescriptionService.getDictForI(dictName));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|