| | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | |
| | | @OperationLog("Create 立体库站点绑定") |
| | | @PostMapping("/deviceBind/save") |
| | | public R save(@RequestBody DeviceBind deviceBind) { |
| | | deviceBind.setCreateBy(getLoginUserId()); |
| | | deviceBind.setCreateTime(new Date()); |
| | | deviceBind.setUpdateBy(getLoginUserId()); |
| | | deviceBind.setUpdateTime(new Date()); |
| | | // deviceBind.setCreateBy(getLoginUserId()); |
| | | // deviceBind.setCreateTime(new Date()); |
| | | // deviceBind.setUpdateBy(getLoginUserId()); |
| | | // deviceBind.setUpdateTime(new Date()); |
| | | if (!deviceBindService.save(deviceBind)) { |
| | | return R.error("Save Fail"); |
| | | } |
| | |
| | | @OperationLog("Update 立体库站点绑定") |
| | | @PostMapping("/deviceBind/update") |
| | | public R update(@RequestBody DeviceBind deviceBind) { |
| | | deviceBind.setUpdateBy(getLoginUserId()); |
| | | deviceBind.setUpdateTime(new Date()); |
| | | // deviceBind.setUpdateBy(getLoginUserId()); |
| | | // deviceBind.setUpdateTime(new Date()); |
| | | if (!deviceBindService.updateById(deviceBind)) { |
| | | return R.error("Update Fail"); |
| | | } |