| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.uuid.IdUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/sy/syUser") |
| | | @Api(tags = "三一车辆用户管理接口") |
| | | public class ArdSyUserController extends BaseController |
| | | { |
| | | @Autowired |
| | |
| | | @PreAuthorize("@ss.hasPermi('sy:syUser:add')") |
| | | @Log(title = "三一车辆用户", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation("新增三一用户") |
| | | public AjaxResult add(@RequestBody ArdSyUser ardSyUser) |
| | | { |
| | | String id = IdUtils.simpleUUID(); |
| | | ardSyUser.setId(id); |
| | | return toAjax(ardSyUserService.insertArdSyUser(ardSyUser)); |
| | | } |
| | | |
| | |
| | | { |
| | | return toAjax(ardSyUserService.deleteArdSyUserByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 查询三一车辆用户列表 |
| | | */ |
| | | /*@PreAuthorize("@ss.hasPermi('sy:syUser:getArdSyUserAll')") |
| | | @GetMapping("/getArdSyUserAll") |
| | | @ApiOperation("查询全部三一用户") |
| | | public AjaxResult getArdSyUserAll() |
| | | { |
| | | //startPage(); |
| | | List<ArdSyUser> list = ardSyUserService.getArdSyUserAll(); |
| | | return success(list); |
| | | }*/ |
| | | |
| | | /** |
| | | * 查询未挂接三一车辆的4.0用户 |
| | | */ |
| | | /*@PreAuthorize("@ss.hasPermi('sy:syUser:getSysUserNoSY')") |
| | | @GetMapping("/getSysUserNoSY") |
| | | @ApiOperation("查询未挂接三一车辆的4.0用户") |
| | | public AjaxResult getSysUserNoSY() |
| | | { |
| | | //startPage(); |
| | | List<SysUser> list = ardSyUserService.getSysUserNoSY(); |
| | | return success(list); |
| | | }*/ |
| | | } |