|
|
|
@ -1,95 +0,0 @@ |
|
|
|
package com.hxhq.business.controller; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import com.hxhq.business.dto.gyzj.ListDto; |
|
|
|
import com.hxhq.business.form.gyzj.*; |
|
|
|
import com.hxhq.business.service.IGyzjService; |
|
|
|
import com.hxhq.common.security.annotation.RequiresPermissions; |
|
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import com.hxhq.business.domain.StudyGyzj; |
|
|
|
import com.hxhq.business.service.IStudyGyzjService; |
|
|
|
import com.hxhq.common.core.web.controller.BaseController; |
|
|
|
import com.hxhq.common.core.web.domain.AjaxResult; |
|
|
|
import com.hxhq.common.core.web.page.TableDataInfo; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 试验-物资信息-给药制剂Controller |
|
|
|
* |
|
|
|
* @author hxhq |
|
|
|
* @date 2026-01-09 |
|
|
|
*/ |
|
|
|
@RestController |
|
|
|
@RequestMapping("/business/studyGyzj") |
|
|
|
public class StudyGyzjController extends BaseController |
|
|
|
{ |
|
|
|
@Autowired |
|
|
|
private IGyzjService gyzjService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 列表 |
|
|
|
*/ |
|
|
|
@RequiresPermissions({"business:studyGyzj:list","business:nonTrialGyzj:list","business:drugGyzj:list"}) |
|
|
|
@GetMapping("/list") |
|
|
|
public TableDataInfo list(SearchForm form) |
|
|
|
{ |
|
|
|
startPage(); |
|
|
|
List<ListDto> list = gyzjService.queryStudyList(form); |
|
|
|
return getDataTable(list); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 处置药剂 |
|
|
|
*/ |
|
|
|
@PostMapping("/czyj") |
|
|
|
@RequiresPermissions({"business:studyGyzj:czyj","business:nonTrialGyzj:czyj","business:drugGyzj:czyj"}) |
|
|
|
public AjaxResult czyj(@RequestBody CzyjForm form) |
|
|
|
{ |
|
|
|
form.setClrId(SecurityUtils.getUserId()); |
|
|
|
gyzjService.czyj(form); |
|
|
|
return AjaxResult.success("操作成功"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 编辑 |
|
|
|
*/ |
|
|
|
@PostMapping("bj") |
|
|
|
@RequiresPermissions({"business:studyGyzj:bj","business:nonTrialGyzj:bj","business:drugGyzj:bj"}) |
|
|
|
public AjaxResult bj(@RequestBody BjForm form) |
|
|
|
{ |
|
|
|
form.setQmrId(SecurityUtils.getUserId()); |
|
|
|
gyzjService.bj(form); |
|
|
|
return AjaxResult.success("操作成功"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 归还 |
|
|
|
*/ |
|
|
|
@PostMapping("gh") |
|
|
|
@RequiresPermissions({"business:studyGyzj:gh","business:nonTrialGyzj:gh","business:drugGyzj:gh"}) |
|
|
|
public AjaxResult gh(@RequestBody GhForm form) |
|
|
|
{ |
|
|
|
form.setQmrId(SecurityUtils.getUserId()); |
|
|
|
form.setJsr1Id(SecurityUtils.getUserId()); |
|
|
|
gyzjService.gh(form); |
|
|
|
return AjaxResult.success("操作成功"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 修改库存 |
|
|
|
*/ |
|
|
|
@PostMapping("xgkc") |
|
|
|
@RequiresPermissions({"business:studyGyzj:xgkc","business:nonTrialGyzj:xgkc","business:drugGyzj:xgkc"}) |
|
|
|
public AjaxResult xgkc(@RequestBody XgkcForm form) |
|
|
|
{ |
|
|
|
form.setQmrId(SecurityUtils.getUserId()); |
|
|
|
gyzjService.xgkc(form); |
|
|
|
return AjaxResult.success("操作成功"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |