增加日志@LogRecord
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run
This commit is contained in:
parent
f006b6076f
commit
5ee1781f2e
@ -4,6 +4,7 @@ import cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.devi
|
||||
import cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.devicevo.deviceupVO;
|
||||
import cn.iocoder.yudao.module.applyregistration.dal.device.DeviceDO;
|
||||
import cn.iocoder.yudao.module.applyregistration.service.applyform.device.DeviceService;
|
||||
import com.mzt.logapi.starter.annotation.LogRecord;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@ -120,6 +121,7 @@ public class ApplyformController {
|
||||
@Parameter(name = "id", description = "ID", required = true, example = "1024")
|
||||
@Parameter(name = "device", description = "设备", required = true,example = "12121")
|
||||
@PreAuthorize("@ss.hasPermission('applyregistration:applyform:update')")
|
||||
@LogRecord(type = "申请登记", subType = "分检", bizNo ="{{#deviceVO.getID}}" , success = "分检ID为{{#deviceVO.getID}}的患者")
|
||||
public CommonResult<Boolean> updateFJApplyform(@Valid @RequestBody deviceupVO deviceVO) {
|
||||
|
||||
if (deviceVO==null)
|
||||
@ -155,6 +157,7 @@ public class ApplyformController {
|
||||
@Operation(summary = "申请单作废")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('applyregistration:applyform:delete')")
|
||||
@LogRecord(type = "申请登记", subType = "作废", bizNo ="{{#id}}" , success = "作废ID为{{#id}}的患者")
|
||||
public CommonResult<Boolean> cancelApplyform(@RequestParam("id") String id) {
|
||||
|
||||
ApplyformSaveReqVO updateReqVO=new ApplyformSaveReqVO();
|
||||
@ -177,6 +180,7 @@ public class ApplyformController {
|
||||
@Operation(summary = "批量分检更新")
|
||||
@Parameter(name = "id", description = "机构ID", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('applyregistration:applyform:update')")
|
||||
@LogRecord(type = "申请登记", subType = "批量分检", bizNo ="888" , success = "批量分检操作")
|
||||
public CommonResult<Boolean> batchupdateFJApplyform(@RequestBody List<deviceupVO> deviceVOList) {
|
||||
|
||||
if (!deviceVOList.isEmpty())
|
||||
|
@ -1,5 +1,6 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.doctor;
|
||||
|
||||
import com.mzt.logapi.starter.annotation.LogRecord;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@ -44,6 +45,7 @@ public class DoctorController {
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建医生管理")
|
||||
@PreAuthorize("@ss.hasPermission('doctor::create')")
|
||||
@LogRecord(type = "医生管理", subType = "创建", bizNo ="{{#createReqVO.getDoctorID}}" , success = "创建ID为{{#createReqVO.getDoctorID}}的医生")
|
||||
public CommonResult<String> create(@Valid @RequestBody DoctorSaveReqVO createReqVO) {
|
||||
return success(Service.create(createReqVO));
|
||||
}
|
||||
@ -51,6 +53,7 @@ public class DoctorController {
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新医生管理")
|
||||
@PreAuthorize("@ss.hasPermission('doctor::update')")
|
||||
@LogRecord(type = "医生管理", subType = "更新", bizNo ="{{#updateReqVO.getDoctorID}}" , success = "更新ID为{{#updateReqVO.getDoctorID}}的医生")
|
||||
public CommonResult<Boolean> update(@Valid @RequestBody DoctorSaveReqVO updateReqVO) {
|
||||
Service.update(updateReqVO);
|
||||
return success(true);
|
||||
@ -60,6 +63,7 @@ public class DoctorController {
|
||||
@Operation(summary = "删除医生管理")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('doctor::delete')")
|
||||
@LogRecord(type = "医生管理", subType = "删除", bizNo ="{{#id}}" , success = "删除ID为{{#id}}的医生")
|
||||
public CommonResult<Boolean> delete(@RequestParam("id") String id, @RequestParam("username") String username) {
|
||||
//不是真删除 修改状态
|
||||
//Service.delete(id);
|
||||
@ -96,6 +100,7 @@ public class DoctorController {
|
||||
@Operation(summary = "导出医生管理 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('doctor::export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
@LogRecord(type = "医生管理", subType = "导出", bizNo ="999" , success = "导出医生")
|
||||
public void exportExcel(@Valid DoctorPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
|
@ -70,6 +70,7 @@ public class OrgUnitController {
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新机构管理")
|
||||
@PreAuthorize("@ss.hasPermission('org::update')")
|
||||
@LogRecord(type = "机构管理", subType = "更新", bizNo ="{{#updateReqVO.getOrgID}}" , success = "更新ID为{{#updateReqVO.getOrgID}}的机构")
|
||||
public CommonResult<Boolean> update(@Valid @RequestBody OrgUnitSaveReqVO updateReqVO) {
|
||||
Service.update(updateReqVO);
|
||||
return success(true);
|
||||
@ -79,6 +80,7 @@ public class OrgUnitController {
|
||||
@Operation(summary = "删除机构管理")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('org::delete')")
|
||||
@LogRecord(type = "机构管理", subType = "删除", bizNo ="{{#id}}" , success = "删除ID为{{#id}}的机构")
|
||||
public CommonResult<Boolean> delete(@RequestParam("id") String id) {
|
||||
OrgUnitSaveReqVO updateReqVO=new OrgUnitSaveReqVO();
|
||||
updateReqVO.setOrgID(id);
|
||||
@ -109,6 +111,7 @@ public class OrgUnitController {
|
||||
@Operation(summary = "导出机构管理 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('org::export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
@LogRecord(type = "机构管理", subType = "导出机构", bizNo ="999" , success = "导出机构")
|
||||
public void exportExcel(@Valid OrgUnitPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
|
@ -1,6 +1,7 @@
|
||||
package cn.iocoder.yudao.module.tblist.controller.admin.patientexamlist;
|
||||
|
||||
import cn.iocoder.yudao.module.tblist.service.patientexamlist.org.OrgService;
|
||||
import com.mzt.logapi.starter.annotation.LogRecord;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@ -54,6 +55,7 @@ public class PatientexamlistController {
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建PACS检查列表")
|
||||
@PreAuthorize("@ss.hasPermission('tblist:patientexamlist:create')")
|
||||
@LogRecord(type = "检查列表", subType = "创建", bizNo ="{{#createReqVO.getId}}" , success = "创建ID为{{#createReqVO.getId}}的患者")
|
||||
public CommonResult<String> createPatientexamlist(@Valid @RequestBody PatientexamlistSaveReqVO createReqVO) {
|
||||
return success(patientexamlistService.createPatientexamlist(createReqVO));
|
||||
}
|
||||
@ -111,6 +113,7 @@ public class PatientexamlistController {
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@Parameter(name = "orgId", description = "机构编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('tblist:patientexamlist:query')")
|
||||
@LogRecord(type = "检查列表", subType = "申请", bizNo ="{{#id}}" , success = "ID为{{#id}}的患者申请")
|
||||
public void UPDATEHigOrg(@RequestParam("id") String id,@RequestParam("orgId") String orgId) {
|
||||
|
||||
//先拿orgid查询出来对应的org表的上级机构代码
|
||||
@ -132,6 +135,7 @@ public class PatientexamlistController {
|
||||
@PutMapping("/examineupdate")
|
||||
@Operation(summary = "超声审核更新数据")
|
||||
@PreAuthorize("@ss.hasPermission('tblist:patientexamlist:update')")
|
||||
@LogRecord(type = "超声审核", subType = "审核", bizNo ="{{#updateReqVO.getId}}" , success = "审核ID为{{#updateReqVO.getId}}的患者")
|
||||
public CommonResult<Boolean> updateexaminelist(@Valid @RequestBody PatientexamlistSaveReqVO updateReqVO) {
|
||||
|
||||
LocalDateTime dateTime= LocalDateTime.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")),
|
||||
|
Loading…
Reference in New Issue
Block a user