liusheng
3 天以前 c80135e5c3f7bfab96ba558a910a06f1e587c53c
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedPhysicalController.java
@@ -3,6 +3,7 @@
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.annotation.AddOrgId;
import com.ruoyi.common.core.domain.entity.SysUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -34,8 +35,7 @@
@Api(description = "患者体检记录")
@RestController
@RequestMapping("/smartor/patphysical")
public class PatMedPhysicalController extends BaseController
{
public class PatMedPhysicalController extends BaseController {
    @Autowired
    private IPatMedPhysicalService patMedPhysicalService;
@@ -44,9 +44,9 @@
     */
    @ApiOperation("查询患者体检记录列表")
    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:list')")
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("/selectPatMedPhysicalList")
    public TableDataInfo selectPatMedPhysicallist(@RequestBody  PatMedPhysical patMedPhysical)
    {
    public TableDataInfo selectPatMedPhysicallist(@RequestBody PatMedPhysical patMedPhysical) {
        startPage();
        SysUser user = getLoginUser().getUser();
        patMedPhysical.setOrgid(user.getOrgid());
@@ -61,8 +61,7 @@
    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:export')")
    @Log(title = "患者体检记录", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, PatMedPhysical patMedPhysical)
    {
    public void export(HttpServletResponse response, PatMedPhysical patMedPhysical) {
        List<PatMedPhysical> list = patMedPhysicalService.selectPatMedPhysicalList(patMedPhysical);
        ExcelUtil<PatMedPhysical> util = new ExcelUtil<PatMedPhysical>(PatMedPhysical.class);
        util.exportExcel(response, list, "患者体检记录数据");
@@ -74,8 +73,7 @@
    @ApiOperation("获取患者体检记录详细信息")
    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return success(patMedPhysicalService.selectPatMedPhysicalById(id));
    }
@@ -85,9 +83,9 @@
    @ApiOperation("新增患者体检记录")
    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:add')")
    @Log(title = "患者体检记录", businessType = BusinessType.INSERT)
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("/add")
    public AjaxResult add(@RequestBody PatMedPhysical patMedPhysical)
    {
    public AjaxResult add(@RequestBody PatMedPhysical patMedPhysical) {
        return toAjax(patMedPhysicalService.insertPatMedPhysical(patMedPhysical));
    }
@@ -97,9 +95,9 @@
    @ApiOperation("修改患者体检记录")
    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:edit')")
    @Log(title = "患者体检记录", businessType = BusinessType.UPDATE)
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody PatMedPhysical patMedPhysical)
    {
    public AjaxResult edit(@RequestBody PatMedPhysical patMedPhysical) {
        return toAjax(patMedPhysicalService.updatePatMedPhysical(patMedPhysical));
    }
@@ -109,9 +107,8 @@
    @ApiOperation("删除患者体检记录")
    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:remove')")
    @Log(title = "患者体检记录", businessType = BusinessType.DELETE)
   @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(patMedPhysicalService.deletePatMedPhysicalByIds(ids));
    }
}