|
@ -18,10 +18,7 @@ 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.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@ -244,7 +241,7 @@ public class PrescriptionInfoController extends BaseController{
|
|
|
|
|
|
@RequestMapping(value = "/getDoctorPrescriptionExpressage", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取全科医生续方订单列表")
|
|
|
public String getDoctorPrescriptionExpressage(@RequestParam(required = false) @ApiParam(value = "团队Code", name = "teamCode")String teamCode,
|
|
|
public String getDoctorPrescriptionExpressage(@RequestParam(required = false) @ApiParam(value = "团队Code", name = "teamCode")Integer teamCode,
|
|
|
@RequestParam(required = false) @ApiParam(value = "居民搜素关键字", name = "nameKey")String nameKey,
|
|
|
@RequestParam(required = false) @ApiParam(value = "开始时间", name = "startDate")String startDate,
|
|
|
@RequestParam(required = false) @ApiParam(value = "结束时间", name = "endDate")String endDate,
|
|
@ -354,4 +351,29 @@ public class PrescriptionInfoController extends BaseController{
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/initDrugData", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "刷入redis平次数据")
|
|
|
public String initDrugData(){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data",prescriptionInfoService.initDrugData());
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/getPrescription" ,method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value = "获取长处方详细信息")
|
|
|
public String getPrescription(@RequestParam(required = true)@ApiParam(name="code",value="处方CODE")String code){
|
|
|
try {
|
|
|
|
|
|
//return write(200, "查询成功!", "data", prescriptionInfoService.getPrescription(code));
|
|
|
return write(200, "查询成功!", "data", prescriptionInfoService.getContinuedPrescription("69d11d6aa5254acd859a23a281d11910"));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
}
|