ty
7 months ago
4 changed files with 64 additions and 6 deletions
@ -0,0 +1,53 @@
|
||||
package com.hnac.hzims.operational.duty.controller; |
||||
|
||||
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import com.hnac.hzims.operational.duty.entity.ImsDutyLogEntity; |
||||
import com.hnac.hzims.operational.duty.service.IImsDutyLogService; |
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.system.feign.ISysClient; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
|
||||
import javax.validation.Valid; |
||||
|
||||
|
||||
|
||||
/** |
||||
* 控制器 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/imsDutyLog") |
||||
@Api(value = "值班日志", tags = "值班日志") |
||||
public class ImsDutyLogController extends BladeController { |
||||
|
||||
private final IImsDutyLogService imsDutyLogService; |
||||
|
||||
private final ISysClient sysClient; |
||||
|
||||
|
||||
/** |
||||
* 新增或修改 代码自定义代号 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入imsDutyMain") |
||||
public R submit(@Valid @RequestBody ImsDutyLogEntity imsDutyLogEntity) { |
||||
boolean b = imsDutyLogService.saveOrUpdate(imsDutyLogEntity); |
||||
if(b){ |
||||
return R.success("保存成功"); |
||||
}else { |
||||
return R.fail("保存失败"); |
||||
} |
||||
} |
||||
|
||||
|
||||
|
||||
} |
Loading…
Reference in new issue