1.新增@AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
2.将新增orgid的拦截器关掉
3.登陆新增campusid
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import io.swagger.annotations.Api; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
æ£æ¥æ£éªè®°å½åå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody BaseDictOperation baseDictOperation) { |
| | | startPage(); |
| | | LoginUser loginUser = getLoginUser(); |
| | |
| | | @ApiOperation("æ°å¢æ£è
æ£æ¥æ£éªè®°å½å") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:add')") |
| | | @Log(title = "æ£è
æ£æ¥æ£éªè®°å½å", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody BaseDictOperation baseDictOperation) { |
| | | return toAjax(baseDictOperationService.insertBaseDictOperation(baseDictOperation)); |
| | | } |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
æ£æ¥æ£éªè®°å½å") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:edit')") |
| | | @Log(title = "æ£è
æ£æ¥æ£éªè®°å½å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseDictOperation baseDictOperation) { |
| | | return toAjax(baseDictOperationService.updateBaseDictOperation(baseDictOperation)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.BaseOrganization; |
| | | import com.smartor.service.IBaseOrganizationService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æºæController |
| | |
| | | @ApiOperation("æ°å¢æºæ") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:organization:add')") |
| | | @Log(title = "æºæ", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody BaseOrganization baseOrganization) |
| | | { |
| | | SysUser user = getLoginUser().getUser(); |
| | | baseOrganization.setOrgid(user.getOrgid()); |
| | | return toAjax(baseOrganizationService.insertBaseOrganization(baseOrganization)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æºæ") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:organization:edit')") |
| | | @Log(title = "æºæ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | |
| | | public AjaxResult edit(@RequestBody BaseOrganization baseOrganization) |
| | | { |
| | | return toAjax(baseOrganizationService.updateBaseOrganization(baseOrganization)); |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ ç¾å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody BaseTag baseTag) { |
| | | PageUtils.startPageByPost(baseTag.getPageNum(), baseTag.getPageSize()); |
| | | List<BaseTag> list = null; |
| | | if (baseTag.getTagcategoryid() == null || baseTag.getTagcategoryid() == 0) baseTag.setTagcategoryid(null); |
| | | { |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | baseTag.setOrgid(user.getOrgid()); |
| | | list = baseTagService.selectBaseTagList(baseTag); |
| | | } |
| | | return getDataTable(list); |
| | |
| | | @ApiOperation("æ°å¢æ ç¾") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "æ ç¾", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody BaseTag baseTag) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | baseTag.setOrgid(user.getOrgid()); |
| | | return toAjax(baseTagService.insertBaseTag(baseTag)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æ ç¾") |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "æ ç¾", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseTag baseTag) { |
| | | return toAjax(baseTagService.updateBaseTag(baseTag)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | |
| | | * æ¥è¯¢æ ç¾åç±»å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:tagcategory:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody BaseTagcategory baseTagcategory) { |
| | | startPage(); |
| | | List<BaseTagcategory> list = baseTagcategoryService.selectBaseTagcategoryList(baseTagcategory); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:tagcategory:add')") |
| | | @Log(title = "æ ç¾åç±»", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢æ ç¾åç±»") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody BaseTagcategory baseTagcategory) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | baseTagcategory.setOrgid(user.getOrgid()); |
| | | return toAjax(baseTagcategoryService.insertBaseTagcategory(baseTagcategory)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:tagcategory:edit')") |
| | | @Log(title = "æ ç¾åç±»", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹æ ç¾åç±»") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseTagcategory baseTagcategory) { |
| | | return toAjax(baseTagcategoryService.updateBaseTagcategory(baseTagcategory)); |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import io.swagger.annotations.Api; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ç¨æ·å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody BaseUserInfo baseUserInfo) { |
| | | startPage(); |
| | | List<BaseUserInfo> list = baseUserInfoService.selectBaseUserInfoList(baseUserInfo); |
| | |
| | | @ApiOperation("æ°å¢ç¨æ·") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:add')") |
| | | @Log(title = "ç¨æ·", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody BaseUserInfo baseUserInfo) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | baseUserInfo.setOrgid(user.getOrgid()); |
| | | return toAjax(baseUserInfoService.insertBaseUserInfo(baseUserInfo)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹ç¨æ·") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:edit')") |
| | | @Log(title = "ç¨æ·", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseUserInfo baseUserInfo) { |
| | | return toAjax(baseUserInfoService.updateBaseUserInfo(baseUserInfo)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation("è·å人åçèç³»æ¹å¼") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @GetMapping("/reportContent") |
| | | public AjaxResult getContact(@RequestParam("personCode") String personCode, @RequestParam("noticeWay") String noticeWay) { |
| | | if (StringUtils.isEmpty(personCode) || StringUtils.isEmpty(noticeWay)) { |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody Equipmentinfo equipmentinfo) { |
| | | startPage(); |
| | | List<Equipmentinfo> list = equipmentinfoService.selectEquipmentinfoList(equipmentinfo); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:add')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody Equipmentinfo equipmentinfo) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | equipmentinfo.setOrgid(user.getOrgid()); |
| | | return toAjax(equipmentinfoService.insertEquipmentinfo(equipmentinfo)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:equipmentinfo:edit')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody Equipmentinfo equipmentinfo) { |
| | | return toAjax(equipmentinfoService.updateEquipmentinfo(equipmentinfo)); |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢å®£æåç±»å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectHeCategoryList") |
| | | public TableDataInfo selectHeCategorylist(@RequestBody HeCategory heCategory) { |
| | | // startPage(); |
| | |
| | | @ApiOperation("æ°å¢å®£æåç±»") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:add')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeCategory heCategory) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | heCategory.setOrgid(user.getOrgid()); |
| | | return toAjax(heCategoryService.insertHeCategory(heCategory)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹å®£æåç±»") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:hecategory:edit')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeCategory heCategory) { |
| | | return toAjax(heCategoryService.updateHeCategory(heCategory)); |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | |
| | | @ApiOperation("æ¥è¯¢å®£æåç±»å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:list')") |
| | | @PostMapping("/selectHeLibraryAssortList") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | public TableDataInfo list(@RequestBody HeLibraryAssort heLibraryAssort) { |
| | | startPage(); |
| | | List<HeLibraryAssortVO> list = heLibraryAssortService.selectHeLibraryAssortList(heLibraryAssort); |
| | |
| | | @ApiOperation("æ°å¢å®£æåç±»") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeLibraryAssort heLibraryAssort) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | heLibraryAssort.setOrgid(user.getOrgid()); |
| | | return toAjax(heLibraryAssortService.insertHeLibraryAssort(heLibraryAssort)); |
| | | } |
| | | |
| | |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢å®£æå类详æ
æ ") |
| | | @PostMapping("/addtree") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | public AjaxResult addtree(@RequestBody HeLibraryAssortVO heLibraryAssortVO) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | heLibraryAssortVO.setOrgid(user.getOrgid()); |
| | | return toAjax(heLibraryAssortService.insertHeLibraryAssortTree(heLibraryAssortVO)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹å®£æåç±»") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:edit')") |
| | | @Log(title = "宣æåç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeLibraryAssort heLibraryAssort) { |
| | | return toAjax(heLibraryAssortService.updateHeLibraryAssort(heLibraryAssort)); |
| | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.HeLibrary; |
| | | import com.smartor.domain.HeLibraryVO; |
| | | import com.smartor.domain.SvyLibTemplateReq; |
| | | import com.smartor.domain.SvyLibTemplateVO; |
| | | import com.smartor.service.IHeLibraryService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢å®£æèµæåºå表") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody HeLibrary heLibrary) { |
| | | PageUtils.startPageByPost(heLibrary.getPageNum(), heLibrary.getPageSize()); |
| | | List<HeLibrary> list = heLibraryService.selectHeLibraryList(heLibrary); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:library:add')") |
| | | @Log(title = "宣æèµæåº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeLibrary heLibrary) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | heLibrary.setOrgid(user.getOrgid()); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:library:edit')") |
| | | @Log(title = "宣æèµæåº", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeLibrary heLibrary) { |
| | | return toAjax(heLibraryService.updateHeLibrary(heLibrary)); |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶") |
| | | @PostMapping("/selectInfoByCondition") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | public AjaxResult selectInfoByCondition(@RequestBody HeLibrary heLibrary) { |
| | | if (ObjectUtils.isEmpty(heLibrary)) { |
| | | throw new BaseException("æ¥è¯¢æ¨¡æ¿è¯¦æ
å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶(å°ç¨åºä¸ç¨)") |
| | | @PostMapping("/selectInfoByConditionXCH") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | public AjaxResult selectInfoByConditionXCH(@RequestBody HeLibrary heLibrary) { |
| | | if (ObjectUtils.isEmpty(heLibrary)) { |
| | | throw new BaseException("æ¥è¯¢æ¨¡æ¿è¯¦æ
å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | |
| | | * æ¥è¯¢ææ æ ç¾å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(HeLibraryTag heLibraryTag) { |
| | | startPage(); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | public AjaxResult add(@RequestBody HeLibraryTag heLibraryTag) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | heLibraryTag.setOrgid(user.getOrgid()); |
| | | return toAjax(heLibraryTagService.insertHeLibraryTag(heLibraryTag)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | public AjaxResult edit(@RequestBody HeLibraryTag heLibraryTag) { |
| | | return toAjax(heLibraryTagService.updateHeLibraryTag(heLibraryTag)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/helibrary") |
| | | public class HeLocallibraryController extends BaseController |
| | | { |
| | | public class HeLocallibraryController extends BaseController { |
| | | @Autowired |
| | | private IHeLocallibraryService heLocallibraryService; |
| | | |
| | |
| | | * æ¥è¯¢å®£æåºå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody HeLocallibrary heLocallibrary) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody HeLocallibrary heLocallibrary) { |
| | | startPage(); |
| | | List<HeLocallibrary> list = heLocallibraryService.selectHeLocallibraryList(heLocallibrary); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:export')") |
| | | @Log(title = "宣æåº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, HeLocallibrary heLocallibrary) |
| | | { |
| | | public void export(HttpServletResponse response, HeLocallibrary heLocallibrary) { |
| | | List<HeLocallibrary> list = heLocallibraryService.selectHeLocallibraryList(heLocallibrary); |
| | | ExcelUtil<HeLocallibrary> util = new ExcelUtil<HeLocallibrary>(HeLocallibrary.class); |
| | | util.exportExcel(response, list, "宣æåºæ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(heLocallibraryService.selectHeLocallibraryById(id)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:add')") |
| | | @Log(title = "宣æåº", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("add") |
| | | public AjaxResult add(@RequestBody HeLocallibrary heLocallibrary) |
| | | { |
| | | SysUser user = getLoginUser().getUser(); |
| | | heLocallibrary.setOrgid(user.getOrgid()); |
| | | public AjaxResult add(@RequestBody HeLocallibrary heLocallibrary) { |
| | | return toAjax(heLocallibraryService.insertHeLocallibrary(heLocallibrary)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary:edit')") |
| | | @Log(title = "宣æåº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeLocallibrary heLocallibrary) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeLocallibrary heLocallibrary) { |
| | | return toAjax(heLocallibraryService.updateHeLocallibrary(heLocallibrary)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:helibrary: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(heLocallibraryService.deleteHeLocallibraryByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ææ ç¾ç
å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody Icd10Association icd10Association) { |
| | | if (icd10Association.getIsPage()) { |
| | | PageUtils.startPageByPost(icd10Association.getPageNum(), icd10Association.getPageSize()); |
| | |
| | | @ApiOperation("æ°å¢ææ ç¾ç
") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:add')") |
| | | @Log(title = "ææ ç¾ç
", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody Icd10Association Icd10Association) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | Icd10Association.setOrgid(user.getOrgid()); |
| | | return toAjax(iIcd10AssociationService.insertIcd10Association(Icd10Association)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹ææ ç¾ç
") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:edit')") |
| | | @Log(title = "ææ ç¾ç
", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody Icd10Association Icd10Association) { |
| | | return toAjax(iIcd10AssociationService.updateIcd10Association(Icd10Association)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ç¾ç
å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody Icd10 icd10) { |
| | | PageUtils.startPageByPost(icd10.getPageNum(), icd10.getPageSize()); |
| | |
| | | @ApiOperation("æ°å¢ç¾ç
") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:add')") |
| | | @Log(title = "ç¾ç
", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody Icd10 icd10) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | icd10.setOrgid(user.getOrgid()); |
| | | return toAjax(icd10Service.insertIcd10(icd10)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹ç¾ç
") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd10:edit')") |
| | | @Log(title = "ç¾ç
", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody Icd10 icd10) { |
| | | return toAjax(icd10Service.updateIcd10(icd10)); |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | |
| | | * æ¥è¯¢AIæå¾åºå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibIntent ivrLibIntent) { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:add')") |
| | | @Log(title = "AIæå¾åº", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibIntent ivrLibIntent) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibIntent.setOrgid(user.getOrgid()); |
| | | return toAjax(ivrLibIntentService.insertIvrLibIntent(ivrLibIntent)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintent:edit')") |
| | | @Log(title = "AIæå¾åº", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibIntent ivrLibIntent) { |
| | | return toAjax(ivrLibIntentService.updateIvrLibIntent(ivrLibIntent)); |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrlibintentcategory") |
| | | public class IvrLibIntentcategoryController extends BaseController |
| | | { |
| | | public class IvrLibIntentcategoryController extends BaseController { |
| | | @Autowired |
| | | private IIvrLibIntentcategoryService ivrLibIntentcategoryService; |
| | | |
| | |
| | | * æ¥è¯¢AIæå¾åºåç±»å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) { |
| | | startPage(); |
| | | List<IvrLibIntentcategory> list = ivrLibIntentcategoryService.selectIvrLibIntentcategoryList(ivrLibIntentcategory); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:export')") |
| | | @Log(title = "AIæå¾åºåç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibIntentcategory ivrLibIntentcategory) |
| | | { |
| | | public void export(HttpServletResponse response, IvrLibIntentcategory ivrLibIntentcategory) { |
| | | List<IvrLibIntentcategory> list = ivrLibIntentcategoryService.selectIvrLibIntentcategoryList(ivrLibIntentcategory); |
| | | ExcelUtil<IvrLibIntentcategory> util = new ExcelUtil<IvrLibIntentcategory>(IvrLibIntentcategory.class); |
| | | util.exportExcel(response, list, "AIæå¾åºåç±»æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:query')") |
| | | @GetMapping(value = "/{intertcatid}") |
| | | public AjaxResult getInfo(@PathVariable("intertcatid") Long intertcatid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("intertcatid") Long intertcatid) { |
| | | return success(ivrLibIntentcategoryService.selectIvrLibIntentcategoryByIntertcatid(intertcatid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:add')") |
| | | @Log(title = "AIæå¾åºåç±»", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) |
| | | { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibIntentcategory.setOrgid(user.getOrgid()); |
| | | public AjaxResult add(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) { |
| | | return toAjax(ivrLibIntentcategoryService.insertIvrLibIntentcategory(ivrLibIntentcategory)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:edit')") |
| | | @Log(title = "AIæå¾åºåç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrLibIntentcategory ivrLibIntentcategory) { |
| | | return toAjax(ivrLibIntentcategoryService.updateIvrLibIntentcategory(ivrLibIntentcategory)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibintentcategory:remove')") |
| | | @Log(title = "AIæå¾åºåç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{intertcatids}") |
| | | public AjaxResult remove(@PathVariable Long[] intertcatids) |
| | | { |
| | | @GetMapping("/remove/{intertcatids}") |
| | | public AjaxResult remove(@PathVariable Long[] intertcatids) { |
| | | return toAjax(ivrLibIntentcategoryService.deleteIvrLibIntentcategoryByIntertcatids(intertcatids)); |
| | | } |
| | | } |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | |
| | | * æ¥è¯¢AIè¯æ¯åºå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibScript ivrLibScript) |
| | | { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:add')") |
| | | @Log(title = "AIè¯æ¯åº", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibScript ivrLibScript) |
| | | { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibScript.setOrgid(user.getOrgid()); |
| | | return toAjax(ivrLibScriptService.insertIvrLibScript(ivrLibScript)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscript:edit')") |
| | | @Log(title = "AIè¯æ¯åº", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibScript ivrLibScript) |
| | | { |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrlibscriptcategory") |
| | | public class IvrLibScriptcategoryController extends BaseController |
| | | { |
| | | public class IvrLibScriptcategoryController extends BaseController { |
| | | @Autowired |
| | | private IIvrLibScriptcategoryService ivrLibScriptcategoryService; |
| | | |
| | |
| | | * æ¥è¯¢AIè¯æ¯åºåç±»å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) { |
| | | startPage(); |
| | | List<IvrLibScriptcategory> list = ivrLibScriptcategoryService.selectIvrLibScriptcategoryList(ivrLibScriptcategory); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:export')") |
| | | @Log(title = "AIè¯æ¯åºåç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibScriptcategory ivrLibScriptcategory) |
| | | { |
| | | public void export(HttpServletResponse response, IvrLibScriptcategory ivrLibScriptcategory) { |
| | | List<IvrLibScriptcategory> list = ivrLibScriptcategoryService.selectIvrLibScriptcategoryList(ivrLibScriptcategory); |
| | | ExcelUtil<IvrLibScriptcategory> util = new ExcelUtil<IvrLibScriptcategory>(IvrLibScriptcategory.class); |
| | | util.exportExcel(response, list, "AIè¯æ¯åºåç±»æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:query')") |
| | | @GetMapping(value = "/{categoryid}") |
| | | public AjaxResult getInfo(@PathVariable("categoryid") Long categoryid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("categoryid") Long categoryid) { |
| | | return success(ivrLibScriptcategoryService.selectIvrLibScriptcategoryByCategoryid(categoryid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:add')") |
| | | @Log(title = "AIè¯æ¯åºåç±»", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibScriptcategory.setOrgid(user.getOrgid()); |
| | | return toAjax(ivrLibScriptcategoryService.insertIvrLibScriptcategory(ivrLibScriptcategory)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:edit')") |
| | | @Log(title = "AIè¯æ¯åºåç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrLibScriptcategory ivrLibScriptcategory) { |
| | | return toAjax(ivrLibScriptcategoryService.updateIvrLibScriptcategory(ivrLibScriptcategory)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptcategory:remove')") |
| | | @Log(title = "AIè¯æ¯åºåç±»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{categoryids}") |
| | | public AjaxResult remove(@PathVariable Long[] categoryids) |
| | | { |
| | | @GetMapping("/remove/{categoryids}") |
| | | public AjaxResult remove(@PathVariable Long[] categoryids) { |
| | | return toAjax(ivrLibScriptcategoryService.deleteIvrLibScriptcategoryByCategoryids(categoryids)); |
| | | } |
| | | } |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrlibscriptmodel") |
| | | public class IvrLibScriptmodelController extends BaseController |
| | | { |
| | | public class IvrLibScriptmodelController extends BaseController { |
| | | @Autowired |
| | | private IIvrLibScriptmodelService ivrLibScriptmodelService; |
| | | |
| | |
| | | * æ¥è¯¢AIè¯æ¯æ¨¡åå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) { |
| | | startPage(); |
| | | List<IvrLibScriptmodel> list = ivrLibScriptmodelService.selectIvrLibScriptmodelList(ivrLibScriptmodel); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:export')") |
| | | @Log(title = "AIè¯æ¯æ¨¡å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibScriptmodel ivrLibScriptmodel) |
| | | { |
| | | public void export(HttpServletResponse response, IvrLibScriptmodel ivrLibScriptmodel) { |
| | | List<IvrLibScriptmodel> list = ivrLibScriptmodelService.selectIvrLibScriptmodelList(ivrLibScriptmodel); |
| | | ExcelUtil<IvrLibScriptmodel> util = new ExcelUtil<IvrLibScriptmodel>(IvrLibScriptmodel.class); |
| | | util.exportExcel(response, list, "AIè¯æ¯æ¨¡åæ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:query')") |
| | | @GetMapping(value = "/{modelid}") |
| | | public AjaxResult getInfo(@PathVariable("modelid") Long modelid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("modelid") Long modelid) { |
| | | return success(ivrLibScriptmodelService.selectIvrLibScriptmodelByModelid(modelid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:add')") |
| | | @Log(title = "AIè¯æ¯æ¨¡å", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibScriptmodel.setOrgid(user.getOrgid()); |
| | | return toAjax(ivrLibScriptmodelService.insertIvrLibScriptmodel(ivrLibScriptmodel)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:edit')") |
| | | @Log(title = "AIè¯æ¯æ¨¡å", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrLibScriptmodel ivrLibScriptmodel) { |
| | | return toAjax(ivrLibScriptmodelService.updateIvrLibScriptmodel(ivrLibScriptmodel)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrlibscriptmodel:remove')") |
| | | @Log(title = "AIè¯æ¯æ¨¡å", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{modelids}") |
| | | public AjaxResult remove(@PathVariable Long[] modelids) |
| | | { |
| | | @GetMapping("/remove/{modelids}") |
| | | public AjaxResult remove(@PathVariable Long[] modelids) { |
| | | return toAjax(ivrLibScriptmodelService.deleteIvrLibScriptmodelByModelids(modelids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éç¨æ¨¡æ¿åç±»å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaExtemplateCategory ivrLibaExtemplateCategory) { |
| | | startPage(); |
| | | List<IvrLibaExtemplateCategory> list = ivrLibaExtemplateCategoryService.selectIvrLibaExtemplateCategoryList(ivrLibaExtemplateCategory); |
| | |
| | | @ApiOperation("æ°å¢éç¨æ¨¡æ¿åç±»") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | @Log(title = "éç¨æ¨¡æ¿åç±»", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaExtemplateCategory ivrLibaExtemplateCategory) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹éç¨æ¨¡æ¿åç±»") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "éç¨æ¨¡æ¿åç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaExtemplateCategory ivrLibaExtemplateCategory) { |
| | | return toAjax(ivrLibaExtemplateCategoryService.updateIvrLibaExtemplateCategory(ivrLibaExtemplateCategory)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éè¿æ¨¡æ¿å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplate:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) { |
| | | startPage(); |
| | | List<IvrLibaExtemplate> list = ivrLibaExtemplateService.selectIvrLibaExtemplateList(ivrLibaExtemplate); |
| | |
| | | @ApiOperation("æ°å¢éè¿æ¨¡æ¿") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplate:add')") |
| | | @Log(title = "éè¿æ¨¡æ¿", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹éè¿æ¨¡æ¿") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplate:edit')") |
| | | @Log(title = "éè¿æ¨¡æ¿", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaExtemplate ivrLibaExtemplate) { |
| | | return toAjax(ivrLibaExtemplateService.updateIvrLibaExtemplate(ivrLibaExtemplate)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éç¨æ¨¡æ¿è¯æ¯å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplatescript:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaExtemplatescript ivrLibaExtemplatescript) { |
| | | startPage(); |
| | | List<IvrLibaExtemplatescript> list = ivrLibaExtemplatescriptService.selectIvrLibaExtemplatescriptList(ivrLibaExtemplatescript); |
| | |
| | | @ApiOperation("æ°å¢éç¨æ¨¡æ¿è¯æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplatescript:add')") |
| | | @Log(title = "éç¨æ¨¡æ¿è¯æ¯", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaExtemplatescript ivrLibaExtemplatescript) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibaExtemplatescript.setOrgid(user.getOrgid()); |
| | |
| | | @ApiOperation("ä¿®æ¹éç¨æ¨¡æ¿è¯æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:extemplatescript:edit')") |
| | | @Log(title = "éç¨æ¨¡æ¿è¯æ¯", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaExtemplatescript ivrLibaExtemplatescript) { |
| | | return toAjax(ivrLibaExtemplatescriptService.updateIvrLibaExtemplatescript(ivrLibaExtemplatescript)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®é¢è¯æ¯åç±»åº(æ ç¶)") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectIvrLibaScriptAssortList") |
| | | public TableDataInfo list(@RequestBody IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | | List<IvrLibaScriptAssortVO> list = ivrLibaScriptAssortService.selectIvrLibaScriptAssortList(ivrLibaScriptAssort); |
| | |
| | | @ApiOperation("æ°å¢é®é¢è¯æ¯åç±»åº") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "é®é¢è¯æ¯åç±»åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibaScriptAssort.setOrgid(user.getOrgid()); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "é®é¢è¯æ¯åç±»åº", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢é®é¢è¯æ¯åç±»æ ") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody IvrLibaScriptAssortVO ivrLibaScriptAssortVO) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹é®é¢è¯æ¯åç±»åº") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:edit')") |
| | | @Log(title = "é®é¢è¯æ¯åç±»åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScriptAssort ivrLibaScriptAssort) { |
| | | return toAjax(ivrLibaScriptAssortService.updateIvrLibaScriptAssort(ivrLibaScriptAssort)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®é¢è¯æ¯åºå表") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | public TableDataInfo list(@RequestBody IvrLibaScript ivrLibaScript) { |
| | | PageUtils.startPageByPost(ivrLibaScript.getPageNum(),ivrLibaScript.getPageSize()); |
| | | List<IvrLibaScript> list = ivrLibaScriptService.selectIvrLibaScriptList(ivrLibaScript); |
| | |
| | | @ApiOperation("æ°å¢é®é¢è¯æ¯åº") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "é®é¢è¯æ¯åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScript ivrLibaScript) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibaScript.setOrgid(user.getOrgid()); |
| | |
| | | @ApiOperation("ä¿®æ¹é®é¢è¯æ¯åº") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "é®é¢è¯æ¯åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScript ivrLibaScript) { |
| | | return toAjax(ivrLibaScriptService.updateIvrLibaScript(ivrLibaScript)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | import com.smartor.domain.IvrLibaScriptTag; |
| | | import com.smartor.service.IIvrLibaScriptTagService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | * æ¥è¯¢é®é¢è¯æ¯æ ç¾åºå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaScriptTag ivrLibaScriptTag) { |
| | | startPage(); |
| | | List<IvrLibaScriptTag> list = ivrLibaScriptTagService.selectIvrLibaScriptTagList(ivrLibaScriptTag); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScriptTag ivrLibaScriptTag) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScriptTag ivrLibaScriptTag) { |
| | | return toAjax(ivrLibaScriptTagService.updateIvrLibaScriptTag(ivrLibaScriptTag)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * æ¥è¯¢é®é¢è¯æ¯ææ åºå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaScriptTarget ivrLibaScriptTarget) { |
| | | startPage(); |
| | | List<IvrLibaScriptTarget> list = ivrLibaScriptTargetService.selectIvrLibaScriptTargetList(ivrLibaScriptTarget); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:target:add')") |
| | | @Log(title = "é®é¢è¯æ¯ææ åº", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScriptTarget ivrLibaScriptTarget) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:target:edit')") |
| | | @Log(title = "é®é¢è¯æ¯ææ åº", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScriptTarget ivrLibaScriptTarget) { |
| | | return toAjax(ivrLibaScriptTargetService.updateIvrLibaScriptTarget(ivrLibaScriptTarget)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * æ¥è¯¢é®é¢è¯æ¯ææ é项åºå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaScriptTargetoption ivrLibaScriptTargetoption) { |
| | | startPage(); |
| | | List<IvrLibaScriptTargetoption> list = ivrLibaScriptTargetoptionService.selectIvrLibaScriptTargetoptionList(ivrLibaScriptTargetoption); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "é®é¢è¯æ¯ææ é项åº", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScriptTargetoption ivrLibaScriptTargetoption) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "é®é¢è¯æ¯ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScriptTargetoption ivrLibaScriptTargetoption) { |
| | | return toAjax(ivrLibaScriptTargetoptionService.updateIvrLibaScriptTargetoption(ivrLibaScriptTargetoption)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ææ åç±»å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectIvrLibaTargetAssortList") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetAssort ivrLibaTargetAssort) { |
| | | // PageUtils.startPageByPost(ivrLibaTargetAssort.getPageNum(), ivrLibaTargetAssort.getPageSize()); |
| | |
| | | @ApiOperation("æ°å¢ææ åç±»") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "ææ åç±»", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTargetAssort ivrLibaTargetAssort) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "ææ åç±»", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢ææ åç±»æ ") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody IvrLibaTargetAssortVO ivrLibaTargetAssortVO) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹ææ åç±»") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:edit')") |
| | | @Log(title = "ææ åç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetAssort ivrLibaTargetAssort) { |
| | | return toAjax(ivrLibaTargetAssortService.updateIvrLibaTargetAssort(ivrLibaTargetAssort)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ææ å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTarget ivrLibaTarget) { |
| | | PageUtils.startPageByPost(ivrLibaTarget.getPageNum(), ivrLibaTarget.getPageSize()); |
| | | List<IvrLibaTarget> list = ivrLibaTargetService.selectIvrLibaTargetList(ivrLibaTarget); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:target:add')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢ææ ï¼è¿ä¸ªæ¥å£æ²¡å¥ç¨äºï¼ç¨âæ°å¢æä¿®æ¹ææ ä¿¡æ¯âè¿ä¸ªæ¥å£å¥½ä¸äºï¼") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTargetVO ivrLibaTargetVO) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * æ¥è¯¢ææ æ ç¾å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetTag ivrLibaTargetTag) { |
| | | startPage(); |
| | | List<IvrLibaTargetTag> list = ivrLibaTargetTagService.selectIvrLibaTargetTagList(ivrLibaTargetTag); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTargetTag ivrLibaTargetTag) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "ææ æ ç¾", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetTag ivrLibaTargetTag) { |
| | | return toAjax(ivrLibaTargetTagService.updateIvrLibaTargetTag(ivrLibaTargetTag)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @Api(description = "ææ é项åº") |
| | | @RestController |
| | | @RequestMapping("/smartor/targetoption") |
| | | public class IvrLibaTargetoptionController extends BaseController |
| | | { |
| | | public class IvrLibaTargetoptionController extends BaseController { |
| | | @Autowired |
| | | private IIvrLibaTargetoptionService ivrLibaTargetoptionService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ææ é项åºå表") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) |
| | | { |
| | | PageUtils.startPageByPost(ivrLibaTargetoption.getPageNum(),ivrLibaTargetoption.getPageSize()); |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) { |
| | | PageUtils.startPageByPost(ivrLibaTargetoption.getPageNum(), ivrLibaTargetoption.getPageSize()); |
| | | List<IvrLibaTargetoption> list = ivrLibaTargetoptionService.selectIvrLibaTargetoptionList(ivrLibaTargetoption); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTargetoption ivrLibaTargetoption) |
| | | { |
| | | public void export(HttpServletResponse response, IvrLibaTargetoption ivrLibaTargetoption) { |
| | | List<IvrLibaTargetoption> list = ivrLibaTargetoptionService.selectIvrLibaTargetoptionList(ivrLibaTargetoption); |
| | | ExcelUtil<IvrLibaTargetoption> util = new ExcelUtil<IvrLibaTargetoption>(IvrLibaTargetoption.class); |
| | | util.exportExcel(response, list, "ææ éé¡¹åºæ°æ®"); |
| | |
| | | @ApiOperation("è·åææ é项åºè¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/getInfo/{targetoptionid}") |
| | | public AjaxResult getInfo(@PathVariable("targetoptionid") Long targetoptionid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("targetoptionid") Long targetoptionid) { |
| | | return success(ivrLibaTargetoptionService.selectIvrLibaTargetoptionByTargetoptionid(targetoptionid)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ°å¢ææ é项åº") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibaTargetoption.setOrgid(user.getOrgid()); |
| | | return toAjax(ivrLibaTargetoptionService.insertIvrLibaTargetoption(ivrLibaTargetoption)); |
| | |
| | | @ApiOperation("ä¿®æ¹ææ é项åº") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) { |
| | | return toAjax(ivrLibaTargetoptionService.updateIvrLibaTargetoption(ivrLibaTargetoption)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å 餿æ é项åº") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "ææ é项åº", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{targetoptionids}") |
| | | public AjaxResult remove(@PathVariable Long[] targetoptionids) |
| | | { |
| | | @GetMapping("/remove/{targetoptionids}") |
| | | public AjaxResult remove(@PathVariable Long[] targetoptionids) { |
| | | return toAjax(ivrLibaTargetoptionService.deleteIvrLibaTargetoptionByTargetoptionids(targetoptionids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿åç±»å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectIvrLibaTemplateAssortList") |
| | | public TableDataInfo selectIvrLibaTemplateAssortList(@RequestBody IvrLibaTemplateAssort ivrLibaTemplateAssort) { |
| | | // startPage(); |
| | |
| | | @ApiOperation("æ°å¢æ¨¡æ¿åç±»") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "模æ¿åç±»", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplateAssort ivrLibaTemplateAssort) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "模æ¿åç±»", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢æ¨¡æ¿åç±»æ ") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody IvrLibaTemplateAssortVO ivrLibaTemplateAssortVO) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹æ¨¡æ¿åç±»") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:edit')") |
| | | @Log(title = "模æ¿åç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplateAssort ivrLibaTemplateAssort) { |
| | | return toAjax(ivrLibaTemplateAssortService.updateIvrLibaTemplateAssort(ivrLibaTemplateAssort)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é访模æ¿åºå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:template:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTemplate ivrLibaTemplate) { |
| | | //å页 |
| | | PageUtils.startPageByPost(ivrLibaTemplate.getPageNum(), ivrLibaTemplate.getPageSize()); |
| | |
| | | @ApiOperation("æ°å¢é访模æ¿åº") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:template:add')") |
| | | @Log(title = "模æ¿åº", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplate ivrLibaTemplate) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹é访模æ¿åº") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:template:edit')") |
| | | @Log(title = "模æ¿åº", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplate ivrLibaTemplate) { |
| | | return toAjax(ivrLibaTemplateService.updateIvrLibaTemplate(ivrLibaTemplate)); |
| | |
| | | * æ°å¢æä¿®æ¹é访模æ¿åºè¯¦æ
|
| | | */ |
| | | @ApiOperation("æ°å¢æä¿®æ¹é访模æ¿åºè¯¦æ
") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/saveOrUpdateScript") |
| | | public AjaxResult saveOrUpdateScript(@RequestBody IvrLibaTemplateVO ivrLibaTemplateVO) { |
| | | if (ObjectUtils.isEmpty(ivrLibaTemplateVO)) { |
| | |
| | | * æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶ |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectInfoByCondition") |
| | | public AjaxResult selectInfoByCondition(@RequestBody IvrLibaTemplateVO ivrLibaTemplateVO) { |
| | | if (ivrLibaTemplateVO.getId() == null) { |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @Api(description = "模çé®é¢è¯æ¯åº") |
| | | @RestController |
| | | @RequestMapping("/smartor/templatescript") |
| | | public class IvrLibaTemplateScriptController extends BaseController |
| | | { |
| | | public class IvrLibaTemplateScriptController extends BaseController { |
| | | @Autowired |
| | | private IIvrLibaTemplateScriptService ivrLibaTemplateScriptService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡çé®é¢è¯æ¯åºå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTemplateScript ivrLibaTemplateScript) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTemplateScript ivrLibaTemplateScript) { |
| | | startPage(); |
| | | List<IvrLibaTemplateScript> list = ivrLibaTemplateScriptService.selectIvrLibaTemplateScriptList(ivrLibaTemplateScript); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:export')") |
| | | @Log(title = "模çé®é¢è¯æ¯åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaTemplateScript ivrLibaTemplateScript) |
| | | { |
| | | public void export(HttpServletResponse response, IvrLibaTemplateScript ivrLibaTemplateScript) { |
| | | List<IvrLibaTemplateScript> list = ivrLibaTemplateScriptService.selectIvrLibaTemplateScriptList(ivrLibaTemplateScript); |
| | | ExcelUtil<IvrLibaTemplateScript> util = new ExcelUtil<IvrLibaTemplateScript>(IvrLibaTemplateScript.class); |
| | | util.exportExcel(response, list, "模çé®é¢è¯æ¯åºæ°æ®"); |
| | |
| | | @ApiOperation("è·å模çé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:query')") |
| | | @GetMapping(value = "/getInfo/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) { |
| | | return success(ivrLibaTemplateScriptService.selectIvrLibaTemplateScriptByID(ID)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ°å¢æ¨¡çé®é¢è¯æ¯åº") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:add')") |
| | | @Log(title = "模çé®é¢è¯æ¯åº", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplateScript ivrLibaTemplateScript) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrLibaTemplateScript ivrLibaTemplateScript) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibaTemplateScript.setOrgid(user.getOrgid()); |
| | | return toAjax(ivrLibaTemplateScriptService.insertIvrLibaTemplateScript(ivrLibaTemplateScript)); |
| | |
| | | @ApiOperation("ä¿®æ¹æ¨¡çé®é¢è¯æ¯åº") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script:edit')") |
| | | @Log(title = "模çé®é¢è¯æ¯åº", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplateScript ivrLibaTemplateScript) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplateScript ivrLibaTemplateScript) { |
| | | return toAjax(ivrLibaTemplateScriptService.updateIvrLibaTemplateScript(ivrLibaTemplateScript)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å 餿¨¡çé®é¢è¯æ¯åº") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:script: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(ivrLibaTemplateScriptService.deleteIvrLibaTemplateScriptByIDs(IDs)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | // @ApiOperation("æ¥è¯¢æ¨¡æ¿æ ç¾å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:tag:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTemplateTag ivrLibaTemplateTag) { |
| | | startPage(); |
| | | List<IvrLibaTemplateTag> list = ivrLibaTemplateTagService.selectIvrLibaTemplateTagList(ivrLibaTemplateTag); |
| | |
| | | @ApiOperation("æ°å¢æ¨¡æ¿æ ç¾") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:tag:add')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplateTag ivrLibaTemplateTag) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrLibaTemplateTag.setOrgid(user.getOrgid()); |
| | |
| | | @ApiOperation("ä¿®æ¹æ¨¡æ¿æ ç¾") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:tag:edit')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplateTag ivrLibaTemplateTag) { |
| | | return toAjax(ivrLibaTemplateTagService.updateIvrLibaTemplateTag(ivrLibaTemplateTag)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿ææ é项åºå表") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption) { |
| | | startPage(); |
| | | List<IvrLibaTemplateTargetoption> list = ivrLibaTemplateTargetoptionService.selectIvrLibaTemplateTargetoptionList(ivrLibaTemplateTargetoption); |
| | |
| | | @ApiOperation("æ°å¢æ¨¡æ¿ææ é项åº") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "æ¨¡æ¿ææ é项åº", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹æ¨¡æ¿ææ é项åº") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "æ¨¡æ¿ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaTemplateTargetoption ivrLibaTemplateTargetoption) { |
| | | return toAjax(ivrLibaTemplateTargetoptionService.updateIvrLibaTemplateTargetoption(ivrLibaTemplateTargetoption)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * AIå¤å¼åºæ¯ç®¡çController |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrscene") |
| | | public class IvrSceneController extends BaseController |
| | | { |
| | | public class IvrSceneController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneService ivrSceneService; |
| | | |
| | |
| | | * æ¥è¯¢AIå¤å¼åºæ¯ç®¡çå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrScene ivrScene) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrScene ivrScene) { |
| | | startPage(); |
| | | List<IvrScene> list = ivrSceneService.selectIvrSceneList(ivrScene); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:export')") |
| | | @Log(title = "AIå¤å¼åºæ¯ç®¡ç", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrScene ivrScene) |
| | | { |
| | | public void export(HttpServletResponse response, IvrScene ivrScene) { |
| | | List<IvrScene> list = ivrSceneService.selectIvrSceneList(ivrScene); |
| | | ExcelUtil<IvrScene> util = new ExcelUtil<IvrScene>(IvrScene.class); |
| | | util.exportExcel(response, list, "AIå¤å¼åºæ¯ç®¡çæ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:query')") |
| | | @GetMapping(value = "/{sceneid}") |
| | | public AjaxResult getInfo(@PathVariable("sceneid") Long sceneid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("sceneid") Long sceneid) { |
| | | return success(ivrSceneService.selectIvrSceneBySceneid(sceneid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:add')") |
| | | @Log(title = "AIå¤å¼åºæ¯ç®¡ç", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrScene ivrScene) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrScene ivrScene) { |
| | | return toAjax(ivrSceneService.insertIvrScene(ivrScene)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:edit')") |
| | | @Log(title = "AIå¤å¼åºæ¯ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrScene ivrScene) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrScene ivrScene) { |
| | | return toAjax(ivrSceneService.updateIvrScene(ivrScene)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscene:remove')") |
| | | @Log(title = "AIå¤å¼åºæ¯ç®¡ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{sceneids}") |
| | | public AjaxResult remove(@PathVariable Long[] sceneids) |
| | | { |
| | | @GetMapping("/remove/{sceneids}") |
| | | public AjaxResult remove(@PathVariable Long[] sceneids) { |
| | | return toAjax(ivrSceneService.deleteIvrSceneBySceneids(sceneids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrexecuteconfig") |
| | | public class IvrSceneExecuteconfigController extends BaseController |
| | | { |
| | | public class IvrSceneExecuteconfigController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneExecuteconfigService ivrSceneExecuteconfigService; |
| | | |
| | |
| | | * æ¥è¯¢AIå¤å¼æ§è¡é
ç½®å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) { |
| | | startPage(); |
| | | List<IvrSceneExecuteconfig> list = ivrSceneExecuteconfigService.selectIvrSceneExecuteconfigList(ivrSceneExecuteconfig); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:export')") |
| | | @Log(title = "AIå¤å¼æ§è¡é
ç½®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneExecuteconfig ivrSceneExecuteconfig) { |
| | | List<IvrSceneExecuteconfig> list = ivrSceneExecuteconfigService.selectIvrSceneExecuteconfigList(ivrSceneExecuteconfig); |
| | | ExcelUtil<IvrSceneExecuteconfig> util = new ExcelUtil<IvrSceneExecuteconfig>(IvrSceneExecuteconfig.class); |
| | | util.exportExcel(response, list, "AIå¤å¼æ§è¡é
ç½®æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:query')") |
| | | @GetMapping(value = "/{scenecfgid}") |
| | | public AjaxResult getInfo(@PathVariable("scenecfgid") Long scenecfgid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("scenecfgid") Long scenecfgid) { |
| | | return success(ivrSceneExecuteconfigService.selectIvrSceneExecuteconfigByScenecfgid(scenecfgid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:add')") |
| | | @Log(title = "AIå¤å¼æ§è¡é
ç½®", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) { |
| | | return toAjax(ivrSceneExecuteconfigService.insertIvrSceneExecuteconfig(ivrSceneExecuteconfig)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:edit')") |
| | | @Log(title = "AIå¤å¼æ§è¡é
ç½®", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneExecuteconfig ivrSceneExecuteconfig) { |
| | | return toAjax(ivrSceneExecuteconfigService.updateIvrSceneExecuteconfig(ivrSceneExecuteconfig)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrexecuteconfig:remove')") |
| | | @Log(title = "AIå¤å¼æ§è¡é
ç½®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scenecfgids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenecfgids) |
| | | { |
| | | @GetMapping("/remove/{scenecfgids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenecfgids) { |
| | | return toAjax(ivrSceneExecuteconfigService.deleteIvrSceneExecuteconfigByScenecfgids(scenecfgids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * AIå¤å¼æµç¨Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrflow") |
| | | public class IvrSceneFlowController extends BaseController |
| | | { |
| | | public class IvrSceneFlowController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneFlowService ivrSceneFlowService; |
| | | |
| | |
| | | * æ¥è¯¢AIå¤å¼æµç¨å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneFlow ivrSceneFlow) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneFlow ivrSceneFlow) { |
| | | startPage(); |
| | | List<IvrSceneFlow> list = ivrSceneFlowService.selectIvrSceneFlowList(ivrSceneFlow); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:export')") |
| | | @Log(title = "AIå¤å¼æµç¨", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneFlow ivrSceneFlow) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneFlow ivrSceneFlow) { |
| | | List<IvrSceneFlow> list = ivrSceneFlowService.selectIvrSceneFlowList(ivrSceneFlow); |
| | | ExcelUtil<IvrSceneFlow> util = new ExcelUtil<IvrSceneFlow>(IvrSceneFlow.class); |
| | | util.exportExcel(response, list, "AIå¤å¼æµç¨æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:query')") |
| | | @GetMapping(value = "/{flowid}") |
| | | public AjaxResult getInfo(@PathVariable("flowid") Long flowid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("flowid") Long flowid) { |
| | | return success(ivrSceneFlowService.selectIvrSceneFlowByFlowid(flowid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:add')") |
| | | @Log(title = "AIå¤å¼æµç¨", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneFlow ivrSceneFlow) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneFlow ivrSceneFlow) { |
| | | return toAjax(ivrSceneFlowService.insertIvrSceneFlow(ivrSceneFlow)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:edit')") |
| | | @Log(title = "AIå¤å¼æµç¨", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneFlow ivrSceneFlow) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneFlow ivrSceneFlow) { |
| | | return toAjax(ivrSceneFlowService.updateIvrSceneFlow(ivrSceneFlow)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflow:remove')") |
| | | @Log(title = "AIå¤å¼æµç¨", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{flowids}") |
| | | public AjaxResult remove(@PathVariable Long[] flowids) |
| | | { |
| | | @GetMapping("/remove/{flowids}") |
| | | public AjaxResult remove(@PathVariable Long[] flowids) { |
| | | return toAjax(ivrSceneFlowService.deleteIvrSceneFlowByFlowids(flowids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * æ¥è¯¢AIå¤å¼æµç¨èç¹å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownode:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneFlownode ivrSceneFlownode) |
| | | { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownode:add')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneFlownode ivrSceneFlownode) |
| | | { |
| | | return toAjax(ivrSceneFlownodeService.insertIvrSceneFlownode(ivrSceneFlownode)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownode:edit')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneFlownode ivrSceneFlownode) |
| | | { |
| | | return toAjax(ivrSceneFlownodeService.updateIvrSceneFlownode(ivrSceneFlownode)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * AIå¤å¼æµç¨èç¹åæ¯Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrflownodebranch") |
| | | public class IvrSceneFlownodebranchController extends BaseController |
| | | { |
| | | public class IvrSceneFlownodebranchController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneFlownodebranchService ivrSceneFlownodebranchService; |
| | | |
| | |
| | | * æ¥è¯¢AIå¤å¼æµç¨èç¹åæ¯å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) { |
| | | startPage(); |
| | | List<IvrSceneFlownodebranch> list = ivrSceneFlownodebranchService.selectIvrSceneFlownodebranchList(ivrSceneFlownodebranch); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:export')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹åæ¯", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneFlownodebranch ivrSceneFlownodebranch) { |
| | | List<IvrSceneFlownodebranch> list = ivrSceneFlownodebranchService.selectIvrSceneFlownodebranchList(ivrSceneFlownodebranch); |
| | | ExcelUtil<IvrSceneFlownodebranch> util = new ExcelUtil<IvrSceneFlownodebranch>(IvrSceneFlownodebranch.class); |
| | | util.exportExcel(response, list, "AIå¤å¼æµç¨èç¹åæ¯æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:query')") |
| | | @GetMapping(value = "/{branchid}") |
| | | public AjaxResult getInfo(@PathVariable("branchid") Long branchid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("branchid") Long branchid) { |
| | | return success(ivrSceneFlownodebranchService.selectIvrSceneFlownodebranchByBranchid(branchid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:add')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹åæ¯", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) { |
| | | return toAjax(ivrSceneFlownodebranchService.insertIvrSceneFlownodebranch(ivrSceneFlownodebranch)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:edit')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹åæ¯", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneFlownodebranch ivrSceneFlownodebranch) { |
| | | return toAjax(ivrSceneFlownodebranchService.updateIvrSceneFlownodebranch(ivrSceneFlownodebranch)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrflownodebranch:remove')") |
| | | @Log(title = "AIå¤å¼æµç¨èç¹åæ¯", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{branchids}") |
| | | public AjaxResult remove(@PathVariable Long[] branchids) |
| | | { |
| | | @GetMapping("/remove/{branchids}") |
| | | public AjaxResult remove(@PathVariable Long[] branchids) { |
| | | return toAjax(ivrSceneFlownodebranchService.deleteIvrSceneFlownodebranchByBranchids(branchids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * AIå¤å¼å
¨å±é
ç½®Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrglobalconfig") |
| | | public class IvrSceneGlobalconfigController extends BaseController |
| | | { |
| | | public class IvrSceneGlobalconfigController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneGlobalconfigService ivrSceneGlobalconfigService; |
| | | |
| | |
| | | * æ¥è¯¢AIå¤å¼å
¨å±é
ç½®å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) { |
| | | startPage(); |
| | | List<IvrSceneGlobalconfig> list = ivrSceneGlobalconfigService.selectIvrSceneGlobalconfigList(ivrSceneGlobalconfig); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:export')") |
| | | @Log(title = "AIå¤å¼å
¨å±é
ç½®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneGlobalconfig ivrSceneGlobalconfig) { |
| | | List<IvrSceneGlobalconfig> list = ivrSceneGlobalconfigService.selectIvrSceneGlobalconfigList(ivrSceneGlobalconfig); |
| | | ExcelUtil<IvrSceneGlobalconfig> util = new ExcelUtil<IvrSceneGlobalconfig>(IvrSceneGlobalconfig.class); |
| | | util.exportExcel(response, list, "AIå¤å¼å
¨å±é
ç½®æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:query')") |
| | | @GetMapping(value = "/{gblconfigid}") |
| | | public AjaxResult getInfo(@PathVariable("gblconfigid") Long gblconfigid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("gblconfigid") Long gblconfigid) { |
| | | return success(ivrSceneGlobalconfigService.selectIvrSceneGlobalconfigByGblconfigid(gblconfigid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:add')") |
| | | @Log(title = "AIå¤å¼å
¨å±é
ç½®", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) { |
| | | return toAjax(ivrSceneGlobalconfigService.insertIvrSceneGlobalconfig(ivrSceneGlobalconfig)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:edit')") |
| | | @Log(title = "AIå¤å¼å
¨å±é
ç½®", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneGlobalconfig ivrSceneGlobalconfig) { |
| | | return toAjax(ivrSceneGlobalconfigService.updateIvrSceneGlobalconfig(ivrSceneGlobalconfig)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrglobalconfig:remove')") |
| | | @Log(title = "AIå¤å¼å
¨å±é
ç½®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{gblconfigids}") |
| | | public AjaxResult remove(@PathVariable Long[] gblconfigids) |
| | | { |
| | | @GetMapping("/remove/{gblconfigids}") |
| | | public AjaxResult remove(@PathVariable Long[] gblconfigids) { |
| | | return toAjax(ivrSceneGlobalconfigService.deleteIvrSceneGlobalconfigByGblconfigids(gblconfigids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * AIå¤å¼æå¾Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrintent") |
| | | public class IvrSceneIntentController extends BaseController |
| | | { |
| | | public class IvrSceneIntentController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneIntentService ivrSceneIntentService; |
| | | |
| | |
| | | * æ¥è¯¢AIå¤å¼æå¾å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneIntent ivrSceneIntent) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneIntent ivrSceneIntent) { |
| | | startPage(); |
| | | List<IvrSceneIntent> list = ivrSceneIntentService.selectIvrSceneIntentList(ivrSceneIntent); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:export')") |
| | | @Log(title = "AIå¤å¼æå¾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneIntent ivrSceneIntent) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneIntent ivrSceneIntent) { |
| | | List<IvrSceneIntent> list = ivrSceneIntentService.selectIvrSceneIntentList(ivrSceneIntent); |
| | | ExcelUtil<IvrSceneIntent> util = new ExcelUtil<IvrSceneIntent>(IvrSceneIntent.class); |
| | | util.exportExcel(response, list, "AIå¤å¼æå¾æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:query')") |
| | | @GetMapping(value = "/{sceneintentid}") |
| | | public AjaxResult getInfo(@PathVariable("sceneintentid") Long sceneintentid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("sceneintentid") Long sceneintentid) { |
| | | return success(ivrSceneIntentService.selectIvrSceneIntentBySceneintentid(sceneintentid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:add')") |
| | | @Log(title = "AIå¤å¼æå¾", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneIntent ivrSceneIntent) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneIntent ivrSceneIntent) { |
| | | return toAjax(ivrSceneIntentService.insertIvrSceneIntent(ivrSceneIntent)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:edit')") |
| | | @Log(title = "AIå¤å¼æå¾", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneIntent ivrSceneIntent) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneIntent ivrSceneIntent) { |
| | | return toAjax(ivrSceneIntentService.updateIvrSceneIntent(ivrSceneIntent)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrintent:remove')") |
| | | @Log(title = "AIå¤å¼æå¾", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{sceneintentids}") |
| | | public AjaxResult remove(@PathVariable Long[] sceneintentids) |
| | | { |
| | | @GetMapping("/remove/{sceneintentids}") |
| | | public AjaxResult remove(@PathVariable Long[] sceneintentids) { |
| | | return toAjax(ivrSceneIntentService.deleteIvrSceneIntentBySceneintentids(sceneintentids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrrecall") |
| | | public class IvrSceneRecallController extends BaseController |
| | | { |
| | | public class IvrSceneRecallController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneRecallService ivrSceneRecallService; |
| | | |
| | |
| | | * æ¥è¯¢AIå¤å¼éæ¨é
ç½®å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneRecall ivrSceneRecall) { |
| | | startPage(); |
| | | List<IvrSceneRecall> list = ivrSceneRecallService.selectIvrSceneRecallList(ivrSceneRecall); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:export')") |
| | | @Log(title = "AIå¤å¼éæ¨é
ç½®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneRecall ivrSceneRecall) { |
| | | List<IvrSceneRecall> list = ivrSceneRecallService.selectIvrSceneRecallList(ivrSceneRecall); |
| | | ExcelUtil<IvrSceneRecall> util = new ExcelUtil<IvrSceneRecall>(IvrSceneRecall.class); |
| | | util.exportExcel(response, list, "AIå¤å¼éæ¨é
ç½®æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:query')") |
| | | @GetMapping(value = "/{recallid}") |
| | | public AjaxResult getInfo(@PathVariable("recallid") Long recallid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("recallid") Long recallid) { |
| | | return success(ivrSceneRecallService.selectIvrSceneRecallByRecallid(recallid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:add')") |
| | | @Log(title = "AIå¤å¼éæ¨é
ç½®", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneRecall ivrSceneRecall) { |
| | | return toAjax(ivrSceneRecallService.insertIvrSceneRecall(ivrSceneRecall)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:edit')") |
| | | @Log(title = "AIå¤å¼éæ¨é
ç½®", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneRecall ivrSceneRecall) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneRecall ivrSceneRecall) { |
| | | return toAjax(ivrSceneRecallService.updateIvrSceneRecall(ivrSceneRecall)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrrecall:remove')") |
| | | @Log(title = "AIå¤å¼éæ¨é
ç½®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{recallids}") |
| | | public AjaxResult remove(@PathVariable Long[] recallids) |
| | | { |
| | | @GetMapping("/remove/{recallids}") |
| | | public AjaxResult remove(@PathVariable Long[] recallids) { |
| | | return toAjax(ivrSceneRecallService.deleteIvrSceneRecallByRecallids(recallids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * AIå¤å¼è¯æ¯Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrscript") |
| | | public class IvrSceneScriptController extends BaseController |
| | | { |
| | | public class IvrSceneScriptController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneScriptService ivrSceneScriptService; |
| | | |
| | |
| | | * æ¥è¯¢AIå¤å¼è¯æ¯å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneScript ivrSceneScript) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneScript ivrSceneScript) { |
| | | startPage(); |
| | | List<IvrSceneScript> list = ivrSceneScriptService.selectIvrSceneScriptList(ivrSceneScript); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:export')") |
| | | @Log(title = "AIå¤å¼è¯æ¯", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneScript ivrSceneScript) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneScript ivrSceneScript) { |
| | | List<IvrSceneScript> list = ivrSceneScriptService.selectIvrSceneScriptList(ivrSceneScript); |
| | | ExcelUtil<IvrSceneScript> util = new ExcelUtil<IvrSceneScript>(IvrSceneScript.class); |
| | | util.exportExcel(response, list, "AIå¤å¼è¯æ¯æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:query')") |
| | | @GetMapping(value = "/{scenescrid}") |
| | | public AjaxResult getInfo(@PathVariable("scenescrid") Long scenescrid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("scenescrid") Long scenescrid) { |
| | | return success(ivrSceneScriptService.selectIvrSceneScriptByScenescrid(scenescrid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:add')") |
| | | @Log(title = "AIå¤å¼è¯æ¯", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneScript ivrSceneScript) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneScript ivrSceneScript) { |
| | | return toAjax(ivrSceneScriptService.insertIvrSceneScript(ivrSceneScript)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:edit')") |
| | | @Log(title = "AIå¤å¼è¯æ¯", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneScript ivrSceneScript) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneScript ivrSceneScript) { |
| | | return toAjax(ivrSceneScriptService.updateIvrSceneScript(ivrSceneScript)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscript:remove')") |
| | | @Log(title = "AIå¤å¼è¯æ¯", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scenescrids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenescrids) |
| | | { |
| | | @GetMapping("/remove/{scenescrids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenescrids) { |
| | | return toAjax(ivrSceneScriptService.deleteIvrSceneScriptByScenescrids(scenescrids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * AIå¤å¼è¯æ¯æ¨¡åController |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-06 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrscriptmodel") |
| | | public class IvrSceneScriptmodelController extends BaseController |
| | | { |
| | | public class IvrSceneScriptmodelController extends BaseController { |
| | | @Autowired |
| | | private IIvrSceneScriptmodelService ivrSceneScriptmodelService; |
| | | |
| | |
| | | * æ¥è¯¢AIå¤å¼è¯æ¯æ¨¡åå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrSceneScriptmodel ivrSceneScriptmodel) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrSceneScriptmodel ivrSceneScriptmodel) { |
| | | startPage(); |
| | | List<IvrSceneScriptmodel> list = ivrSceneScriptmodelService.selectIvrSceneScriptmodelList(ivrSceneScriptmodel); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:export')") |
| | | @Log(title = "AIå¤å¼è¯æ¯æ¨¡å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrSceneScriptmodel ivrSceneScriptmodel) |
| | | { |
| | | public void export(HttpServletResponse response, IvrSceneScriptmodel ivrSceneScriptmodel) { |
| | | List<IvrSceneScriptmodel> list = ivrSceneScriptmodelService.selectIvrSceneScriptmodelList(ivrSceneScriptmodel); |
| | | ExcelUtil<IvrSceneScriptmodel> util = new ExcelUtil<IvrSceneScriptmodel>(IvrSceneScriptmodel.class); |
| | | util.exportExcel(response, list, "AIå¤å¼è¯æ¯æ¨¡åæ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:query')") |
| | | @GetMapping(value = "/{scenemodid}") |
| | | public AjaxResult getInfo(@PathVariable("scenemodid") Long scenemodid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("scenemodid") Long scenemodid) { |
| | | return success(ivrSceneScriptmodelService.selectIvrSceneScriptmodelByScenemodid(scenemodid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:add')") |
| | | @Log(title = "AIå¤å¼è¯æ¯æ¨¡å", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrSceneScriptmodel ivrSceneScriptmodel) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrSceneScriptmodel ivrSceneScriptmodel) { |
| | | return toAjax(ivrSceneScriptmodelService.insertIvrSceneScriptmodel(ivrSceneScriptmodel)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:edit')") |
| | | @Log(title = "AIå¤å¼è¯æ¯æ¨¡å", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrSceneScriptmodel ivrSceneScriptmodel) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrSceneScriptmodel ivrSceneScriptmodel) { |
| | | return toAjax(ivrSceneScriptmodelService.updateIvrSceneScriptmodel(ivrSceneScriptmodel)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscriptmodel:remove')") |
| | | @Log(title = "AIå¤å¼è¯æ¯æ¨¡å", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{scenemodids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenemodids) |
| | | { |
| | | @GetMapping("/remove/{scenemodids}") |
| | | public AjaxResult remove(@PathVariable Long[] scenemodids) { |
| | | return toAjax(ivrSceneScriptmodelService.deleteIvrSceneScriptmodelByScenemodids(scenemodids)); |
| | | } |
| | | } |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * æ¥è¯¢AIæå¡åºæ¯ç®¡çåç±»å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrScenecategory ivrScenecategory) { |
| | | startPage(); |
| | | List<IvrScenecategory> list = ivrScenecategoryService.selectIvrScenecategoryList(ivrScenecategory); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:add')") |
| | | @Log(title = "AIæå¡åºæ¯ç®¡çåç±»", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrScenecategory ivrScenecategory) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrscenecategory:edit')") |
| | | @Log(title = "AIæå¡åºæ¯ç®¡çåç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrScenecategory ivrScenecategory) { |
| | | return toAjax(ivrScenecategoryService.updateIvrScenecategory(ivrScenecategory)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢è¯é³ä»»å¡æ¨¡æ¿åºå表") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrTaskTemplate ivrTaskTemplate) { |
| | | startPage(); |
| | | List<IvrTaskTemplate> list = ivrTaskTemplateService.selectIvrTaskTemplateList(ivrTaskTemplate); |
| | |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) { |
| | | return success(ivrTaskTemplateService.selectIvrTaskTemplateByID(ID)); |
| | | } |
| | | |
| | | /** |
| | | * è·åé访任å¡é访模æ¿åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ°å¢è¯é³ä»»å¡æ¨¡æ¿åº") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskTemplate ivrTaskTemplate) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | @ApiOperation("ä¿®æ¹è¯é³ä»»å¡æ¨¡æ¿åº") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskTemplate ivrTaskTemplate) { |
| | | return toAjax(ivrTaskTemplateService.updateIvrTaskTemplate(ivrTaskTemplate)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @Api(description = "éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºController") |
| | | @RestController |
| | | @RequestMapping("/smartor/taskTemplateScript") |
| | | public class IvrTaskTemplateScriptController extends BaseController |
| | | { |
| | | public class IvrTaskTemplateScriptController extends BaseController { |
| | | @Autowired |
| | | private IIvrTaskTemplateScriptService ivrTaskTemplateScriptService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) { |
| | | startPage(); |
| | | List<IvrTaskTemplateScript> list = ivrTaskTemplateScriptService.selectIvrTaskTemplateScriptList(ivrTaskTemplateScript); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTaskTemplateScript ivrTaskTemplateScript) |
| | | { |
| | | public void export(HttpServletResponse response, IvrTaskTemplateScript ivrTaskTemplateScript) { |
| | | List<IvrTaskTemplateScript> list = ivrTaskTemplateScriptService.selectIvrTaskTemplateScriptList(ivrTaskTemplateScript); |
| | | ExcelUtil<IvrTaskTemplateScript> util = new ExcelUtil<IvrTaskTemplateScript>(IvrTaskTemplateScript.class); |
| | | util.exportExcel(response, list, "éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºæ°æ®"); |
| | |
| | | @ApiOperation("è·åéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/getInfo/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) { |
| | | return success(ivrTaskTemplateScriptService.selectIvrTaskTemplateScriptByID(ID)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @ApiOperation("æ°å¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | ivrTaskTemplateScript.setOrgid(user.getOrgid()); |
| | | return toAjax(ivrTaskTemplateScriptService.insertIvrTaskTemplateScript(ivrTaskTemplateScript)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @ApiOperation("ä¿®æ¹éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) { |
| | | return toAjax(ivrTaskTemplateScriptService.updateIvrTaskTemplateScript(ivrTaskTemplateScript)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @ApiOperation("å é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº") |
| | | @GetMapping("/remove/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) |
| | | { |
| | | @GetMapping("/remove/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) { |
| | | return toAjax(ivrTaskTemplateScriptService.deleteIvrTaskTemplateScriptByIDs(IDs)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表") |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | | startPage(); |
| | | List<IvrTaskTemplateTargetoption> list = ivrTaskTemplateTargetoptionService.selectIvrTaskTemplateTargetoptionList(ivrTaskTemplateTargetoption); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @ApiOperation("æ°å¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åº") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @ApiOperation("ä¿®æ¹éè®¿ä»»å¡æ¨¡æ¿ææ é项åº") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | | return toAjax(ivrTaskTemplateTargetoptionService.updateIvrTaskTemplateTargetoption(ivrTaskTemplateTargetoption)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
é访信æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('system:result:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(IvrTaskVisitResult ivrTaskVisitResult) { |
| | | startPage(); |
| | | List<IvrTaskVisitResult> list = ivrTaskVisitResultService.selectIvrTaskVisitResultList(ivrTaskVisitResult); |
| | |
| | | @ApiOperation("æ°å¢ä»»å¡éè®¿ç»æ") |
| | | //@PreAuthorize("@ss.hasPermi('system:result:add')") |
| | | @Log(title = "ä»»å¡éè®¿ç»æ", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskVisitResult ivrTaskVisitResult) { |
| | | return toAjax(ivrTaskVisitResultService.insertIvrTaskVisitResult(ivrTaskVisitResult)); |
| | |
| | | @ApiOperation("ä¿®æ¹ä»»å¡éè®¿ç»æ") |
| | | //@PreAuthorize("@ss.hasPermi('system:result:edit')") |
| | | @Log(title = "ä»»å¡éè®¿ç»æ", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskVisitResult ivrTaskVisitResult) { |
| | | return toAjax(ivrTaskVisitResultService.updateIvrTaskVisitResult(ivrTaskVisitResult)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrtaskcallrecord") |
| | | public class IvrTaskcallrecordController extends BaseController |
| | | { |
| | | public class IvrTaskcallrecordController extends BaseController { |
| | | @Autowired |
| | | private IIvrTaskcallrecordService ivrTaskcallrecordService; |
| | | |
| | |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«è®°å½å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) { |
| | | startPage(); |
| | | List<IvrTaskcallrecord> list = ivrTaskcallrecordService.selectIvrTaskcallrecordList(ivrTaskcallrecord); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:export')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«è®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTaskcallrecord ivrTaskcallrecord) |
| | | { |
| | | public void export(HttpServletResponse response, IvrTaskcallrecord ivrTaskcallrecord) { |
| | | List<IvrTaskcallrecord> list = ivrTaskcallrecordService.selectIvrTaskcallrecordList(ivrTaskcallrecord); |
| | | ExcelUtil<IvrTaskcallrecord> util = new ExcelUtil<IvrTaskcallrecord>(IvrTaskcallrecord.class); |
| | | util.exportExcel(response, list, "è¯é³ä»»å¡å¼å«è®°å½æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:query')") |
| | | @GetMapping(value = "/{uuid}") |
| | | public AjaxResult getInfo(@PathVariable("uuid") String uuid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("uuid") String uuid) { |
| | | return success(ivrTaskcallrecordService.selectIvrTaskcallrecordByUuid(uuid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:add')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«è®°å½", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) { |
| | | return toAjax(ivrTaskcallrecordService.insertIvrTaskcallrecord(ivrTaskcallrecord)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:edit')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«è®°å½", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrTaskcallrecord ivrTaskcallrecord) { |
| | | return toAjax(ivrTaskcallrecordService.updateIvrTaskcallrecord(ivrTaskcallrecord)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtaskcallrecord:remove')") |
| | | @Log(title = "è¯é³ä»»å¡å¼å«è®°å½", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{uuids}") |
| | | public AjaxResult remove(@PathVariable String[] uuids) |
| | | { |
| | | @GetMapping("/remove/{uuids}") |
| | | public AjaxResult remove(@PathVariable String[] uuids) { |
| | | return toAjax(ivrTaskcallrecordService.deleteIvrTaskcallrecordByUuids(uuids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡çä¿¡Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrtasksms") |
| | | public class IvrTasksmsController extends BaseController |
| | | { |
| | | public class IvrTasksmsController extends BaseController { |
| | | @Autowired |
| | | private IIvrTasksmsService ivrTasksmsService; |
| | | |
| | |
| | | * æ¥è¯¢è¯é³ä»»å¡çä¿¡å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTasksms ivrTasksms) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody IvrTasksms ivrTasksms) { |
| | | startPage(); |
| | | List<IvrTasksms> list = ivrTasksmsService.selectIvrTasksmsList(ivrTasksms); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:export')") |
| | | @Log(title = "è¯é³ä»»å¡çä¿¡", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTasksms ivrTasksms) |
| | | { |
| | | public void export(HttpServletResponse response, IvrTasksms ivrTasksms) { |
| | | List<IvrTasksms> list = ivrTasksmsService.selectIvrTasksmsList(ivrTasksms); |
| | | ExcelUtil<IvrTasksms> util = new ExcelUtil<IvrTasksms>(IvrTasksms.class); |
| | | util.exportExcel(response, list, "è¯é³ä»»å¡çä¿¡æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrTasksmsService.selectIvrTasksmsById(id)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:add')") |
| | | @Log(title = "è¯é³ä»»å¡çä¿¡", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTasksms ivrTasksms) |
| | | { |
| | | public AjaxResult add(@RequestBody IvrTasksms ivrTasksms) { |
| | | return toAjax(ivrTasksmsService.insertIvrTasksms(ivrTasksms)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms:edit')") |
| | | @Log(title = "è¯é³ä»»å¡çä¿¡", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTasksms ivrTasksms) |
| | | { |
| | | public AjaxResult edit(@RequestBody IvrTasksms ivrTasksms) { |
| | | return toAjax(ivrTasksmsService.updateIvrTasksms(ivrTasksms)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ivrtasksms: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(ivrTasksmsService.deleteIvrTasksmsByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import cn.hutool.db.Page; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * æ¥è¯¢ç
å²å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:history:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectMedicalHistoryList") |
| | | @ApiOperation("æ¥è¯¢ç
å²å表") |
| | | public TableDataInfo selectMedicalHistorylist(@RequestBody MedicalHistory medicalHistory) { |
| | | PageUtils.startPageByPost(medicalHistory.getPageNum(),medicalHistory.getPageSize()); |
| | | public TableDataInfo selectMedicalHistorylist(@RequestBody MedicalHistory medicalHistory) { |
| | | PageUtils.startPageByPost(medicalHistory.getPageNum(), medicalHistory.getPageSize()); |
| | | List<MedicalHistory> list = medicalHistoryService.selectMedicalHistoryList(medicalHistory); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:history:query')") |
| | | @ApiOperation("è·åç
å²è¯¦ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id,@PathVariable("pid") Long pid) { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id, @PathVariable("pid") Long pid) { |
| | | return success(medicalHistoryService.selectMedicalHistoryById(id)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:history:add')") |
| | | @Log(title = "ç
å²", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢ç
å²") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody MedicalHistory medicalHistory) { |
| | | medicalHistory.setOrgid(getOrgid()); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:history:edit')") |
| | | @Log(title = "ç
å²", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹ç
å²") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody MedicalHistory medicalHistory) { |
| | | return toAjax(medicalHistoryService.updateMedicalHistory(medicalHistory)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:file:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody MinioFile minioFile) { |
| | | startPage(); |
| | | List<MinioFile> list = minioFileService.selectMinioFileList(minioFile); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:file:add')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody MinioFile minioFile) { |
| | | return toAjax(minioFileService.insertMinioFile(minioFile)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:file:edit')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody MinioFile minioFile) { |
| | | return toAjax(minioFileService.updateMinioFile(minioFile)); |
| | |
| | | @ResponseBody |
| | | @ApiOperation(value = "ä¸ä¼ æä»¶å°æä»¶ç®¡ç,æ¯ææ¹éä¸ä¼ ") |
| | | @ApiImplicitParam(name = "files", value = "æä»¶å¯¹è±¡", dataType = "File") |
| | | public AjaxResult commonUploadFile(@RequestParam(value = "path",required = false) String path, @RequestParam("files") List<MultipartFile> files) { |
| | | public AjaxResult commonUploadFile(@RequestParam(value = "path", required = false) String path, @RequestParam("files") List<MultipartFile> files) { |
| | | if (CollectionUtils.isEmpty(files)) { |
| | | return error("æªéæ©æä»¶ï¼"); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
æ¡£æ¡å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patarchive:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody PatArchive patArchive) { |
| | | PageUtils.startPageByPost(patArchive.getPageNum(), patArchive.getPageSize()); |
| | | List<PatArchive> list = patArchiveService.selectPatArchiveList(patArchive); |
| | |
| | | @ApiOperation("æ°å¢æ£è
æ¡£æ¡") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patarchive:add')") |
| | | @Log(title = "æ£è
æ¡£æ¡", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatArchive patArchive) { |
| | | return toAjax(patArchiveService.insertPatArchive(patArchive)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * æ¥è¯¢Excel导å
¥æ£è
æ¡£æ¡å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢Excel导å
¥æ£è
æ¡£æ¡å表") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody PatArchiveImport patArchiveImport) { |
| | | PageUtils.startPageByPost(patArchiveImport.getPageNum(), patArchiveImport.getPageSize()); |
| | | List<PatArchiveImport> list = patArchiveImportService.selectPatArchiveImportList(patArchiveImport); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:import:add')") |
| | | @Log(title = "Excel导å
¥æ£è
æ¡£æ¡", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatArchiveImport patArchiveImport) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹Excel导å
¥æ£è
æ¡£æ¡") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:import:edit')") |
| | | @Log(title = "Excel导å
¥æ£è
æ¡£æ¡", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatArchiveImport patArchiveImport) { |
| | | return toAjax(patArchiveImportService.updatePatArchiveImport(patArchiveImport)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | |
| | | * æ¥è¯¢å¤é¨æ£è
æ¡£æ¡å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢å¤é¨æ£è
æ¡£æ¡å表") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(PatArchiveOut patArchiveOut) { |
| | | startPage(); |
| | | List<PatArchiveOut> list = patArchiveOutService.selectPatArchiveOutList(patArchiveOut); |
| | |
| | | * æ°å¢å¤é¨æ£è
æ¡£æ¡ |
| | | */ |
| | | @ApiOperation("æ°å¢å¤é¨æ£è
æ¡£æ¡") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatArchiveOut patArchiveOut) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | * ä¿®æ¹å¤é¨æ£è
æ¡£æ¡ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹å¤é¨æ£è
æ¡£æ¡") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatArchiveOut patArchiveOut) { |
| | | return toAjax(patArchiveOutService.updatePatArchiveOut(patArchiveOut)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
èç³»æ¹å¼å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivecontact:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectPatArchivecontactList") |
| | | public TableDataInfo selectPatArchivecontactlist(@RequestBody PatArchivecontact patArchivecontact) { |
| | | PageUtils.startPageByPost(patArchivecontact.getPageNum(), patArchivecontact.getPageSize()); |
| | |
| | | @ApiOperation("æ°å¢æ£è
èç³»æ¹å¼") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivecontact:add')") |
| | | @Log(title = "æ£è
èç³»æ¹å¼", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatArchivecontact patArchivecontact) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
èç³»æ¹å¼") |
| | | //@PreAuthorize("@ss.hasPermi('system:archivecontact:edit')") |
| | | @Log(title = "æ£è
èç³»æ¹å¼", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatArchivecontact patArchivecontact) { |
| | | return toAjax(patArchivecontactService.updatePatArchivecontact(patArchivecontact)); |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.smartor.domain.PatArchivetag; |
| | | import com.smartor.service.IPatArchivetagService; |
| | |
| | | * æ¥è¯¢æ£è
æ¡£æ¡æ ç¾å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:archivetag:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | @ApiOperation("æ¥è¯¢æ£è
æ¡£æ¡æ ç¾å表") |
| | | public TableDataInfo list(@RequestBody PatArchivetag patArchivetag) { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:archivetag:add')") |
| | | @ApiOperation("æ°å¢æ£è
æ¡£æ¡æ ç¾") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatArchivetag patArchivetag) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:archivetag:edit')") |
| | | @ApiOperation("ä¿®æ¹æ£è
æ¡£æ¡æ ç¾") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatArchivetag patArchivetag) { |
| | | return toAjax(patArchivetagService.updatePatArchivetag(patArchivetag)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:filterlist:add')") |
| | | @Log(title = "æ£è
è¿æ»¤åå", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢æ£è
è¿æ»¤åå") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatFilterlist patFilterlist) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:filterlist:edit')") |
| | | @Log(title = "æ£è
è¿æ»¤åå", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹æ£è
è¿æ»¤åå") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatFilterlist patFilterlist) { |
| | | return toAjax(patFilterlistService.updatePatFilterlist(patFilterlist)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * æ¥è¯¢æ£è
è¡ç³è®°å½å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:bloodsugar:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | @ApiOperation("æ¥è¯¢æ£è
è¡ç³è®°å½å表") |
| | | public TableDataInfo list(@RequestBody PatMedBloodsugar patMedBloodsugar) { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:bloodsugar:add')") |
| | | @Log(title = "æ°å¢æ£è
è¡ç³è®°å½", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | @ApiOperation("æ°å¢æ£è
è¡ç³è®°å½") |
| | | public AjaxResult add(@RequestBody PatMedBloodsugar patMedBloodsugar) { |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:bloodsugar:edit')") |
| | | @Log(title = "æ£è
è¡ç³è®°å½", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | @ApiOperation("ä¿®æ¹æ£è
è¡ç³è®°å½") |
| | | public AjaxResult edit(@RequestBody PatMedBloodsugar patMedBloodsugar) { |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @Api(description = "æ£è
ç¨è¯è®°å½") |
| | | @RestController |
| | | @RequestMapping("/system/drug") |
| | | public class PatMedDrugController extends BaseController |
| | | { |
| | | public class PatMedDrugController extends BaseController { |
| | | @Autowired |
| | | private IPatMedDrugService patMedDrugService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
ç¨è¯è®°å½å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedDrug patMedDrug) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody PatMedDrug patMedDrug) { |
| | | startPage(); |
| | | List<PatMedDrug> list = patMedDrugService.selectPatMedDrugList(patMedDrug); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:export')") |
| | | @Log(title = "æ£è
ç¨è¯è®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedDrug patMedDrug) |
| | | { |
| | | public void export(HttpServletResponse response, PatMedDrug patMedDrug) { |
| | | List<PatMedDrug> list = patMedDrugService.selectPatMedDrugList(patMedDrug); |
| | | ExcelUtil<PatMedDrug> util = new ExcelUtil<PatMedDrug>(PatMedDrug.class); |
| | | util.exportExcel(response, list, "æ£è
ç¨è¯è®°å½æ°æ®"); |
| | |
| | | @ApiOperation("è·åæ£è
ç¨è¯è®°å½è¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedDrugService.selectPatMedDrugById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ°å¢æ£è
ç¨è¯è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:add')") |
| | | @Log(title = "æ£è
ç¨è¯è®°å½", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedDrug patMedDrug) |
| | | { |
| | | public AjaxResult add(@RequestBody PatMedDrug patMedDrug) { |
| | | return toAjax(patMedDrugService.insertPatMedDrug(patMedDrug)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
ç¨è¯è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug:edit')") |
| | | @Log(title = "æ£è
ç¨è¯è®°å½", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedDrug patMedDrug) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatMedDrug patMedDrug) { |
| | | return toAjax(patMedDrugService.updatePatMedDrug(patMedDrug)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å 餿£è
ç¨è¯è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('system:drug: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(patMedDrugService.deletePatMedDrugByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * æ¥è¯¢æ£è
é«è¡åè®°å½å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | @ApiOperation("æ¥è¯¢æ£è
é«è¡åè®°å½å表") |
| | | public TableDataInfo list(@RequestBody PatMedHypertension patMedHypertension) { |
| | | startPage(); |
| | |
| | | @ApiOperation("æ£è
é«è¡åè®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:add')") |
| | | @Log(title = "æ£è
é«è¡åè®°å½", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedHypertension patMedHypertension) { |
| | | return toAjax(patMedHypertensionService.insertPatMedHypertension(patMedHypertension)); |
| | |
| | | @ApiOperation("æ£è
é«è¡åè®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('system:hypertension:edit')") |
| | | @Log(title = "æ£è
é«è¡åè®°å½", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedHypertension patMedHypertension) { |
| | | return toAjax(patMedHypertensionService.updatePatMedHypertension(patMedHypertension)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
ä½é¢è®°å½å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patinhosp:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectPatMedInhospList") |
| | | public TableDataInfo selectPatMedInhosplist(@RequestBody PatMedInhosp patMedInhosp) { |
| | | PageUtils.startPageByPost(patMedInhosp.getPageNum(), patMedInhosp.getPageSize()); |
| | |
| | | /** |
| | | * æ¥è¯¢å½åç»é人èªå·±ï¼ç
åºãé¨é¨ï¼çæ£è
ä½é¢è®°å½å表 |
| | | */ |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @ApiOperation("æ¥è¯¢å½åç»é人èªå·±ï¼ç
åºãé¨é¨ï¼çæ£è
ä½é¢è®°å½å表") |
| | | @PostMapping("/selectPatMedInhospListByCondition") |
| | | public TableDataInfo selectPatMedInhospListByCondition(@RequestBody PatMedInhospVO patMedInhospVO) { |
| | |
| | | /** |
| | | * æ¥è¯¢åºãå
¥é¢çç
人次å人æ°ï¼äººæ°åä¸ºé¦æ¬¡æå¡ã忬¡æå¡ãä¸ç
æå¡ï¼ |
| | | */ |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectPatMedInhospListCount") |
| | | @ApiOperation("æ¥è¯¢åºãå
¥é¢çç
人次å人æ°") |
| | | public AjaxResult selectPatMedInhospListCount(@RequestBody PatMedReq patMedReq) { |
| | |
| | | @ApiOperation("æ°å¢æ£è
ä½é¢è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patinhosp:add')") |
| | | @Log(title = "æ£è
ä½é¢è®°å½", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedInhosp patMedInhosp) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
ä½é¢è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patinhosp:edit')") |
| | | @Log(title = "æ£è
ä½é¢è®°å½", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedInhosp patMedInhosp) { |
| | | return toAjax(patMedInhospService.updatePatMedInhosp(patMedInhosp)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
æ£æ¥æ£éªè®°å½å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody PatMedInspection patMedInspection) { |
| | | startPage(); |
| | | List<PatMedInspection> list = patMedInspectionService.selectPatMedInspectionList(patMedInspection); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:add')") |
| | | @Log(title = "æ°å¢æ£è
æ£æ¥æ£éªè®°å½", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢æ£è
æ£æ¥æ£éªè®°å½") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedInspection patMedInspection) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:inspection:edit')") |
| | | @Log(title = "ä¿®æ¹æ£è
æ£æ¥æ£éªè®°å½", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹æ£è
æ£æ¥æ£éªè®°å½") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedInspection patMedInspection) { |
| | | return toAjax(patMedInspectionService.updatePatMedInspection(patMedInspection)); |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @Api("æ£è
ææ¯è®°å½") |
| | | @RestController |
| | | @RequestMapping("/smartor/operation") |
| | | public class PatMedOperationController extends BaseController |
| | | { |
| | | public class PatMedOperationController extends BaseController { |
| | | @Autowired |
| | | private IPatMedOperationService patMedOperationService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
ææ¯è®°å½å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedOperation patMedOperation) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody PatMedOperation patMedOperation) { |
| | | //startPage(); |
| | | PageUtils.startPageByPost(patMedOperation.getPageNum(), patMedOperation.getPageSize()); |
| | | List<PatMedOperation> list = patMedOperationService.selectPatMedOperationList(patMedOperation); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:export')") |
| | | @Log(title = "æ£è
ææ¯è®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedOperation patMedOperation) |
| | | { |
| | | public void export(HttpServletResponse response, PatMedOperation patMedOperation) { |
| | | List<PatMedOperation> list = patMedOperationService.selectPatMedOperationList(patMedOperation); |
| | | ExcelUtil<PatMedOperation> util = new ExcelUtil<PatMedOperation>(PatMedOperation.class); |
| | | util.exportExcel(response, list, "æ£è
ææ¯è®°å½æ°æ®"); |
| | |
| | | @ApiOperation("è·åæ£è
ææ¯è®°å½è¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedOperationService.selectPatMedOperationById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ°å¢æ£è
ææ¯è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:add')") |
| | | @Log(title = "æ£è
ææ¯è®°å½", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedOperation patMedOperation) |
| | | { |
| | | public AjaxResult add(@RequestBody PatMedOperation patMedOperation) { |
| | | return toAjax(patMedOperationService.insertPatMedOperation(patMedOperation)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
ææ¯è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation:edit')") |
| | | @Log(title = "æ£è
ææ¯è®°å½", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedOperation patMedOperation) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatMedOperation patMedOperation) { |
| | | return toAjax(patMedOperationService.updatePatMedOperation(patMedOperation)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å 餿£è
ææ¯è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:operation: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(patMedOperationService.deletePatMedOperationByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @Api("æ£è
æ£æ¥æ£éªè®°å½å") |
| | | @RestController |
| | | @RequestMapping("/smartor/item") |
| | | public class PatMedOperationItemController extends BaseController |
| | | { |
| | | public class PatMedOperationItemController extends BaseController { |
| | | @Autowired |
| | | private IPatMedOperationItemService patMedOperationItemService; |
| | | |
| | |
| | | @ApiOperation("æ¥è¯¢æ£è
æ£æ¥æ£éªè®°å½åå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedOperationItem patMedOperationItem) |
| | | { |
| | | public TableDataInfo list(PatMedOperationItem patMedOperationItem) { |
| | | startPage(); |
| | | List<PatMedOperationItem> list = patMedOperationItemService.selectPatMedOperationItemList(patMedOperationItem); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item:export')") |
| | | @Log(title = "æ£è
æ£æ¥æ£éªè®°å½å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedOperationItem patMedOperationItem) |
| | | { |
| | | public void export(HttpServletResponse response, PatMedOperationItem patMedOperationItem) { |
| | | List<PatMedOperationItem> list = patMedOperationItemService.selectPatMedOperationItemList(patMedOperationItem); |
| | | ExcelUtil<PatMedOperationItem> util = new ExcelUtil<PatMedOperationItem>(PatMedOperationItem.class); |
| | | util.exportExcel(response, list, "æ£è
æ£æ¥æ£éªè®°å½åæ°æ®"); |
| | |
| | | @ApiOperation("è·åæ£è
æ£æ¥æ£éªè®°å½å详ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedOperationItemService.selectPatMedOperationItemById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ°å¢æ£è
æ£æ¥æ£éªè®°å½å") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item:add')") |
| | | @Log(title = "æ£è
æ£æ¥æ£éªè®°å½å", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedOperationItem patMedOperationItem) |
| | | { |
| | | public AjaxResult add(@RequestBody PatMedOperationItem patMedOperationItem) { |
| | | return toAjax(patMedOperationItemService.insertPatMedOperationItem(patMedOperationItem)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
æ£æ¥æ£éªè®°å½å") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item:edit')") |
| | | @Log(title = "æ£è
æ£æ¥æ£éªè®°å½å", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedOperationItem patMedOperationItem) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatMedOperationItem patMedOperationItem) { |
| | | return toAjax(patMedOperationItemService.updatePatMedOperationItem(patMedOperationItem)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å 餿£è
æ£æ¥æ£éªè®°å½å") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item: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(patMedOperationItemService.deletePatMedOperationItemByIds(ids)); |
| | | } |
| | | } |
| | |
| | | import java.util.Map; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | |
| | | * æ¥è¯¢æ£è
é¨è¯è®°å½å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectPatMedOuthospList") |
| | | @ApiOperation("æ¥è¯¢æ£è
é¨è¯è®°å½å表") |
| | | public TableDataInfo selectPatMedOuthosplist(@RequestBody PatMedOuthosp patMedOuthosp) { |
| | |
| | | /** |
| | | * æ¥è¯¢æ£è
é¨è¯è®°å½å表 |
| | | */ |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectPatMedOuthospCount") |
| | | @ApiOperation("æ¥è¯¢é¨è¯çç
人次å人æ°") |
| | | public AjaxResult selectPatMedOuthospCount(@RequestBody PatMedReq patMedReq) { |
| | |
| | | @ApiOperation("æ°å¢æ£è
é¨è¯è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:add')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedOuthosp patMedOuthosp) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
é¨è¯è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:edit')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedOuthosp patMedOuthosp) { |
| | | return toAjax(patMedOuthospService.updatePatMedOuthosp(patMedOuthosp)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @Api("æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼") |
| | | @RestController |
| | | @RequestMapping("/smartor/provisional") |
| | | public class PatMedOuthospProvisionalController extends BaseController |
| | | { |
| | | public class PatMedOuthospProvisionalController extends BaseController { |
| | | @Autowired |
| | | private IPatMedOuthospProvisionalService patMedOuthospProvisionalService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody PatMedOuthospProvisional patMedOuthospProvisional) { |
| | | startPage(); |
| | | List<PatMedOuthospProvisional> list = patMedOuthospProvisionalService.selectPatMedOuthospProvisionalList(patMedOuthospProvisional); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:export')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | public void export(HttpServletResponse response, PatMedOuthospProvisional patMedOuthospProvisional) { |
| | | List<PatMedOuthospProvisional> list = patMedOuthospProvisionalService.selectPatMedOuthospProvisionalList(patMedOuthospProvisional); |
| | | ExcelUtil<PatMedOuthospProvisional> util = new ExcelUtil<PatMedOuthospProvisional>(PatMedOuthospProvisional.class); |
| | | util.exportExcel(response, list, "æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼æ°æ®"); |
| | |
| | | @ApiOperation("è·åæ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼è¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedOuthospProvisionalService.selectPatMedOuthospProvisionalById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ°å¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:add')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | public AjaxResult add(@RequestBody PatMedOuthospProvisional patMedOuthospProvisional) { |
| | | return toAjax(patMedOuthospProvisionalService.insertPatMedOuthospProvisional(patMedOuthospProvisional)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:edit')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatMedOuthospProvisional patMedOuthospProvisional) { |
| | | return toAjax(patMedOuthospProvisionalService.updatePatMedOuthospProvisional(patMedOuthospProvisional)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å 餿£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional: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(patMedOuthospProvisionalService.deletePatMedOuthospProvisionalByIds(ids)); |
| | | } |
| | | } |
| | |
| | | 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; |
| | |
| | | @Api(description = "æ£è
使£è®°å½") |
| | | @RestController |
| | | @RequestMapping("/smartor/patphysical") |
| | | public class PatMedPhysicalController extends BaseController |
| | | { |
| | | public class PatMedPhysicalController extends BaseController { |
| | | @Autowired |
| | | private IPatMedPhysicalService patMedPhysicalService; |
| | | |
| | |
| | | */ |
| | | @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()); |
| | |
| | | //@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, "æ£è
使£è®°å½æ°æ®"); |
| | |
| | | @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)); |
| | | } |
| | | |
| | |
| | | @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)); |
| | | } |
| | | |
| | |
| | | @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)); |
| | | } |
| | | |
| | |
| | | @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)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @ApiOperation("æ°å¢æ£è
æå·è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:add')") |
| | | @Log(title = "æ£è
æå·è®°å½", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedRegistration patMedRegistration) { |
| | | return toAjax(patMedRegistrationService.insertPatMedRegistration(patMedRegistration)); |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
æå·è®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:edit')") |
| | | @Log(title = "æ£è
æå·è®°å½", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedRegistration patMedRegistration) { |
| | | return toAjax(patMedRegistrationService.updatePatMedRegistration(patMedRegistration)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | |
| | | /** |
| | | * æ£è
ä½éè®°å½Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-07 |
| | | */ |
| | | @Api(description = "æ£è
ä½éè®°å½") |
| | | @RestController |
| | | @RequestMapping("/system/weight") |
| | | public class PatMedWeightController extends BaseController |
| | | { |
| | | public class PatMedWeightController extends BaseController { |
| | | @Autowired |
| | | private IPatMedWeightService patMedWeightService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
ä½éè®°å½å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedWeight patMedWeight) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody PatMedWeight patMedWeight) { |
| | | startPage(); |
| | | List<PatMedWeight> list = patMedWeightService.selectPatMedWeightList(patMedWeight); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:export')") |
| | | @Log(title = "æ£è
ä½éè®°å½", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedWeight patMedWeight) |
| | | { |
| | | public void export(HttpServletResponse response, PatMedWeight patMedWeight) { |
| | | List<PatMedWeight> list = patMedWeightService.selectPatMedWeightList(patMedWeight); |
| | | ExcelUtil<PatMedWeight> util = new ExcelUtil<PatMedWeight>(PatMedWeight.class); |
| | | util.exportExcel(response, list, "æ£è
ä½éè®°å½æ°æ®"); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:query')") |
| | | @ApiImplicitParam(name = "getInfo", value = "主é®ID", dataType = "long", dataTypeClass = Long.class) |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedWeightService.selectPatMedWeightById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ°å¢æ£è
ä½éè®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:add')") |
| | | @Log(title = "æ£è
ä½éè®°å½", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedWeight patMedWeight) |
| | | { |
| | | public AjaxResult add(@RequestBody PatMedWeight patMedWeight) { |
| | | return toAjax(patMedWeightService.insertPatMedWeight(patMedWeight)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
ä½éè®°å½") |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:edit')") |
| | | @Log(title = "ä¿®æ¹æ£è
ä½éè®°å½", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedWeight patMedWeight) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatMedWeight patMedWeight) { |
| | | return toAjax(patMedWeightService.updatePatMedWeight(patMedWeight)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:weight:remove')") |
| | | @Log(title = "å 餿£è
ä½éè®°å½", businessType = BusinessType.DELETE) |
| | | @ApiImplicitParam(name = "remove", value = "主é®ID", dataType = "long", dataTypeClass = Array.class) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patMedWeightService.deletePatMedWeightByIds(ids)); |
| | | } |
| | | } |
| | |
| | | import java.util.List; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
满æåº¦å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:satisfaction:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody PatSatisfaction patSatisfaction) { |
| | | PageUtils.startPageByPost(patSatisfaction.getPageNum(), patSatisfaction.getPageSize()); |
| | | List<PatSatisfaction> list = patSatisfactionService.selectPatSatisfactionList(patSatisfaction); |
| | |
| | | patSatisfactionService.selectPatSatisfactionList(patSatisfaction); |
| | | } |
| | | }); |
| | | return getDataTable2(total,list); |
| | | return getDataTable2(total, list); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperation("æ°å¢æ£è
满æåº¦") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:satisfaction:add')") |
| | | @Log(title = "æ£è
满æåº¦", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatSatisfaction patSatisfaction) { |
| | | LoginUser loginUser = getLoginUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹æ£è
满æåº¦") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:satisfaction:edit')") |
| | | @Log(title = "æ£è
满æåº¦", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatSatisfaction patSatisfaction) { |
| | | LoginUser loginUser = getLoginUser(); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @Api("ä¸ç
æ£è
åç±»") |
| | | @RestController |
| | | @RequestMapping("/smartor/patSpeciallistCategory") |
| | | public class PatSpeciallistCategoryController extends BaseController |
| | | { |
| | | public class PatSpeciallistCategoryController extends BaseController { |
| | | @Autowired |
| | | private IPatSpeciallistCategoryService patSpeciallistCategoryService; |
| | | |
| | |
| | | @ApiOperation("æ¥è¯¢ä¸ç
æ£è
åç±»å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatSpeciallistCategory patSpeciallistCategory) |
| | | { |
| | | public TableDataInfo list(PatSpeciallistCategory patSpeciallistCategory) { |
| | | startPage(); |
| | | List<PatSpeciallistCategory> list = patSpeciallistCategoryService.selectPatSpeciallistCategoryList(patSpeciallistCategory); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:category:export')") |
| | | @Log(title = "ä¸ç
æ£è
åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatSpeciallistCategory patSpeciallistCategory) |
| | | { |
| | | public void export(HttpServletResponse response, PatSpeciallistCategory patSpeciallistCategory) { |
| | | List<PatSpeciallistCategory> list = patSpeciallistCategoryService.selectPatSpeciallistCategoryList(patSpeciallistCategory); |
| | | ExcelUtil<PatSpeciallistCategory> util = new ExcelUtil<PatSpeciallistCategory>(PatSpeciallistCategory.class); |
| | | util.exportExcel(response, list, "ä¸ç
æ£è
åç±»æ°æ®"); |
| | |
| | | @ApiOperation("è·åä¸ç
æ£è
å类详ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patSpeciallistCategoryService.selectPatSpeciallistCategoryById(id)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:category:add')") |
| | | @Log(title = "ä¸ç
æ£è
åç±»", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatSpeciallistCategory patSpeciallistCategory) |
| | | { |
| | | public AjaxResult add(@RequestBody PatSpeciallistCategory patSpeciallistCategory) { |
| | | return toAjax(patSpeciallistCategoryService.insertPatSpeciallistCategory(patSpeciallistCategory)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹ä¸ç
æ£è
åç±»") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:edit')") |
| | | @Log(title = "ä¸ç
æ£è
åç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatSpeciallistCategory patSpeciallistCategory) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatSpeciallistCategory patSpeciallistCategory) { |
| | | return toAjax(patSpeciallistCategoryService.updatePatSpeciallistCategory(patSpeciallistCategory)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å é¤ä¸ç
æ£è
åç±»") |
| | | //@PreAuthorize("@ss.hasPermi('system:category: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(patSpeciallistCategoryService.deletePatSpeciallistCategoryByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @Api(description = "ä¸ç
æ£è
") |
| | | @RestController |
| | | @RequestMapping("/smartor/speciallist") |
| | | public class PatSpeciallistController extends BaseController |
| | | { |
| | | public class PatSpeciallistController extends BaseController { |
| | | @Autowired |
| | | private IPatSpeciallistService patSpeciallistService; |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:list')") |
| | | @ApiOperation("æ¥è¯¢ä¸ç
æ£è
å表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatSpeciallist patSpeciallist) |
| | | { |
| | | public TableDataInfo list(PatSpeciallist patSpeciallist) { |
| | | startPage(); |
| | | List<PatSpeciallist> list = patSpeciallistService.selectPatSpeciallistList(patSpeciallist); |
| | | return getDataTable(list); |
| | |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("导åºä¸ç
æ£è
å表") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatSpeciallist patSpeciallist) |
| | | { |
| | | public void export(HttpServletResponse response, PatSpeciallist patSpeciallist) { |
| | | List<PatSpeciallist> list = patSpeciallistService.selectPatSpeciallistList(patSpeciallist); |
| | | ExcelUtil<PatSpeciallist> util = new ExcelUtil<PatSpeciallist>(PatSpeciallist.class); |
| | | util.exportExcel(response, list, "ä¸ç
æ£è
æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patSpeciallistService.selectPatSpeciallistById(id)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:add')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢ä¸ç
æ£è
") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatSpeciallist patSpeciallist) |
| | | { |
| | | public AjaxResult add(@RequestBody PatSpeciallist patSpeciallist) { |
| | | return toAjax(patSpeciallistService.insertPatSpeciallist(patSpeciallist)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:edit')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹ä¸ç
æ£è
") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatSpeciallist patSpeciallist) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatSpeciallist patSpeciallist) { |
| | | return toAjax(patSpeciallistService.updatePatSpeciallist(patSpeciallist)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:remove')") |
| | | @Log(title = "ä¸ç
æ£è
", businessType = BusinessType.DELETE) |
| | | @ApiOperation("å é¤ä¸ç
æ£è
") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patSpeciallistService.deletePatSpeciallistByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * æ¥è¯¢æ¹æ¡ç»æ¡è§åå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemeAutofinshrule schemeAutofinshrule) { |
| | | startPage(); |
| | | List<SchemeAutofinshrule> list = schemeAutofinshruleService.selectSchemeAutofinshruleList(schemeAutofinshrule); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:add')") |
| | | @Log(title = "æ¹æ¡ç»æ¡è§å", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeAutofinshrule schemeAutofinshrule) { |
| | | return toAjax(schemeAutofinshruleService.insertSchemeAutofinshrule(schemeAutofinshrule)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:edit')") |
| | | @Log(title = "æ¹æ¡ç»æ¡è§å", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeAutofinshrule schemeAutofinshrule) { |
| | | return toAjax(schemeAutofinshruleService.updateSchemeAutofinshrule(schemeAutofinshrule)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * æ¹æ¡åç±»Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/schemecategory") |
| | | public class SchemeCategoryController extends BaseController |
| | | { |
| | | public class SchemeCategoryController extends BaseController { |
| | | @Autowired |
| | | private ISchemeCategoryService schemeCategoryService; |
| | | |
| | |
| | | * æ¥è¯¢æ¹æ¡åç±»å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeCategory schemeCategory) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemeCategory schemeCategory) { |
| | | startPage(); |
| | | List<SchemeCategory> list = schemeCategoryService.selectSchemeCategoryList(schemeCategory); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:export')") |
| | | @Log(title = "æ¹æ¡åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeCategory schemeCategory) |
| | | { |
| | | public void export(HttpServletResponse response, SchemeCategory schemeCategory) { |
| | | List<SchemeCategory> list = schemeCategoryService.selectSchemeCategoryList(schemeCategory); |
| | | ExcelUtil<SchemeCategory> util = new ExcelUtil<SchemeCategory>(SchemeCategory.class); |
| | | util.exportExcel(response, list, "æ¹æ¡åç±»æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(schemeCategoryService.selectSchemeCategoryById(id)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:add')") |
| | | @Log(title = "æ¹æ¡åç±»", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeCategory schemeCategory) |
| | | { |
| | | public AjaxResult add(@RequestBody SchemeCategory schemeCategory) { |
| | | return toAjax(schemeCategoryService.insertSchemeCategory(schemeCategory)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory:edit')") |
| | | @Log(title = "æ¹æ¡åç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeCategory schemeCategory) |
| | | { |
| | | public AjaxResult edit(@RequestBody SchemeCategory schemeCategory) { |
| | | return toAjax(schemeCategoryService.updateSchemeCategory(schemeCategory)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecategory: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(schemeCategoryService.deleteSchemeCategoryByIds(ids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * æå¡æ¹æ¡åºController |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | |
| | | * æ¥è¯¢æå¡æ¹æ¡åºå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemeLocallibrary schemeLocallibrary) |
| | | { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:add')") |
| | | @Log(title = "æå¡æ¹æ¡åº", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeLocallibrary schemeLocallibrary) |
| | | { |
| | | return toAjax(schemeLocallibraryService.insertSchemeLocallibrary(schemeLocallibrary)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:edit')") |
| | | @Log(title = "æå¡æ¹æ¡åº", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeLocallibrary schemeLocallibrary) |
| | | { |
| | | return toAjax(schemeLocallibraryService.updateSchemeLocallibrary(schemeLocallibrary)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * 管ç计åController |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | |
| | | * æ¥è¯¢ç®¡ç计åå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeplan:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemePlan schemePlan) |
| | | { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeplan:add')") |
| | | @Log(title = "管ç计å", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemePlan schemePlan) |
| | | { |
| | | return toAjax(schemePlanService.insertSchemePlan(schemePlan)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemeplan:edit')") |
| | | @Log(title = "管ç计å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemePlan schemePlan) |
| | | { |
| | | return toAjax(schemePlanService.updateSchemePlan(schemePlan)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * æ¹æ¡ä»»å¡Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | |
| | | * æ¥è¯¢æ¹æ¡ä»»å¡å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetask:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemeTask schemeTask) |
| | | { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetask:add')") |
| | | @Log(title = "æ¹æ¡ä»»å¡", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTask schemeTask) |
| | | { |
| | | return toAjax(schemeTaskService.insertSchemeTask(schemeTask)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetask:edit')") |
| | | @Log(title = "æ¹æ¡ä»»å¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTask schemeTask) |
| | | { |
| | | return toAjax(schemeTaskService.updateSchemeTask(schemeTask)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * æ¹æ¡ä»»å¡é
ç½®Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | |
| | | * æ¥è¯¢æ¹æ¡ä»»å¡é
ç½®å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemeTaskconfig schemeTaskconfig) |
| | | { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:add')") |
| | | @Log(title = "æ¹æ¡ä»»å¡é
ç½®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTaskconfig schemeTaskconfig) |
| | | { |
| | | return toAjax(schemeTaskconfigService.insertSchemeTaskconfig(schemeTaskconfig)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskconfig:edit')") |
| | | @Log(title = "æ¹æ¡ä»»å¡é
ç½®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTaskconfig schemeTaskconfig) |
| | | { |
| | | return toAjax(schemeTaskconfigService.updateSchemeTaskconfig(schemeTaskconfig)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * æ¥è¯¢æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemeTaskrecordCalldetail schemeTaskrecordCalldetail) |
| | | { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:add')") |
| | | @Log(title = "æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTaskrecordCalldetail schemeTaskrecordCalldetail) |
| | | { |
| | | return toAjax(schemeTaskrecordCalldetailService.insertSchemeTaskrecordCalldetail(schemeTaskrecordCalldetail)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemecalldetail:edit')") |
| | | @Log(title = "æ¹æ¡AIå¤å¼ä»»å¡è¯¦æ
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTaskrecordCalldetail schemeTaskrecordCalldetail) |
| | | { |
| | | return toAjax(schemeTaskrecordCalldetailService.updateSchemeTaskrecordCalldetail(schemeTaskrecordCalldetail)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * æ¹æ¡ä»»å¡å¤çè®°å½Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | |
| | | * æ¥è¯¢æ¹æ¡ä»»å¡å¤çè®°å½å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemeTaskrecord schemeTaskrecord) |
| | | { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:add')") |
| | | @Log(title = "æ¹æ¡ä»»å¡å¤çè®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTaskrecord schemeTaskrecord) |
| | | { |
| | | return toAjax(schemeTaskrecordService.insertSchemeTaskrecord(schemeTaskrecord)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrecord:edit')") |
| | | @Log(title = "æ¹æ¡ä»»å¡å¤çè®°å½", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTaskrecord schemeTaskrecord) |
| | | { |
| | | return toAjax(schemeTaskrecordService.updateSchemeTaskrecord(schemeTaskrecord)); |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * æ¥è¯¢æ¹æ¡ä»»å¡éåé
ç½®å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemeTaskrepeatconfig schemeTaskrepeatconfig) { |
| | | startPage(); |
| | | List<SchemeTaskrepeatconfig> list = schemeTaskrepeatconfigService.selectSchemeTaskrepeatconfigList(schemeTaskrepeatconfig); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:add')") |
| | | @Log(title = "æ¹æ¡ä»»å¡éåé
ç½®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTaskrepeatconfig schemeTaskrepeatconfig) { |
| | | return toAjax(schemeTaskrepeatconfigService.insertSchemeTaskrepeatconfig(schemeTaskrepeatconfig)); |
| | | } |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetaskrepeatconfig:edit')") |
| | | @Log(title = "æ¹æ¡ä»»å¡éåé
ç½®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTaskrepeatconfig schemeTaskrepeatconfig) { |
| | | return toAjax(schemeTaskrepeatconfigService.updateSchemeTaskrepeatconfig(schemeTaskrepeatconfig)); |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * æ¥è¯¢æ¹æ¡è§¦åæ¡ä»¶è§åå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemeTriggerrule schemeTriggerrule) |
| | | { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:add')") |
| | | @Log(title = "æ¹æ¡è§¦åæ¡ä»¶è§å", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTriggerrule schemeTriggerrule) |
| | | { |
| | | return toAjax(schemeTriggerruleService.insertSchemeTriggerrule(schemeTriggerrule)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:edit')") |
| | | @Log(title = "æ¹æ¡è§¦åæ¡ä»¶è§å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTriggerrule schemeTriggerrule) |
| | | { |
| | | return toAjax(schemeTriggerruleService.updateSchemeTriggerrule(schemeTriggerrule)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * æ¹æ¡è§¦ååºæ¯Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/schemetriggerscene") |
| | | public class SchemeTriggersceneController extends BaseController |
| | | { |
| | | public class SchemeTriggersceneController extends BaseController { |
| | | @Autowired |
| | | private ISchemeTriggersceneService schemeTriggersceneService; |
| | | |
| | |
| | | * æ¥è¯¢æ¹æ¡è§¦ååºæ¯å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeTriggerscene schemeTriggerscene) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SchemeTriggerscene schemeTriggerscene) { |
| | | startPage(); |
| | | List<SchemeTriggerscene> list = schemeTriggersceneService.selectSchemeTriggersceneList(schemeTriggerscene); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:export')") |
| | | @Log(title = "æ¹æ¡è§¦ååºæ¯", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeTriggerscene schemeTriggerscene) |
| | | { |
| | | public void export(HttpServletResponse response, SchemeTriggerscene schemeTriggerscene) { |
| | | List<SchemeTriggerscene> list = schemeTriggersceneService.selectSchemeTriggersceneList(schemeTriggerscene); |
| | | ExcelUtil<SchemeTriggerscene> util = new ExcelUtil<SchemeTriggerscene>(SchemeTriggerscene.class); |
| | | util.exportExcel(response, list, "æ¹æ¡è§¦ååºæ¯æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(schemeTriggersceneService.selectSchemeTriggersceneById(id)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:add')") |
| | | @Log(title = "æ¹æ¡è§¦ååºæ¯", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTriggerscene schemeTriggerscene) |
| | | { |
| | | public AjaxResult add(@RequestBody SchemeTriggerscene schemeTriggerscene) { |
| | | return toAjax(schemeTriggersceneService.insertSchemeTriggerscene(schemeTriggerscene)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene:edit')") |
| | | @Log(title = "æ¹æ¡è§¦ååºæ¯", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTriggerscene schemeTriggerscene) |
| | | { |
| | | public AjaxResult edit(@RequestBody SchemeTriggerscene schemeTriggerscene) { |
| | | return toAjax(schemeTriggersceneService.updateSchemeTriggerscene(schemeTriggerscene)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerscene: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(schemeTriggersceneService.deleteSchemeTriggersceneByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @Api("é访æå¡åé夿") |
| | | @RestController |
| | | @RequestMapping("/smartor/check") |
| | | public class ServiceCheckController extends BaseController |
| | | { |
| | | public class ServiceCheckController extends BaseController { |
| | | @Autowired |
| | | private IServiceCheckService serviceCheckService; |
| | | |
| | |
| | | @ApiOperation("æ¥è¯¢é访æå¡åé夿å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceCheck serviceCheck) |
| | | { |
| | | public TableDataInfo list(ServiceCheck serviceCheck) { |
| | | startPage(); |
| | | List<ServiceCheck> list = serviceCheckService.selectServiceCheckList(serviceCheck); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:export')") |
| | | @Log(title = "é访æå¡åé夿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceCheck serviceCheck) |
| | | { |
| | | public void export(HttpServletResponse response, ServiceCheck serviceCheck) { |
| | | List<ServiceCheck> list = serviceCheckService.selectServiceCheckList(serviceCheck); |
| | | ExcelUtil<ServiceCheck> util = new ExcelUtil<ServiceCheck>(ServiceCheck.class); |
| | | util.exportExcel(response, list, "é访æå¡åéå¤ææ°æ®"); |
| | |
| | | @ApiOperation("è·åé访æå¡åéå¤æè¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceCheckService.selectServiceCheckById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ°å¢é访æå¡åé夿") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:add')") |
| | | @Log(title = "é访æå¡åé夿", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceCheck serviceCheck) |
| | | { |
| | | public AjaxResult add(@RequestBody ServiceCheck serviceCheck) { |
| | | return toAjax(serviceCheckService.insertServiceCheck(serviceCheck)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹é访æå¡åé夿") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:edit')") |
| | | @Log(title = "é访æå¡åé夿", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceCheck serviceCheck) |
| | | { |
| | | public AjaxResult edit(@RequestBody ServiceCheck serviceCheck) { |
| | | return toAjax(serviceCheckService.updateServiceCheck(serviceCheck)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å é¤é访æå¡åé夿") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check: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(serviceCheckService.deleteServiceCheckByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ°å¢ä¸»é®") |
| | | @Log(title = "主é®", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceOutPath serviceOutPath) { |
| | | return toAjax(serviceOutPathService.insertServiceOutPath(serviceOutPath)); |
| | |
| | | @ApiOperation("ä¿®æ¹ä¸»é®") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:path:edit')") |
| | | @Log(title = "主é®", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceOutPath serviceOutPath) { |
| | | return toAjax(serviceOutPathService.updateServiceOutPath(serviceOutPath)); |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | |
| | | @ApiOperation("æ°å¢ã请填ååè½åç§°ã") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:temp:add')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServicePatientTemp servicePatientTemp) { |
| | | return toAjax(servicePatientTempService.insertServicePatientTemp(servicePatientTemp)); |
| | | } |
| | |
| | | @ApiOperation("ä¿®æ¹ã请填ååè½åç§°ã") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:temp:edit')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServicePatientTemp servicePatientTemp) { |
| | | return toAjax(servicePatientTempService.updateServicePatientTemp(servicePatientTemp)); |
| | | } |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:add')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢ä»»å¡é®å·é®é¢é项") |
| | | @PostMapping("/add") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceSubtaskAnswer serviceSubtaskAnswer) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | serviceSubtaskAnswer.setOrgid(user.getOrgid()); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:answer:edit')") |
| | | @Log(title = "ä»»å¡é®å·é®é¢é项", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹ä»»å¡é®å·é®é¢é项") |
| | | @PostMapping("/edit") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceSubtaskAnswer serviceSubtaskAnswer) { |
| | | log.info("ãsaveQuestionCache-----editãçå
¥å为ï¼{}", serviceSubtaskAnswer); |
| | | return toAjax(serviceSubtaskAnswerService.updateServiceSubtaskAnswer(serviceSubtaskAnswer)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.constant.CacheConstants; |
| | | import com.ruoyi.common.constant.Constants; |
| | |
| | | * ç»è®¡éè®¿æ°æ® -- cacheç |
| | | */ |
| | | @ApiOperation("ç»è®¡éè®¿æ°æ®") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/patItemCount") |
| | | public Map<String, Object> patItemCount(@RequestBody ServiceSubtaskVO serviceSubtaskVO) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = null; |
| | | Long userId = null; |
| | | if(ObjectUtils.isNotEmpty(loginUser)){ |
| | | if (ObjectUtils.isNotEmpty(loginUser)) { |
| | | user = loginUser.getUser(); |
| | | if(ObjectUtils.isNotEmpty(user)){ |
| | | if (ObjectUtils.isNotEmpty(user)) { |
| | | userId = user.getUserId(); |
| | | } |
| | | } |
| | | if(ObjectUtils.isNotEmpty(userId)){ |
| | | if (ObjectUtils.isNotEmpty(userId)) { |
| | | redisMap = redisCache.getCacheObject(userId + "patItemCount"); |
| | | //è®°å½æ¯å¦æå¯ç¨ç¼å |
| | | Boolean redisFlag = false; |
| | | ServiceSubtaskVO oldCondition = null; |
| | | if(MapUtils.isNotEmpty(redisMap)){ |
| | | oldCondition = (ServiceSubtaskVO)redisMap.get("searchCondition"); |
| | | if (MapUtils.isNotEmpty(redisMap)) { |
| | | oldCondition = (ServiceSubtaskVO) redisMap.get("searchCondition"); |
| | | // æ¯è¾æ¥è¯¢æ¡ä»¶æ¯å¦ä¸è´ |
| | | if(ObjectUtils.isNotEmpty(oldCondition) && |
| | | isSameCondition(oldCondition, serviceSubtaskVO)){ |
| | | if (ObjectUtils.isNotEmpty(oldCondition) && isSameCondition(oldCondition, serviceSubtaskVO)) { |
| | | // æ¡ä»¶ä¸è´ï¼ä½¿ç¨ç¼å |
| | | redisFlag = true; |
| | | map = redisMap; |
| | |
| | | } |
| | | |
| | | // å¦ææ²¡æç¼åæè
æ¡ä»¶ä¸ä¸è´ï¼éæ°æ¥è¯¢ |
| | | if(!redisFlag){ |
| | | if (!redisFlag) { |
| | | map = serviceSubtaskService.patItemCount(serviceSubtaskVO); |
| | | map.put("searchCondition", serviceSubtaskVO); |
| | | redisCache.setCacheObject(userId + "patItemCount", map, 120, TimeUnit.MINUTES); |
| | |
| | | */ |
| | | private boolean isSameCondition(ServiceSubtaskVO oldCondition, ServiceSubtaskVO newCondition) { |
| | | // 使ç¨ReflectUtilsçéç¨æ¹æ³æ¯è¾ï¼æé¤åé¡µåæ°çæ å
³å段 |
| | | return ReflectUtils.equalsAllFields( |
| | | oldCondition, |
| | | newCondition, |
| | | return ReflectUtils.equalsAllFields(oldCondition, newCondition, |
| | | // æé¤çåæ®µï¼å页忰ãåºååIDãæ¶é´æ³ç |
| | | "pageNum", "pageSize", "serialVersionUID", |
| | | "createBy", "createTime", "updateBy", "updateTime", |
| | | "searchValue", "params" |
| | | ); |
| | | "pageNum", "pageSize", "serialVersionUID", "createBy", "createTime", "updateBy", "updateTime", "searchValue", "params"); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
é访信æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('system:taskcall:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/patItemByCondition") |
| | | public TableDataInfo patItemByCondition(@RequestBody ServiceSubtaskVO serviceSubtaskVO) { |
| | | List<ServiceSubtask> serviceSubtaskList = null; |
| | |
| | | * éè®¿æ°æ®æ¥è¯¢ |
| | | */ |
| | | @Log(title = "éè®¿æ°æ®æ¥è¯¢", businessType = BusinessType.EXPORT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/querySubtaskList") |
| | | public AjaxResult querySubtaskList(@RequestBody ServiceSubtaskVO serviceSubtaskVO) { |
| | | PageUtils.startPageByPost(serviceSubtaskVO.getPageNum(), serviceSubtaskVO.getPageSize()); |
| | |
| | | * æ ¹æ®ç¾ç
æ¨¡ç³æ¥è¯¢ |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:taskcall:query')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping(value = "/getSubtaskByDiagname") |
| | | public Map<String, Object> getSubtaskByDiagname(@RequestBody ServiceSubtask serviceSubtask) { |
| | | LoginUser loginUser = getLoginUser(); |
| | |
| | | * é访åå²è®°å½å¯¼åº |
| | | */ |
| | | @Log(title = "é访åå²è®°å½å¯¼åº", businessType = BusinessType.EXPORT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/getSubtaskByDiagnameExport") |
| | | public void getSubtaskByDiagnameExport(HttpServletResponse response, ServiceSubtask serviceSubtask) { |
| | | LoginUser loginUser = getLoginUser(); |
| | |
| | | serviceSubtask.setPageNum(PageUtils.getOffset(serviceSubtask.getPageNum(), serviceSubtask.getPageSize())); |
| | | List<ServiceSubtask> subtaskList = serviceSubtaskService.selectServiceSubtaskByDiagname(serviceSubtask); |
| | | List<ServiceSubtaskDiagname> serviceSubtaskDiagnameList = new ArrayList<>(); |
| | | if (CollectionUtils.isNotEmpty(subtaskList)) serviceSubtaskDiagnameList = serviceSubtaskService.convertToDiagnameList(subtaskList); |
| | | if (CollectionUtils.isNotEmpty(subtaskList)) |
| | | serviceSubtaskDiagnameList = serviceSubtaskService.convertToDiagnameList(subtaskList); |
| | | ExcelUtil<ServiceSubtaskDiagname> util = new ExcelUtil<ServiceSubtaskDiagname>(ServiceSubtaskDiagname.class); |
| | | |
| | | if (active.equals("ls") || active.equals("druid")) { |
| | |
| | | @ApiOperation("æ°å¢æä¿®æ¹å é¤åä¸ä»»å¡") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @Log(title = "åä¸ä»»å¡ï¼é访ï¼", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/insertOrUpdateTask") |
| | | public AjaxResult insertOrUpdateHeTask(@RequestBody ServiceTaskVO ivrTaskVO) { |
| | | log.info("insertOrUpdateHeTaskçå
¥å为ï¼{}", ivrTaskVO); |
| | |
| | | } |
| | | |
| | | @ApiOperation("ä¿®æ¹åä»»å¡") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody ServiceSubtask serviceSubtask) { |
| | | serviceSubtask.setUpdateBy(getLoginUser().getUser().getNickName()); |
| | |
| | | } |
| | | |
| | | @ApiOperation("æ°å¢åä»»å¡") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/addSubTask") |
| | | public AjaxResult addSubTask(@RequestBody ServiceSubtask serviceSubtask) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | } |
| | | |
| | | @ApiOperation("æ£è
忬¡é访") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/addSubTaskAgain") |
| | | public AjaxResult addSubTaskAgain(@RequestBody ServiceSubtask serviceSubtask) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | * æ ¹æ®æ¡ä»¶æ¥è¯¢ä»»å¡ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ ¹æ®æ¡ä»¶æ¥è¯¢ä»»å¡ä¿¡æ¯") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/queryTaskByCondition") |
| | | public AjaxResult queryTaskByCondition(@RequestBody ServiceSubtaskVO ivrTaskcallVO) { |
| | | //æ ¹æ®å
¥åæ¥è¯¢ä¿¡æ¯ |
| | |
| | | * è·åæ¯ä¸ªæçé访ãå¤è¯é |
| | | */ |
| | | @ApiOperation("è·åæ¯ä¸ªæçé访ãå¤è¯é") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/getSfFzInfoEveryMonth") |
| | | public TableDataInfo getSfFzInfoEveryMonth(@RequestBody ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | return getDataTable(serviceSubtaskService.getSfFzInfoEveryMonth(serviceSubtaskCountReq)); |
| | |
| | | * è·åé访ç»è®¡æ¯ä¾ |
| | | */ |
| | | @ApiOperation("è·åé访ç»è®¡æ¯ä¾") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/getSfStatistics") |
| | | public AjaxResult getSfStatistics(@RequestBody ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | if (CollectionUtils.isEmpty(serviceSubtaskCountReq.getServiceType())) { |
| | |
| | | * è·åé访ç»è®¡æ¯ä¾ |
| | | */ |
| | | @ApiOperation("è·åé访满æåº¦ç»è®¡") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/getSfStatisticsJoy") |
| | | public Map<String, Object> getSfStatisticsJoy(@RequestBody ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | if (CollectionUtils.isEmpty(serviceSubtaskCountReq.getServiceType())) { |
| | |
| | | * é访ç»è®¡å¯¼åº |
| | | */ |
| | | @ApiOperation("æå¡ç»è®¡æ¥è¯¢-ææ¶é´ç»´åº¦ç»è®¡åºé¢/é¨è¯éè®¿æ°æ®") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/getServiceStatistics") |
| | | public AjaxResult getServiceStatistics(@RequestBody ServiceStatisticsRequest serviceStatisticsRequest) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | * è·åé访ç»è®¡æ¯ä¾ |
| | | */ |
| | | @ApiOperation("è·åé访满æåº¦æç»") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/getSfStatisticsJoydetails") |
| | | public AjaxResult getSfStatisticsJoydetails(@RequestBody ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | if (serviceSubtaskCountReq.getLeavehospitaldistrictcodes().size() == 0 && serviceSubtaskCountReq.getDeptcodes().size() == 0) { |
| | |
| | | * è·åé访åç±»ç»è®¡æç» |
| | | */ |
| | | @ApiOperation("è·åé访åç±»ç»è®¡æç»") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/getSfStatisticsCount") |
| | | public Map<String, Object> getSfStatisticsCount(@RequestBody ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | if (CollectionUtils.isEmpty(serviceSubtaskCountReq.getServiceType())) { |
| | |
| | | PageUtils.startPageByPost(serviceSubtaskCountReq.getPageNum(), serviceSubtaskCountReq.getPageSize()); |
| | | |
| | | String configKey = serviceSubtaskCountReq.getConfigKey(); |
| | | if(StringUtils.isNotEmpty(configKey)){ |
| | | if (StringUtils.isNotEmpty(configKey)) { |
| | | String configValue = configService.selectConfigByKey(configKey); |
| | | serviceSubtaskCountReq.setConfigValue(configValue); |
| | | if(StringUtils.isEmpty(configValue)){ |
| | | String logInfo = "getSfStatisticsCount-åæ° " + configKey + " æªé
ç½®, 请é
置好åéè¯"; |
| | | if (StringUtils.isEmpty(configValue)) { |
| | | String logInfo = "getSfStatisticsCount-åæ° " + configKey + " æªé
ç½®, 请é
置好åéè¯"; |
| | | log.error(logInfo); |
| | | return error(logInfo); |
| | | } |
| | | }else { |
| | | String logInfo = "getSfStatisticsCount-åæ°configKeyæªä¼ å
¥, 请é
置好åéè¯"; |
| | | } else { |
| | | String logInfo = "getSfStatisticsCount-åæ°configKeyæªä¼ å
¥, 请é
置好åéè¯"; |
| | | log.error(logInfo); |
| | | return error(logInfo); |
| | | } |
| | |
| | | } |
| | | |
| | | @ApiOperation("è·åé访åç±»ç»è®¡æç»è¯¦æ
") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/getSfStatisticsCountDetails") |
| | | public AjaxResult getSfStatisticsCountDetails(@RequestBody ServiceSubtaskCountReq serviceSubtaskCountReq) { |
| | | if (serviceSubtaskCountReq.getLeavehospitaldistrictcodes().size() == 0 && serviceSubtaskCountReq.getDeptcodes().size() == 0) { |
| | |
| | | PageUtils.startPageByPost(serviceSubtaskCountReq.getPageNum(), serviceSubtaskCountReq.getPageSize()); |
| | | //å¤è¯ç»è®¡ |
| | | String configKey = serviceSubtaskCountReq.getConfigKey(); |
| | | if(StringUtils.isNotEmpty(configKey)){ |
| | | if (StringUtils.isNotEmpty(configKey)) { |
| | | String configValue = configService.selectConfigByKey(configKey); |
| | | if(StringUtils.isEmpty(configValue)){ |
| | | String logInfo = "getSfStatisticsCountDetails-åæ° " + configKey + " æªé
ç½®, 请é
置好åéè¯"; |
| | | if (StringUtils.isEmpty(configValue)) { |
| | | String logInfo = "getSfStatisticsCountDetails-åæ° " + configKey + " æªé
ç½®, 请é
置好åéè¯"; |
| | | log.error(logInfo); |
| | | return error(logInfo); |
| | | } |
| | | serviceSubtaskCountReq.setConfigValue(configValue); |
| | | }else { |
| | | String logInfo = "getSfStatisticsCountDetails-åæ°configKeyæªä¼ å
¥, 请é
置好åéè¯"; |
| | | } else { |
| | | String logInfo = "getSfStatisticsCountDetails-åæ°configKeyæªä¼ å
¥, 请é
置好åéè¯"; |
| | | log.error(logInfo); |
| | | return error(logInfo); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @Api("ã请填ååè½åç§°ã") |
| | | @RestController |
| | | @RequestMapping("/smartor/preachform") |
| | | public class ServiceSubtaskPreachformController extends BaseController |
| | | { |
| | | public class ServiceSubtaskPreachformController extends BaseController { |
| | | @Autowired |
| | | private IServiceSubtaskPreachformService serviceSubtaskPreachformService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ã请填ååè½åç§°ãå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) |
| | | { |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) { |
| | | startPage(); |
| | | List<ServiceSubtaskPreachform> list = serviceSubtaskPreachformService.selectServiceSubtaskPreachformList(serviceSubtaskPreachform); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:export')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceSubtaskPreachform serviceSubtaskPreachform) |
| | | { |
| | | public void export(HttpServletResponse response, ServiceSubtaskPreachform serviceSubtaskPreachform) { |
| | | List<ServiceSubtaskPreachform> list = serviceSubtaskPreachformService.selectServiceSubtaskPreachformList(serviceSubtaskPreachform); |
| | | ExcelUtil<ServiceSubtaskPreachform> util = new ExcelUtil<ServiceSubtaskPreachform>(ServiceSubtaskPreachform.class); |
| | | util.exportExcel(response, list, "ã请填ååè½åç§°ãæ°æ®"); |
| | |
| | | @ApiOperation("è·åã请填ååè½åç§°ã详ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceSubtaskPreachformService.selectServiceSubtaskPreachformById(id)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:add')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) |
| | | { |
| | | public AjaxResult add(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) { |
| | | return toAjax(serviceSubtaskPreachformService.insertServiceSubtaskPreachform(serviceSubtaskPreachform)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform:edit')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) |
| | | { |
| | | public AjaxResult edit(@RequestBody ServiceSubtaskPreachform serviceSubtaskPreachform) { |
| | | return toAjax(serviceSubtaskPreachformService.updateServiceSubtaskPreachform(serviceSubtaskPreachform)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å é¤ã请填ååè½åç§°ã") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:preachform: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(serviceSubtaskPreachformService.deleteServiceSubtaskPreachformByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ä»»å¡å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody ServiceTask serviceTask) { |
| | | PageUtils.startPageByPost(serviceTask.getPageNum(), serviceTask.getPageSize()); |
| | | // List<ServiceTask> list = serviceTaskService.selectServiceTaskList(serviceTask); |
| | |
| | | @ApiOperation("æ°å¢ä»»å¡") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:add')") |
| | | @Log(title = "è¯é³ä»»å¡", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceTask ServiceTask) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹ä»»å¡") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:ServiceTask:edit')") |
| | | @Log(title = "ä»»å¡", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceTask ServiceTask) { |
| | | return toAjax(serviceTaskService.updateServiceTask(ServiceTask)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿ç§å®¤å
³èå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskdept:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody ServiceTaskdept serviceTaskdept) { |
| | | startPage(); |
| | | List<ServiceTaskdept> list = serviceTaskdeptService.selectServiceTaskdeptList(serviceTaskdept); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @Api("è¯ææ¨¡æ¿ç§å®¤å
³è") |
| | | @RestController |
| | | @RequestMapping("/smartor/taskdiag") |
| | | public class ServiceTaskdiagController extends BaseController |
| | | { |
| | | public class ServiceTaskdiagController extends BaseController { |
| | | @Autowired |
| | | private IServiceTaskdiagService serviceTaskdiagService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿ç§å®¤å
³èå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskdiag:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ServiceTaskdiag serviceTaskdiag) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody ServiceTaskdiag serviceTaskdiag) { |
| | | startPage(); |
| | | List<ServiceTaskdiag> list = serviceTaskdiagService.selectServiceTaskdiagList(serviceTaskdiag); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskdiag:export')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceTaskdiag serviceTaskdiag) |
| | | { |
| | | public void export(HttpServletResponse response, ServiceTaskdiag serviceTaskdiag) { |
| | | List<ServiceTaskdiag> list = serviceTaskdiagService.selectServiceTaskdiagList(serviceTaskdiag); |
| | | ExcelUtil<ServiceTaskdiag> util = new ExcelUtil<ServiceTaskdiag>(ServiceTaskdiag.class); |
| | | util.exportExcel(response, list, "模æ¿ç§å®¤å
³èæ°æ®"); |
| | |
| | | @ApiOperation("è·å模æ¿ç§å®¤å
³è详ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskdiag:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceTaskdiagService.selectServiceTaskdiagById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ°å¢æ¨¡æ¿ç§å®¤å
³è") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskdiag:add')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceTaskdiag serviceTaskdiag) |
| | | { |
| | | public AjaxResult add(@RequestBody ServiceTaskdiag serviceTaskdiag) { |
| | | return toAjax(serviceTaskdiagService.insertServiceTaskdiag(serviceTaskdiag)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æ¨¡æ¿ç§å®¤å
³è") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskdiag:edit')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceTaskdiag serviceTaskdiag) |
| | | { |
| | | public AjaxResult edit(@RequestBody ServiceTaskdiag serviceTaskdiag) { |
| | | return toAjax(serviceTaskdiagService.updateServiceTaskdiag(serviceTaskdiag)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å 餿¨¡æ¿ç§å®¤å
³è") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskdiag:remove')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{id}") |
| | | public AjaxResult remove(@PathVariable Long id) |
| | | { |
| | | @GetMapping("/remove/{id}") |
| | | public AjaxResult remove(@PathVariable Long id) { |
| | | return toAjax(serviceTaskdiagService.deleteServiceTaskdiagById(id)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @Api("ææ¯æ¨¡æ¿ç§å®¤å
³è") |
| | | @RestController |
| | | @RequestMapping("/smartor/taskoper") |
| | | public class ServiceTaskoperController extends BaseController |
| | | { |
| | | public class ServiceTaskoperController extends BaseController { |
| | | @Autowired |
| | | private IServiceTaskoperService serviceTaskoperService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿ç§å®¤å
³èå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskoper:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ServiceTaskoper serviceTaskoper) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody ServiceTaskoper serviceTaskoper) { |
| | | startPage(); |
| | | List<ServiceTaskoper> list = serviceTaskoperService.selectServiceTaskoperList(serviceTaskoper); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskoper:export')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceTaskoper serviceTaskoper) |
| | | { |
| | | public void export(HttpServletResponse response, ServiceTaskoper serviceTaskoper) { |
| | | List<ServiceTaskoper> list = serviceTaskoperService.selectServiceTaskoperList(serviceTaskoper); |
| | | ExcelUtil<ServiceTaskoper> util = new ExcelUtil<ServiceTaskoper>(ServiceTaskoper.class); |
| | | util.exportExcel(response, list, "模æ¿ç§å®¤å
³èæ°æ®"); |
| | |
| | | @ApiOperation("è·å模æ¿ç§å®¤å
³è详ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskoper:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceTaskoperService.selectServiceTaskoperById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ°å¢æ¨¡æ¿ç§å®¤å
³è") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskoper:add')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceTaskoper serviceTaskoper) |
| | | { |
| | | public AjaxResult add(@RequestBody ServiceTaskoper serviceTaskoper) { |
| | | return toAjax(serviceTaskoperService.insertServiceTaskoper(serviceTaskoper)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æ¨¡æ¿ç§å®¤å
³è") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskoper:edit')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceTaskoper serviceTaskoper) |
| | | { |
| | | public AjaxResult edit(@RequestBody ServiceTaskoper serviceTaskoper) { |
| | | return toAjax(serviceTaskoperService.updateServiceTaskoper(serviceTaskoper)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å 餿¨¡æ¿ç§å®¤å
³è") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:taskoper:remove')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{id}") |
| | | public AjaxResult remove(@PathVariable Long id) |
| | | { |
| | | @GetMapping("/remove/{id}") |
| | | public AjaxResult remove(@PathVariable Long id) { |
| | | return toAjax(serviceTaskoperService.deleteServiceTaskoperById(id)); |
| | | } |
| | | } |
| | |
| | | * æ¥è¯¢çä¿¡åæ°å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsparam:list')") |
| | | @PostMapping("/list") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SmsParam smsParam) { |
| | | startPage(); |
| | | List<SmsParam> list = smsParamService.selectSmsParamList(smsParam); |
| | |
| | | * æ¥è¯¢çä¿¡è®°å½å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsrecords:list')") |
| | | @PostMapping("/list") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SmsRecords smsRecords) { |
| | | startPage(); |
| | | List<SmsRecords> list = smsRecordsService.selectSmsRecordsList(smsRecords); |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/smstemplet") |
| | | public class SmsTempletController extends BaseController |
| | | { |
| | | public class SmsTempletController extends BaseController { |
| | | @Autowired |
| | | private ISmsTempletService smsTempletService; |
| | | |
| | |
| | | * æ¥è¯¢ç信模æ¿å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SmsTemplet smsTemplet) |
| | | { |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SmsTemplet smsTemplet) { |
| | | startPage(); |
| | | List<SmsTemplet> list = smsTempletService.selectSmsTempletList(smsTemplet); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:export')") |
| | | @Log(title = "ç信模æ¿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SmsTemplet smsTemplet) |
| | | { |
| | | public void export(HttpServletResponse response, SmsTemplet smsTemplet) { |
| | | List<SmsTemplet> list = smsTempletService.selectSmsTempletList(smsTemplet); |
| | | ExcelUtil<SmsTemplet> util = new ExcelUtil<SmsTemplet>(SmsTemplet.class); |
| | | util.exportExcel(response, list, "çä¿¡æ¨¡æ¿æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:query')") |
| | | @GetMapping(value = "/{templetid}") |
| | | public AjaxResult getInfo(@PathVariable("templetid") Long templetid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("templetid") Long templetid) { |
| | | return success(smsTempletService.selectSmsTempletByTempletid(templetid)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:add')") |
| | | @Log(title = "ç信模æ¿", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SmsTemplet smsTemplet) |
| | | { |
| | | public AjaxResult add(@RequestBody SmsTemplet smsTemplet) { |
| | | return toAjax(smsTempletService.insertSmsTemplet(smsTemplet)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:edit')") |
| | | @Log(title = "ç信模æ¿", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SmsTemplet smsTemplet) |
| | | { |
| | | public AjaxResult edit(@RequestBody SmsTemplet smsTemplet) { |
| | | return toAjax(smsTempletService.updateSmsTemplet(smsTemplet)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smstemplet:remove')") |
| | | @Log(title = "ç信模æ¿", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{templetids}") |
| | | public AjaxResult remove(@PathVariable Long[] templetids) |
| | | { |
| | | @GetMapping("/remove/{templetids}") |
| | | public AjaxResult remove(@PathVariable Long[] templetids) { |
| | | return toAjax(smsTempletService.deleteSmsTempletByTempletids(templetids)); |
| | | } |
| | | } |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.smartor.domain.IvrLibaScriptAssortVO; |
| | | import com.smartor.domain.SvyCategoryVO; |
| | | import io.swagger.annotations.Api; |
| | |
| | | * æ¥è¯¢é®å·åç±»å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:list')") |
| | | @PostMapping("/list") |
| | | @PostMapping("list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | public TableDataInfo list(@RequestBody SvyCategory svyCategory) { |
| | | // startPage(); |
| | | List<SvyCategoryVO> list = svyCategoryService.selectSvyCategoryList(svyCategory); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:add')") |
| | | @Log(title = "é®å·åç±»", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢é®å·åç±»") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyCategory svyCategory) { |
| | | return toAjax(svyCategoryService.insertSvyCategory(svyCategory)); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "é®é¢è¯æ¯åç±»åº", businessType = BusinessType.INSERT) |
| | | @ApiOperation("æ°å¢é®å·åç±»æ ") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody SvyCategoryVO svyCategoryVO) { |
| | | return toAjax(svyCategoryService.insertSvyCategoryTree(svyCategoryVO)); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:edit')") |
| | | @Log(title = "é®å·åç±»", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("ä¿®æ¹é®å·åç±»") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyCategory svyCategory) { |
| | | return toAjax(svyCategoryService.updateSvyCategory(svyCategory)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * é®å·æç»ç»æController |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyfinish") |
| | | public class SvyFinishController extends BaseController |
| | | { |
| | | public class SvyFinishController extends BaseController { |
| | | @Autowired |
| | | private ISvyFinishService svyFinishService; |
| | | |
| | |
| | | * æ¥è¯¢é®å·æç»ç»æå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyFinish svyFinish) |
| | | { |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyFinish svyFinish) { |
| | | startPage(); |
| | | List<SvyFinish> list = svyFinishService.selectSvyFinishList(svyFinish); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:export')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinish svyFinish) |
| | | { |
| | | public void export(HttpServletResponse response, SvyFinish svyFinish) { |
| | | List<SvyFinish> list = svyFinishService.selectSvyFinishList(svyFinish); |
| | | ExcelUtil<SvyFinish> util = new ExcelUtil<SvyFinish>(SvyFinish.class); |
| | | util.exportExcel(response, list, "é®å·æç»ç»ææ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyFinishService.selectSvyFinishById(id)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:add')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyFinish svyFinish) |
| | | { |
| | | public AjaxResult add(@RequestBody SvyFinish svyFinish) { |
| | | return toAjax(svyFinishService.insertSvyFinish(svyFinish)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish:edit')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyFinish svyFinish) |
| | | { |
| | | public AjaxResult edit(@RequestBody SvyFinish svyFinish) { |
| | | return toAjax(svyFinishService.updateSvyFinish(svyFinish)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinish: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(svyFinishService.deleteSvyFinishByIds(ids)); |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * é®å·æç»ç»æé项详æ
Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | |
| | | * æ¥è¯¢é®å·æç»ç»æé项详æ
å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:list')") |
| | | @PostMapping("/list") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyFinishoption svyFinishoption) |
| | | { |
| | | startPage(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:add')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyFinishoption svyFinishoption) |
| | | { |
| | | return toAjax(svyFinishoptionService.insertSvyFinishoption(svyFinishoption)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:edit')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyFinishoption svyFinishoption) |
| | | { |
| | | return toAjax(svyFinishoptionService.updateSvyFinishoption(svyFinishoption)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * é®å·è°æ¥ç»æè¯¦æ
Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyfinishtopic") |
| | | public class SvyFinishtopicController extends BaseController |
| | | { |
| | | public class SvyFinishtopicController extends BaseController { |
| | | @Autowired |
| | | private ISvyFinishtopicService svyFinishtopicService; |
| | | |
| | |
| | | * æ¥è¯¢é®å·è°æ¥ç»æè¯¦æ
å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyFinishtopic svyFinishtopic) |
| | | { |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyFinishtopic svyFinishtopic) { |
| | | startPage(); |
| | | List<SvyFinishtopic> list = svyFinishtopicService.selectSvyFinishtopicList(svyFinishtopic); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:export')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinishtopic svyFinishtopic) |
| | | { |
| | | public void export(HttpServletResponse response, SvyFinishtopic svyFinishtopic) { |
| | | List<SvyFinishtopic> list = svyFinishtopicService.selectSvyFinishtopicList(svyFinishtopic); |
| | | ExcelUtil<SvyFinishtopic> util = new ExcelUtil<SvyFinishtopic>(SvyFinishtopic.class); |
| | | util.exportExcel(response, list, "é®å·è°æ¥ç»æè¯¦æ
æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyFinishtopicService.selectSvyFinishtopicById(id)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:add')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyFinishtopic svyFinishtopic) |
| | | { |
| | | public AjaxResult add(@RequestBody SvyFinishtopic svyFinishtopic) { |
| | | return toAjax(svyFinishtopicService.insertSvyFinishtopic(svyFinishtopic)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:edit')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyFinishtopic svyFinishtopic) |
| | | { |
| | | public AjaxResult edit(@RequestBody SvyFinishtopic svyFinishtopic) { |
| | | return toAjax(svyFinishtopicService.updateSvyFinishtopic(svyFinishtopic)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic: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(svyFinishtopicService.deleteSvyFinishtopicByIds(ids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * é®å·å¼å¸¸Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyexception") |
| | | public class SvyLibExceptionController extends BaseController |
| | | { |
| | | public class SvyLibExceptionController extends BaseController { |
| | | @Autowired |
| | | private ISvyLibExceptionService svyLibExceptionService; |
| | | |
| | |
| | | * æ¥è¯¢é®å·å¼å¸¸å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibException svyLibException) |
| | | { |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyLibException svyLibException) { |
| | | startPage(); |
| | | List<SvyLibException> list = svyLibExceptionService.selectSvyLibExceptionList(svyLibException); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:export')") |
| | | @Log(title = "é®å·å¼å¸¸", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibException svyLibException) |
| | | { |
| | | public void export(HttpServletResponse response, SvyLibException svyLibException) { |
| | | List<SvyLibException> list = svyLibExceptionService.selectSvyLibExceptionList(svyLibException); |
| | | ExcelUtil<SvyLibException> util = new ExcelUtil<SvyLibException>(SvyLibException.class); |
| | | util.exportExcel(response, list, "é®å·å¼å¸¸æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:query')") |
| | | @GetMapping(value = "/{ecid}") |
| | | public AjaxResult getInfo(@PathVariable("ecid") Long ecid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("ecid") Long ecid) { |
| | | return success(svyLibExceptionService.selectSvyLibExceptionByEcid(ecid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:add')") |
| | | @Log(title = "é®å·å¼å¸¸", businessType = BusinessType.INSERT) |
| | | |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibException svyLibException) |
| | | { |
| | | public AjaxResult add(@RequestBody SvyLibException svyLibException) { |
| | | return toAjax(svyLibExceptionService.insertSvyLibException(svyLibException)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:edit')") |
| | | @Log(title = "é®å·å¼å¸¸", businessType = BusinessType.UPDATE) |
| | | |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibException svyLibException) |
| | | { |
| | | public AjaxResult edit(@RequestBody SvyLibException svyLibException) { |
| | | return toAjax(svyLibExceptionService.updateSvyLibException(svyLibException)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:remove')") |
| | | @Log(title = "é®å·å¼å¸¸", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ecids}") |
| | | public AjaxResult remove(@PathVariable Long[] ecids) |
| | | { |
| | | @GetMapping("/remove/{ecids}") |
| | | public AjaxResult remove(@PathVariable Long[] ecids) { |
| | | return toAjax(svyLibExceptionService.deleteSvyLibExceptionByEcids(ecids)); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyresult") |
| | | public class SvyLibResultController extends BaseController |
| | | { |
| | | public class SvyLibResultController extends BaseController { |
| | | @Autowired |
| | | private ISvyLibResultService svyLibResultService; |
| | | |
| | |
| | | * æ¥è¯¢é®å·ç»æå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibResult svyLibResult) |
| | | { |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyLibResult svyLibResult) { |
| | | startPage(); |
| | | List<SvyLibResult> list = svyLibResultService.selectSvyLibResultList(svyLibResult); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:export')") |
| | | @Log(title = "é®å·ç»æ", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibResult svyLibResult) |
| | | { |
| | | public void export(HttpServletResponse response, SvyLibResult svyLibResult) { |
| | | List<SvyLibResult> list = svyLibResultService.selectSvyLibResultList(svyLibResult); |
| | | ExcelUtil<SvyLibResult> util = new ExcelUtil<SvyLibResult>(SvyLibResult.class); |
| | | util.exportExcel(response, list, "é®å·ç»ææ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:query')") |
| | | @GetMapping(value = "/{resultid}") |
| | | public AjaxResult getInfo(@PathVariable("resultid") Long resultid) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("resultid") Long resultid) { |
| | | return success(svyLibResultService.selectSvyLibResultByResultid(resultid)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:add')") |
| | | @Log(title = "é®å·ç»æ", businessType = BusinessType.INSERT) |
| | | |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibResult svyLibResult) |
| | | { |
| | | public AjaxResult add(@RequestBody SvyLibResult svyLibResult) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | svyLibResult.setOrgid(user.getOrgid()); |
| | | return toAjax(svyLibResultService.insertSvyLibResult(svyLibResult)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:edit')") |
| | | @Log(title = "é®å·ç»æ", businessType = BusinessType.UPDATE) |
| | | |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibResult svyLibResult) |
| | | { |
| | | public AjaxResult edit(@RequestBody SvyLibResult svyLibResult) { |
| | | return toAjax(svyLibResultService.updateSvyLibResult(svyLibResult)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:remove')") |
| | | @Log(title = "é®å·ç»æ", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{resultids}") |
| | | public AjaxResult remove(@PathVariable Long[] resultids) |
| | | { |
| | | @GetMapping("/remove/{resultids}") |
| | | public AjaxResult remove(@PathVariable Long[] resultids) { |
| | | return toAjax(svyLibResultService.deleteSvyLibResultByResultids(resultids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·é¢ç®åç±»å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | | // startPage(); |
| | | List<SvyLibScriptCategoryVO> list = svyLibScriptCategoryService.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | |
| | | return success(svyLibScriptCategoryService.selectSvyLibScriptCategoryById(id)); |
| | | } |
| | | |
| | | // /** |
| | | // /** |
| | | // * æ°å¢é®å·é¢ç®åç±» |
| | | // */ |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | // @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.INSERT) |
| | | // @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | | // return toAjax(svyLibScriptCategoryService.insertSvyLibScriptCategory(svyLibScriptCategory)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "é®å·é¢ç®åç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | | return toAjax(svyLibScriptCategoryService.updateSvyLibScriptCategory(svyLibScriptCategory)); |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·é¢ç®å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyScript:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyLibScript svyLibScript) { |
| | | PageUtils.startPageByPost(svyLibScript.getPageNum(), svyLibScript.getPageSize()); |
| | | List<SvyLibScript> list = svyLibScriptService.selectSvyLibScriptList(svyLibScript); |
| | |
| | | @ApiOperation("æ°å¢é®å·é¢ç®") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyScript:add')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibScript svyLibScript) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹é®å·é¢ç®") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyScript:edit')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibScript svyLibScript) { |
| | | return toAjax(svyLibScriptService.updateSvyLibScript(svyLibScript)); |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * æ¥è¯¢é®å·é®é¢é项å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svytopicoption:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyLibScriptOption svyLibTopicoption) { |
| | | startPage(); |
| | | List<SvyLibScriptOption> list = svyLibTopicoptionService.selectSvyLibScriptOptionList(svyLibTopicoption); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svytopicoption:add')") |
| | | @Log(title = "é®å·é®é¢é项", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibScriptOption svyLibTopicoption) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svytopicoption:edit')") |
| | | @Log(title = "é®å·é®é¢é项", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibScriptOption svyLibTopicoption) { |
| | | return toAjax(svyLibTopicoptionService.updateSvyLibScriptOption(svyLibTopicoption)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·æ¨¡æ¿åç±»å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | List<SvyLibTemplateCategoryVO> list = svyLibTemplateCategoryService.selectSvyLibTemplateCategoryList(svyLibTemplateCategory); |
| | | return getDataTable(list); |
| | |
| | | return success(svyLibTemplateCategoryService.selectSvyLibTemplateCategoryById(id)); |
| | | } |
| | | |
| | | // /** |
| | | // /** |
| | | // * æ°å¢é®å·æ¨¡æ¿åç±» |
| | | // */ |
| | | // @ApiOperation("æ°å¢é®å·æ¨¡æ¿åç±»") |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | // @Log(Template = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.INSERT) |
| | | // @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | // return toAjax(svyLibTemplateCategoryService.insertSvyLibTemplateCategory(svyLibTemplateCategory)); |
| | |
| | | @ApiOperation("ä¿®æ¹é®å·æ¨¡æ¿åç±»") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | return toAjax(svyLibTemplateCategoryService.updateSvyLibTemplateCategory(svyLibTemplateCategory)); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "é®å·æ¨¡æ¿åç±»æ ", businessType = BusinessType.INSERT) |
| | | @ApiOperation("é®å·æ¨¡æ¿åç±»æ ") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody SvyLibTemplateCategoryVO svyLibTemplateCategoryVO) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹é®å·") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyTemplate:edit')") |
| | | @Log(title = "é®å·", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTemplate svyLibTemplate) { |
| | | return toAjax(svyLibTemplateService.updateSvyLibTemplate(svyLibTemplate)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "模æ¿é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateScript svyLibTemplateScript) |
| | | { |
| | | return toAjax(svyLibTemplateScriptService.updateSvyLibTemplateScript(svyLibTemplateScript)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svytargetoption") |
| | | public class SvyLibTemplateTargetoptionController extends BaseController |
| | | { |
| | | public class SvyLibTemplateTargetoptionController extends BaseController { |
| | | @Autowired |
| | | private ISvyLibTemplateTargetoptionService svyLibTemplateTargetoptionService; |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | | { |
| | | public TableDataInfo list(SvyLibTemplateTargetoption svyLibTemplateTargetoption) { |
| | | startPage(); |
| | | List<SvyLibTemplateTargetoption> list = svyLibTemplateTargetoptionService.selectSvyLibTemplateTargetoptionList(svyLibTemplateTargetoption); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | | { |
| | | public void export(HttpServletResponse response, SvyLibTemplateTargetoption svyLibTemplateTargetoption) { |
| | | List<SvyLibTemplateTargetoption> list = svyLibTemplateTargetoptionService.selectSvyLibTemplateTargetoptionList(svyLibTemplateTargetoption); |
| | | ExcelUtil<SvyLibTemplateTargetoption> util = new ExcelUtil<SvyLibTemplateTargetoption>(SvyLibTemplateTargetoption.class); |
| | | util.exportExcel(response, list, "é®å·é®é¢ææ éé¡¹åºæ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyLibTemplateTargetoptionService.selectSvyLibTemplateTargetoptionById(id)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibTemplateTargetoption svyLibTemplateTargetoption) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | svyLibTemplateTargetoption.setOrgid(user.getOrgid()); |
| | | return toAjax(svyLibTemplateTargetoptionService.insertSvyLibTemplateTargetoption(svyLibTemplateTargetoption)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateTargetoption svyLibTemplateTargetoption) |
| | | { |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateTargetoption svyLibTemplateTargetoption) { |
| | | return toAjax(svyLibTemplateTargetoptionService.updateSvyLibTemplateTargetoption(svyLibTemplateTargetoption)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(svyLibTemplateTargetoptionService.deleteSvyLibTemplateTargetoptionByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:add')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibTemplateTargetoptionWjx svyLibTemplateTargetoptionWjx) |
| | | { |
| | | return toAjax(svyLibTemplateTargetoptionWjxService.insertSvyLibTemplateTargetoptionWjx(svyLibTemplateTargetoptionWjx)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:edit')") |
| | | @Log(title = "é®å·é®é¢ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateTargetoptionWjx svyLibTemplateTargetoptionWjx) |
| | | { |
| | | return toAjax(svyLibTemplateTargetoptionWjxService.updateSvyLibTemplateTargetoptionWjx(svyLibTemplateTargetoptionWjx)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.github.pagehelper.ISelect; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é®å·ä»»å¡ï¼ä»»å¡ï¼å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyTask svyTask) { |
| | | PageUtils.startPageByPost(svyTask.getPageNum(), svyTask.getPageSize()); |
| | | List<SvyTask> list = svyTaskService.selectSvyTaskList(svyTask); |
| | |
| | | @ApiOperation("æ°å¢é®å·ä»»å¡ï¼ä»»å¡ï¼") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTask svyTask) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹é®å·ä»»å¡ï¼ä»»å¡ï¼") |
| | | //@PreAuthorize("@ss.hasPermi('system:task:edit')") |
| | | @Log(title = "综åé®å·ä»»å¡ï¼ä»»å¡ï¼", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTask svyTask) { |
| | | return toAjax(svyTaskService.updateSvyTask(svyTask)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @ApiOperation("æ°å¢ä»»å¡é®å·é¢ç®") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTaskScript svyTaskScript) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | @ApiOperation("ä¿®æ¹ä»»å¡é®å·é¢ç®") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "ä»»å¡é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskScript svyTaskScript) { |
| | | return toAjax(svyTaskScriptService.updateSvyTaskScript(svyTaskScript)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @ApiOperation("ä¿®æ¹ä»»å¡é®å·æ¨¡æ¿") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | @Log(title = "ä»»å¡é®å·æ¨¡æ¿", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplate svyTaskTemplate) { |
| | | return toAjax(svyTaskTemplateService.updateSvyTaskTemplate(svyTaskTemplate)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ°å¢æä¿®æ¹é访任å¡é®å·æ¨¡æ¿åº") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/saveOrUpdateTaskTemp") |
| | | public AjaxResult saveOrUpdateTaskTemp(@RequestBody SvyTaskTemplateVO svyTaskTemplateVO) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectInfoByCondition") |
| | | public AjaxResult selectInfoByCondition(@RequestBody SvyTaskTemplateVO svyTaskTemplateVO) { |
| | | return AjaxResult.success(svyTaskTemplateService.selectInfoByCondition(svyTaskTemplateVO)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTaskTemplateScript svyTaskTemplateScript) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | svyTaskTemplateScript.setOrgid(user.getOrgid()); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplateScript svyTaskTemplateScript) { |
| | | return toAjax(svyTaskTemplateScriptService.updateSvyTaskTemplateScript(svyTaskTemplateScript)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectInfoByCondition") |
| | | public AjaxResult selectInfoByCondition(@RequestBody SvyTaskTemplateScriptVO svyTaskTemplateScriptVO) { |
| | | return AjaxResult.success(svyTaskTemplateScriptService.selectInfoByCondition(svyTaskTemplateScriptVO)); |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡æ¿ææ é项åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | svyTaskTemplateTargetoption.setOrgid(user.getOrgid()); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @Log(title = "é®å·ä»»å¡æ¨¡æ¿ææ é项åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplateTargetoption svyTaskTemplateTargetoption) { |
| | | return toAjax(svyTaskTemplateTargetoptionService.updateSvyTaskTemplateTargetoption(svyTaskTemplateTargetoption)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * æ¥è¯¢é¢ç®å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyTopic svyTopic) { |
| | | startPage(); |
| | | List<SvyTopic> list = svyTopicService.selectSvyTopicList(svyTopic); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:add')") |
| | | @Log(title = "é¢ç®", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTopic svyTopic) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:edit')") |
| | | @Log(title = "é¢ç®", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTopic svyTopic) { |
| | | return toAjax(svyTopicService.updateSvyTopic(svyTopic)); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.smartor.domain.SysUserOrg; |
| | | import com.smartor.service.ISysUserOrgService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * ç¨æ·ä¸æºæé¢åºå
³èController |
| | | * |
| | | * @author lihu |
| | | * @date 2026-01-07 |
| | | */ |
| | | @Api("ç¨æ·ä¸æºæé¢åºå
³è") |
| | | @RestController |
| | | @RequestMapping("/smartor/org") |
| | | public class SysUserOrgController extends BaseController { |
| | | @Autowired |
| | | private ISysUserOrgService sysUserOrgService; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨æ·ä¸æºæé¢åºå
³èå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ç¨æ·ä¸æºæé¢åºå
³èå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:org:list')") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SysUserOrg sysUserOrg) { |
| | | startPage(); |
| | | List<SysUserOrg> list = sysUserOrgService.selectSysUserOrgList(sysUserOrg); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç¨æ·ä¸æºæé¢åºå
³èå表 |
| | | */ |
| | | @ApiOperation("导åºç¨æ·ä¸æºæé¢åºå
³èå表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:org:export')") |
| | | @Log(title = "ç¨æ·ä¸æºæé¢åºå
³è", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysUserOrg sysUserOrg) { |
| | | List<SysUserOrg> list = sysUserOrgService.selectSysUserOrgList(sysUserOrg); |
| | | ExcelUtil<SysUserOrg> util = new ExcelUtil<SysUserOrg>(SysUserOrg.class); |
| | | util.exportExcel(response, list, "ç¨æ·ä¸æºæé¢åºå
³èæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¨æ·ä¸æºæé¢åºå
³è详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åç¨æ·ä¸æºæé¢åºå
³è详ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:org:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(sysUserOrgService.selectSysUserOrgById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç¨æ·ä¸æºæé¢åºå
³è |
| | | */ |
| | | @ApiOperation("æ°å¢ç¨æ·ä¸æºæé¢åºå
³è") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:org:add')") |
| | | @Log(title = "ç¨æ·ä¸æºæé¢åºå
³è", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SysUserOrg sysUserOrg) { |
| | | return toAjax(sysUserOrgService.insertSysUserOrg(sysUserOrg)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ·ä¸æºæé¢åºå
³è |
| | | */ |
| | | @ApiOperation("ä¿®æ¹ç¨æ·ä¸æºæé¢åºå
³è") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:org:edit')") |
| | | @Log(title = "ç¨æ·ä¸æºæé¢åºå
³è", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SysUserOrg sysUserOrg) { |
| | | return toAjax(sysUserOrgService.updateSysUserOrg(sysUserOrg)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¨æ·ä¸æºæé¢åºå
³è |
| | | */ |
| | | @ApiOperation("å é¤ç¨æ·ä¸æºæé¢åºå
³è") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:org:remove')") |
| | | @Log(title = "ç¨æ·ä¸æºæé¢åºå
³è", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(sysUserOrgService.deleteSysUserOrgByIds(ids)); |
| | | } |
| | | } |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:add')") |
| | | @ApiOperation("æ°å¢æ¨¡æ¿ç§å®¤å
³è") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody List<TemplateDept> templateDepts) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | return toAjax(templateDeptService.insertTemplateDept(templateDepts,user.getGuid())); |
| | |
| | | @ApiOperation("ä¿®æ¹æ¨¡æ¿ç§å®¤å
³è") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:edit')") |
| | | @Log(title = "模æ¿ç§å®¤å
³è", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody TemplateDept templateDept) { |
| | | return toAjax(templateDeptService.updateTemplateDept(templateDept)); |
| | | } |
| | |
| | | * æ¥è¯¢çä¿¡è´¦å·å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody BaseSmsaccount baseSmsaccount) { |
| | | startPage(); |
| | | List<BaseSmsaccount> list = baseSmsaccountService.selectBaseSmsaccountList(baseSmsaccount); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:edit')") |
| | | @Log(title = "çä¿¡è´¦å·", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseSmsaccount baseSmsaccount) { |
| | | return toAjax(baseSmsaccountService.updateBaseSmsaccount(baseSmsaccount)); |
| | | } |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:config:add')") |
| | | @Log(title = "åæ°ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysConfig config) |
| | | { |
| | | if (UserConstants.NOT_UNIQUE.equals(configService.checkConfigKeyUnique(config))) |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:config:edit')") |
| | | @Log(title = "åæ°ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysConfig config) |
| | | { |
| | | if (UserConstants.NOT_UNIQUE.equals(configService.checkConfigKeyUnique(config))) |
| | |
| | | @ApiOperation("æ°å¢é¨é¨") |
| | | //@PreAuthorize("@ss.hasPermi('system:dept:add')") |
| | | @Log(title = "é¨é¨ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysDept dept) |
| | | { |
| | | if (UserConstants.NOT_UNIQUE.equals(deptService.checkDeptNameUnique(dept))) |
| | |
| | | @ApiOperation("ä¿®æ¹é¨é¨") |
| | | //@PreAuthorize("@ss.hasPermi('system:dept:edit')") |
| | | @Log(title = "é¨é¨ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysDept dept) |
| | | { |
| | | Long deptId = dept.getDeptId(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:add')") |
| | | @Log(title = "åå
¸æ°æ®", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysDictData dict) |
| | | { |
| | | dict.setCreateBy(getUsername()); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:edit')") |
| | | @Log(title = "åå
¸æ°æ®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysDictData dict) |
| | | { |
| | | dict.setUpdateBy(getUsername()); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:add')") |
| | | @Log(title = "åå
¸ç±»å", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysDictType dict) |
| | | { |
| | | if (UserConstants.NOT_UNIQUE.equals(dictTypeService.checkDictTypeUnique(dict))) |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:dict:edit')") |
| | | @Log(title = "åå
¸ç±»å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysDictType dict) |
| | | { |
| | | if (UserConstants.NOT_UNIQUE.equals(dictTypeService.checkDictTypeUnique(dict))) |
| | |
| | | public AjaxResult login(@RequestBody LoginBody loginBody) { |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | // çæä»¤ç |
| | | String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), loginBody.getUuid(), loginBody.getOrgid()); |
| | | String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), loginBody.getUuid(), loginBody.getOrgid(), loginBody.getCampusid()); |
| | | ajax.put(Constants.TOKEN, token); |
| | | return ajax; |
| | | } |
| | |
| | | */ |
| | | // @IpWhitelist |
| | | @GetMapping("/SSOLogin") |
| | | public RedirectView SSOLogin(@RequestParam(required = false) String userName, @RequestParam(required = false) String orgid, @RequestParam(required = false) String deptId, @RequestParam(required = false) String token) { |
| | | public RedirectView SSOLogin(@RequestParam(required = false) String userName, @RequestParam(required = false) String orgid, @RequestParam(required = false) String campusid, @RequestParam(required = false) String deptId, @RequestParam(required = false) String token) { |
| | | if (StringUtils.isEmpty(userName) && StringUtils.isEmpty(token)) { |
| | | throw new BaseException("åæ°ä¸è½ä¸ºç©º"); |
| | | } |
| | |
| | | userName = rsaPublicKeyExample.decryptedData(userName, pri_key); |
| | | } |
| | | if (StringUtils.isEmpty(deptId)) deptId = "null"; |
| | | String token2 = loginService.loginByUserName(userName + "&" + orgid + "&" + deptId); |
| | | String token2 = loginService.loginByUserName(userName + "&" + orgid + "&" + deptId + "&" + campusid); |
| | | if (StringUtils.isEmpty(token2)) { |
| | | throw new BaseException("ç»é失败"); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.system; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/menu") |
| | | public class SysMenuController extends BaseController |
| | | { |
| | | public class SysMenuController extends BaseController { |
| | | @Autowired |
| | | private ISysMenuService menuService; |
| | | |
| | |
| | | * è·åèåå表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:menu:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @GetMapping("/list") |
| | | public AjaxResult list(SysMenu menu) |
| | | { |
| | | public AjaxResult list(SysMenu menu) { |
| | | List<SysMenu> menus = menuService.selectMenuList(menu, getUserId()); |
| | | return success(menus); |
| | | } |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:menu:query')") |
| | | @GetMapping(value = "/{menuId}") |
| | | public AjaxResult getInfo(@PathVariable Long menuId) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable Long menuId) { |
| | | return success(menuService.selectMenuById(menuId)); |
| | | } |
| | | |
| | |
| | | * è·åèå䏿æ å表 |
| | | */ |
| | | @GetMapping("/treeselect") |
| | | public AjaxResult treeselect(SysMenu menu) |
| | | { |
| | | public AjaxResult treeselect(SysMenu menu) { |
| | | List<SysMenu> menus = menuService.selectMenuList(menu, getUserId()); |
| | | return success(menuService.buildMenuTreeSelect(menus)); |
| | | } |
| | |
| | | * å 载对åºè§è²èåå表æ |
| | | */ |
| | | @GetMapping(value = "/roleMenuTreeselect/{roleId}") |
| | | public AjaxResult roleMenuTreeselect(@PathVariable("roleId") Long roleId) |
| | | { |
| | | public AjaxResult roleMenuTreeselect(@PathVariable("roleId") Long roleId) { |
| | | List<SysMenu> menus = menuService.selectMenuList(getUserId()); |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | ajax.put("checkedKeys", menuService.selectMenuListByRoleId(roleId)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:menu:add')") |
| | | @Log(title = "èå管ç", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysMenu menu) |
| | | { |
| | | if (UserConstants.NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu))) |
| | | { |
| | | public AjaxResult add(@Validated @RequestBody SysMenu menu) { |
| | | if (UserConstants.NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu))) { |
| | | return error("æ°å¢èå'" + menu.getMenuName() + "'失败ï¼èååç§°å·²åå¨"); |
| | | } |
| | | else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath())) |
| | | { |
| | | } else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath())) { |
| | | return error("æ°å¢èå'" + menu.getMenuName() + "'失败ï¼å°åå¿
须以http(s)://å¼å¤´"); |
| | | } |
| | | menu.setCreateBy(getUsername()); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:menu:edit')") |
| | | @Log(title = "èå管ç", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysMenu menu) |
| | | { |
| | | if (UserConstants.NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu))) |
| | | { |
| | | public AjaxResult edit(@Validated @RequestBody SysMenu menu) { |
| | | if (UserConstants.NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu))) { |
| | | return error("ä¿®æ¹èå'" + menu.getMenuName() + "'失败ï¼èååç§°å·²åå¨"); |
| | | } |
| | | else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath())) |
| | | { |
| | | } else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath())) { |
| | | return error("ä¿®æ¹èå'" + menu.getMenuName() + "'失败ï¼å°åå¿
须以http(s)://å¼å¤´"); |
| | | } |
| | | else if (menu.getMenuId().equals(menu.getParentId())) |
| | | { |
| | | } else if (menu.getMenuId().equals(menu.getParentId())) { |
| | | return error("ä¿®æ¹èå'" + menu.getMenuName() + "'失败ï¼ä¸çº§èåä¸è½éæ©èªå·±"); |
| | | } |
| | | menu.setUpdateBy(getUsername()); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:menu:remove')") |
| | | @Log(title = "èå管ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{menuId}") |
| | | public AjaxResult remove(@PathVariable("menuId") Long menuId) |
| | | { |
| | | if (menuService.hasChildByMenuId(menuId)) |
| | | { |
| | | public AjaxResult remove(@PathVariable("menuId") Long menuId) { |
| | | if (menuService.hasChildByMenuId(menuId)) { |
| | | return warn("åå¨åèå,ä¸å
许å é¤"); |
| | | } |
| | | if (menuService.checkMenuExistRole(menuId)) |
| | | { |
| | | if (menuService.checkMenuExistRole(menuId)) { |
| | | return warn("èåå·²åé
,ä¸å
许å é¤"); |
| | | } |
| | | return toAjax(menuService.deleteMenuById(menuId)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:notice:add')") |
| | | @Log(title = "éç¥å
Œ", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysNotice notice) { |
| | | notice.setCreateBy(getUsername()); |
| | | return toAjax(noticeService.insertNotice(notice)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:notice:edit')") |
| | | @Log(title = "éç¥å
Œ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysNotice notice) { |
| | | notice.setUpdateBy(getUsername()); |
| | | return toAjax(noticeService.updateNotice(notice)); |
| | |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/post") |
| | | public class SysPostController extends BaseController |
| | | { |
| | | public class SysPostController extends BaseController { |
| | | @Autowired |
| | | private ISysPostService postService; |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:post:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysPost post) |
| | | { |
| | | public TableDataInfo list(SysPost post) { |
| | | startPage(); |
| | | List<SysPost> list = postService.selectPostList(post); |
| | | return getDataTable(list); |
| | |
| | | @Log(title = "å²ä½ç®¡ç", businessType = BusinessType.EXPORT) |
| | | //@PreAuthorize("@ss.hasPermi('system:post:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysPost post) |
| | | { |
| | | public void export(HttpServletResponse response, SysPost post) { |
| | | List<SysPost> list = postService.selectPostList(post); |
| | | ExcelUtil<SysPost> util = new ExcelUtil<SysPost>(SysPost.class); |
| | | util.exportExcel(response, list, "å²ä½æ°æ®"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:post:query')") |
| | | @GetMapping(value = "/{postId}") |
| | | public AjaxResult getInfo(@PathVariable Long postId) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable Long postId) { |
| | | return success(postService.selectPostById(postId)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:post:add')") |
| | | @Log(title = "å²ä½ç®¡ç", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysPost post) |
| | | { |
| | | if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post))) |
| | | { |
| | | public AjaxResult add(@Validated @RequestBody SysPost post) { |
| | | if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post))) { |
| | | return error("æ°å¢å²ä½'" + post.getPostName() + "'失败ï¼å²ä½åç§°å·²åå¨"); |
| | | } |
| | | else if (UserConstants.NOT_UNIQUE.equals(postService.checkPostCodeUnique(post))) |
| | | { |
| | | } else if (UserConstants.NOT_UNIQUE.equals(postService.checkPostCodeUnique(post))) { |
| | | return error("æ°å¢å²ä½'" + post.getPostName() + "'失败ï¼å²ä½ç¼ç å·²åå¨"); |
| | | } |
| | | post.setCreateBy(getUsername()); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:post:edit')") |
| | | @Log(title = "å²ä½ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysPost post) |
| | | { |
| | | if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post))) |
| | | { |
| | | public AjaxResult edit(@Validated @RequestBody SysPost post) { |
| | | if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post))) { |
| | | return error("ä¿®æ¹å²ä½'" + post.getPostName() + "'失败ï¼å²ä½åç§°å·²åå¨"); |
| | | } |
| | | else if (UserConstants.NOT_UNIQUE.equals(postService.checkPostCodeUnique(post))) |
| | | { |
| | | } else if (UserConstants.NOT_UNIQUE.equals(postService.checkPostCodeUnique(post))) { |
| | | return error("ä¿®æ¹å²ä½'" + post.getPostName() + "'失败ï¼å²ä½ç¼ç å·²åå¨"); |
| | | } |
| | | post.setUpdateBy(getUsername()); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:post:remove')") |
| | | @Log(title = "å²ä½ç®¡ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{postIds}") |
| | | public AjaxResult remove(@PathVariable Long[] postIds) |
| | | { |
| | | public AjaxResult remove(@PathVariable Long[] postIds) { |
| | | return toAjax(postService.deletePostByIds(postIds)); |
| | | } |
| | | |
| | |
| | | * è·åå²ä½éæ©æ¡å表 |
| | | */ |
| | | @GetMapping("/optionselect") |
| | | public AjaxResult optionselect() |
| | | { |
| | | public AjaxResult optionselect() { |
| | | List<SysPost> posts = postService.selectPostAll(); |
| | | return success(posts); |
| | | } |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUserRole; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:role:add')") |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysRole role) { |
| | | role.setOrgid(getLoginUser().getUser().getOrgid()); |
| | | if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleNameUnique(role))) { |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "è§è²ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysRole role) { |
| | | role.setOrgid(getLoginUser().getUser().getOrgid()); |
| | | roleService.checkRoleAllowed(role); |
| | |
| | | package com.ruoyi.web.controller.system; |
| | | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | import com.ruoyi.common.constant.UserConstants; |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:user:add')") |
| | | @Log(title = "ç¨æ·ç®¡ç", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@Validated @RequestBody SysUser user) { |
| | | if (UserConstants.NOT_UNIQUE.equals(userService.checkUserNameUnique(user))) { |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | @Log(title = "ç¨æ·ç®¡ç", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@Validated @RequestBody SysUser user) { |
| | | userService.checkUserAllowed(user); |
| | |
| | | package com.ruoyi.web.controller.system; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:add')") |
| | | @ApiOperation("导åºã请填ååè½åç§°ãå表") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SysUserDept sysUserDept) { |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹ã请填ååè½åç§°ã") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:dept:edit')") |
| | | @Log(title = "ã请填ååè½åç§°ã", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SysUserDept sysUserDept) { |
| | | return toAjax(sysUserDeptService.updateSysUserDept(sysUserDept)); |
| | |
| | | <groupId>javax.servlet</groupId> |
| | | <artifactId>javax.servlet-api</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- AOPæ¯æ --> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-aop</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.projectlombok</groupId> |
| | | <artifactId>lombok</artifactId> |
| | |
| | | private String orgid; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | private String campusid; |
| | | |
| | | /** |
| | | * é¨é¨ID |
| | | */ |
| | | private String deptId; |
| | |
| | | sessionFactory.setTypeAliasesPackage(typeAliasesPackage); |
| | | sessionFactory.setMapperLocations(resolveMapperLocations(StringUtils.split(mapperLocations, ","))); |
| | | sessionFactory.setConfigLocation(new DefaultResourceLoader().getResource(configLocation)); |
| | | sessionFactory.setPlugins(new Interceptor[]{hospitalFilterInterceptor}); |
| | | |
| | | //ä¸åæ§è¡hospitalFilterInterceptoræ¦æªå¨ |
| | | //sessionFactory.setPlugins(new Interceptor[]{hospitalFilterInterceptor}); |
| | | |
| | | return sessionFactory.getObject(); |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | @Component |
| | | @Intercepts({@Signature(type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class})}) |
| | | //@Intercepts({@Signature(type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class})}) |
| | | public class HospitalFilterInterceptor implements Interceptor { |
| | | |
| | | @Value("${spring.profiles.active}") |
| | |
| | | if (originalSql.contains("insert into") || originalSql.contains("INSERT INTO") || originalSql.contains("from sys_menu") || originalSql.contains("sys_job") || originalSql.contains("update sys_menu") || originalSql.contains("information_schema.tables") || originalSql.contains("information_schema.columns") || originalSql.contains("gen_table") || originalSql.toUpperCase().contains("ORGID IS NULL") || originalSql.toUpperCase().contains("FROM CRYXX") || originalSql.toUpperCase().contains("FROM MZXX") || originalSql.toUpperCase().contains("FROM JBXX") || originalSql.toUpperCase().contains("FROM BMXX") || originalSql.toUpperCase().contains("FROM HZJBXX") || originalSql.toUpperCase().contains("RENAME TABLE") || originalSql.toUpperCase().contains("FROM YHYKSXX") || originalSql.toUpperCase().contains("FROM YHYJSXX") || originalSql.toUpperCase().contains("ALTER TABLE") || originalSql.toUpperCase().contains("CREATE TABLE")) { |
| | | return originalSql; |
| | | } |
| | | if(originalSql.contains("and onorgid")){ |
| | | originalSql=originalSql.replace("and onorgid",""); |
| | | if (originalSql.contains("and onorgid")) { |
| | | originalSql = originalSql.replace("and onorgid", ""); |
| | | return originalSql; |
| | | } |
| | | // æå orgid ç WHERE åå¥ |
| | |
| | | * @param uuid å¯ä¸æ è¯ |
| | | * @return ç»æ |
| | | */ |
| | | public String login(String username, String password, String code, String uuid, String orgid) { |
| | | public String login(String username, String password, String code, String uuid, String orgid, String campusid) { |
| | | boolean captchaEnabled = configService.selectCaptchaEnabled(); |
| | | // éªè¯ç å¼å
³ |
| | | if (captchaEnabled) { |
| | |
| | | // ç¨æ·éªè¯ |
| | | Authentication authentication = null; |
| | | try { |
| | | UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username + "&" + orgid, password); |
| | | UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username + "&" + orgid + "&" + campusid, password); |
| | | AuthenticationContextHolder.setContext(authenticationToken); |
| | | // è¯¥æ¹æ³ä¼å»è°ç¨UserDetailsServiceImpl.loadUserByUsername |
| | | authentication = authenticationManager.authenticate(authenticationToken); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('monitor:job:edit')") |
| | | @Log(title = "宿¶ä»»å¡", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException { |
| | | if (!CronUtils.isValid(job.getCronExpression())) { |
| | | return error("ä¿®æ¹ä»»å¡'" + job.getJobName() + "'失败ï¼Cron表达å¼ä¸æ£ç¡®"); |
| | |
| | | * @param userName ç¨æ·å |
| | | * @return ç¨æ·å¯¹è±¡ä¿¡æ¯ |
| | | */ |
| | | public SysUser selectUserByUserNameByCondition(@Param("userName") String userName, @Param("orgid") String orgid, @Param("deptId") String deptId); |
| | | public SysUser selectUserByUserNameByCondition(@Param("userName") String userName, @Param("deptId") String deptId); |
| | | |
| | | /** |
| | | * éè¿ç¨æ·IDæ¥è¯¢ç¨æ· |
| | |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import com.smartor.domain.SvyTaskVO; |
| | | import com.smartor.domain.SysUserOrg; |
| | | import com.smartor.mapper.SysUserDeptMapper; |
| | | import com.smartor.mapper.SysUserOrgMapper; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private SysUserMapper userMapper; |
| | | |
| | | @Autowired |
| | | private SysUserOrgMapper sysUserOrgMapper; |
| | | |
| | | @Autowired |
| | | private SysDeptMapper sysDeptMapper; |
| | |
| | | @Override |
| | | public SysUser selectUserByUserName2(String userName) { |
| | | String[] split = userName.split("&"); |
| | | SysUser sysUser = userMapper.selectUserByUserNameByCondition(split[0], split[1], null); |
| | | SysUser sysUser = userMapper.selectUserByUserNameByCondition(split[0], null); |
| | | |
| | | //è·åå½åç»éäººçæºæåé¢åº |
| | | SysUserOrg sysUserOrg = new SysUserOrg(); |
| | | sysUserOrg.setUserId(sysUser.getUserId()); |
| | | sysUserOrg.setOrgid(split[1].equals("null") ? "" : split[1]); |
| | | sysUserOrg.setCampusid(split[2].equals("null") ? "" : split[2]); |
| | | List<SysUserOrg> sysUserOrgs = sysUserOrgMapper.selectSysUserOrgList(sysUserOrg); |
| | | if (!CollectionUtils.isEmpty(sysUserOrgs)) { |
| | | sysUser.setOrgid(sysUserOrgs.get(0).getOrgid()); |
| | | sysUser.setCampusid(sysUserOrgs.get(0).getCampusid()); |
| | | } |
| | | |
| | | if (Objects.isNull(sysUser)) return sysUser; |
| | | List<SysDept> sysDepts = null; |
| | | if (StringUtils.isNotEmpty(split[0]) && split[0].equals("admin")) { |
| | |
| | | if (split[2].contains("null")) { |
| | | split[2] = null; |
| | | } |
| | | SysUser sysUser = userMapper.selectUserByUserNameByCondition(split[0], split[1], split[2]); |
| | | SysUser sysUser = userMapper.selectUserByUserNameByCondition(split[0], split[2]); |
| | | |
| | | //è·åå½åç»éäººçæºæåé¢åº |
| | | SysUserOrg sysUserOrg = new SysUserOrg(); |
| | | sysUserOrg.setUserId(sysUser.getUserId()); |
| | | sysUserOrg.setOrgid(split[1].equals("null") ? "" : split[1]); |
| | | sysUserOrg.setCampusid(split[3].equals("null") ? "" : split[3]); |
| | | List<SysUserOrg> sysUserOrgs = sysUserOrgMapper.selectSysUserOrgList(sysUserOrg); |
| | | if (!CollectionUtils.isEmpty(sysUserOrgs)) { |
| | | sysUser.setOrgid(sysUserOrgs.get(0).getOrgid()); |
| | | sysUser.setCampusid(sysUserOrgs.get(0).getCampusid()); |
| | | } |
| | | |
| | | log.info("selectUserByUserNameAndDeptIdçsysUserçå¼ä¸ºï¼{}", sysUser); |
| | | if (Objects.isNull(sysUser)) return sysUser; |
| | | List<SysDept> sysDepts = null; |
| | |
| | | <result property="userType" column="user_type"/> |
| | | <result property="searchscope" column="searchscope"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="campusid" column="campusid"/> |
| | | <association property="dept" column="dept_id" javaType="com.ruoyi.common.core.domain.entity.SysDept" |
| | | resultMap="deptResult"/> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/> |
| | |
| | | <result property="orderNum" column="order_num"/> |
| | | <result property="leader" column="leader"/> |
| | | <result property="status" column="dept_status"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="RoleResult" type="com.ruoyi.common.core.domain.entity.SysRole"> |
| | |
| | | u.dept_id, |
| | | u.id_card, |
| | | u.hosp_info, |
| | | u.campusid, |
| | | u.dept_info, |
| | | u.searchscope, |
| | | u.user_name, |
| | |
| | | u.create_time, |
| | | u.remark, |
| | | u.guid, |
| | | u.orgid, |
| | | d.dept_id, |
| | | d.parent_id, |
| | | d.ancestors, |
| | |
| | | u.nick_name, u.user_name, |
| | | u.email,u.id_card, |
| | | u.avatar, |
| | | u.campusid, |
| | | u.dept_name, |
| | | u.dept_code, |
| | | u.birthday, |
| | |
| | | <if test="userId != null"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND u.status = #{status} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND u.campusid = #{campusid} |
| | | </if> |
| | | <if test="idCard != null and idCard != ''"> |
| | | AND u.id_card = #{idCard} |
| | |
| | | </select> |
| | | <select id="getUserList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserResult"> |
| | | select u.user_id,u.title,u.his_user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, u.user_type, |
| | | u.nick_name, u.user_name,u.campusid, |
| | | u.nick_name, u.user_name, |
| | | u.email,u.id_card, |
| | | u.avatar, |
| | | u.dept_name, |
| | |
| | | where u.del_flag = '0' |
| | | <if test="userId != null"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND u.campusid = #{campusid} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | |
| | | u.email, |
| | | u.dept_code, |
| | | u.dept_name, |
| | | u.campusid, |
| | | u.birthday, |
| | | u.job_phone, |
| | | u.phonenumber, u.status,u.id_card, |
| | |
| | | resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.dept_id, u.hosp_info, u.dept_info,u.searchscope, u.user_name, u.user_type, |
| | | u.nick_name, |
| | | u.campusid, |
| | | u.email, |
| | | u.his_user_id, |
| | | u.title, |
| | |
| | | u.del_flag = '0' |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name = #{userName} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="deptId != null and deptId != ''"> |
| | | AND u.dept_id = #{deptId} |
| | |
| | | <if test="jobPhone != null and jobPhone != ''">job_phone,</if> |
| | | <if test="birthday != null ">birthday,</if> |
| | | <if test="hisUserId != null and hisUserId != ''">his_user_id,</if> |
| | | <if test="orgid != null and orgid != ''">orgid,</if> |
| | | <if test="deptCode != null and deptCode != ''">dept_code,</if> |
| | | <if test="deptName != null and deptName != ''">dept_name,</if> |
| | | <if test="campusid != null and campusid != ''">campusid,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</if> |
| | |
| | | <if test="jobPhone != null and jobPhone != ''">#{jobPhone},</if> |
| | | <if test="birthday != null and birthday != ''">#{birthday},</if> |
| | | <if test="hisUserId != null and hisUserId != ''">#{hisUserId},</if> |
| | | <if test="orgid != null and orgid != ''">#{orgid},</if> |
| | | <if test="deptCode != null and deptCode != ''">#{deptCode},</if> |
| | | <if test="deptName != null and deptName != ''">#{deptName},</if> |
| | | <if test="campusid != null and campusid != ''">#{campusid},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | <if test="idCard != null and idCard != ''">id_card=#{idCard},</if> |
| | | <if test="jobPhone != null and jobPhone != ''">job_phone=#{jobPhone},</if> |
| | | <if test="birthday != null ">birthday=#{birthday},</if> |
| | | <if test="orgid != null ">orgid=#{orgid},</if> |
| | | <if test="title != null and title != ''"> |
| | | title = #{title}, |
| | | </if> |
| | |
| | | </if> |
| | | <if test="deptCode != null and deptCode != ''">dept_code=#{deptCode},</if> |
| | | <if test="deptName != null and deptName != ''">dept_name=#{deptName},</if> |
| | | <if test="campusid != null and campusid != ''">campusid=#{campusid},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where user_id = #{userId} |
| | |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty("æºæID") |
| | | private String orgid; |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty("æºæID") |
| | | private String campusid; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ç¨æ·ä¸æºæé¢åºå
³è对象 sys_user_org |
| | | * |
| | | * @author lihu |
| | | * @date 2026-01-07 |
| | | */ |
| | | @Data |
| | | @ApiModel("ç¨æ·ä¸æºæé¢åºå
³è") |
| | | public class SysUserOrg extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | @ApiModelProperty("$column.columnComment") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** ç¨æ·ID */ |
| | | @ApiModelProperty("ç¨æ·ID") |
| | | @Excel(name = "ç¨æ·ID") |
| | | private Long userId; |
| | | |
| | | /** é¢åºID */ |
| | | @ApiModelProperty("é¢åºID") |
| | | @Excel(name = "é¢åºID") |
| | | private String campusid; |
| | | |
| | | /** æºæID */ |
| | | @ApiModelProperty("æºæID") |
| | | @Excel(name = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ */ |
| | | @ApiModelProperty("å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼") |
| | | private Long delFlag; |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.smartor.domain.SysUserOrg; |
| | | |
| | | /** |
| | | * ç¨æ·ä¸æºæé¢åºå
³èMapperæ¥å£ |
| | | * |
| | | * @author lihu |
| | | * @date 2026-01-07 |
| | | */ |
| | | @Mapper |
| | | public interface SysUserOrgMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param id ç¨æ·ä¸æºæé¢åºå
³èä¸»é® |
| | | * @return ç¨æ·ä¸æºæé¢åºå
³è |
| | | */ |
| | | public SysUserOrg selectSysUserOrgById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨æ·ä¸æºæé¢åºå
³èå表 |
| | | * |
| | | * @param sysUserOrg ç¨æ·ä¸æºæé¢åºå
³è |
| | | * @return ç¨æ·ä¸æºæé¢åºå
³èéå |
| | | */ |
| | | public List<SysUserOrg> selectSysUserOrgList(SysUserOrg sysUserOrg); |
| | | |
| | | /** |
| | | * æ°å¢ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param sysUserOrg ç¨æ·ä¸æºæé¢åºå
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysUserOrg(SysUserOrg sysUserOrg); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param sysUserOrg ç¨æ·ä¸æºæé¢åºå
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysUserOrg(SysUserOrg sysUserOrg); |
| | | |
| | | /** |
| | | * å é¤ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param id ç¨æ·ä¸æºæé¢åºå
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysUserOrgById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysUserOrgByIds(Long[] ids); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SysUserOrg; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¨æ·ä¸æºæé¢åºå
³èServiceæ¥å£ |
| | | * |
| | | * @author lihu |
| | | * @date 2026-01-07 |
| | | */ |
| | | public interface ISysUserOrgService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param id ç¨æ·ä¸æºæé¢åºå
³èä¸»é® |
| | | * @return ç¨æ·ä¸æºæé¢åºå
³è |
| | | */ |
| | | public SysUserOrg selectSysUserOrgById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨æ·ä¸æºæé¢åºå
³èå表 |
| | | * |
| | | * @param sysUserOrg ç¨æ·ä¸æºæé¢åºå
³è |
| | | * @return ç¨æ·ä¸æºæé¢åºå
³èéå |
| | | */ |
| | | public List<SysUserOrg> selectSysUserOrgList(SysUserOrg sysUserOrg); |
| | | |
| | | /** |
| | | * æ°å¢ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param sysUserOrg ç¨æ·ä¸æºæé¢åºå
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSysUserOrg(SysUserOrg sysUserOrg); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param sysUserOrg ç¨æ·ä¸æºæé¢åºå
³è |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSysUserOrg(SysUserOrg sysUserOrg); |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param ids éè¦å é¤çç¨æ·ä¸æºæé¢åºå
³è主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysUserOrgByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤ç¨æ·ä¸æºæé¢åºå
³èä¿¡æ¯ |
| | | * |
| | | * @param id ç¨æ·ä¸æºæé¢åºå
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSysUserOrgById(Long id); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.smartor.mapper.SysUserOrgMapper; |
| | | import com.smartor.domain.SysUserOrg; |
| | | import com.smartor.service.ISysUserOrgService; |
| | | |
| | | /** |
| | | * ç¨æ·ä¸æºæé¢åºå
³èServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author lihu |
| | | * @date 2026-01-07 |
| | | */ |
| | | @Service |
| | | public class SysUserOrgServiceImpl implements ISysUserOrgService |
| | | { |
| | | @Autowired |
| | | private SysUserOrgMapper sysUserOrgMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param id ç¨æ·ä¸æºæé¢åºå
³èä¸»é® |
| | | * @return ç¨æ·ä¸æºæé¢åºå
³è |
| | | */ |
| | | @Override |
| | | public SysUserOrg selectSysUserOrgById(Long id) |
| | | { |
| | | return sysUserOrgMapper.selectSysUserOrgById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¨æ·ä¸æºæé¢åºå
³èå表 |
| | | * |
| | | * @param sysUserOrg ç¨æ·ä¸æºæé¢åºå
³è |
| | | * @return ç¨æ·ä¸æºæé¢åºå
³è |
| | | */ |
| | | @Override |
| | | public List<SysUserOrg> selectSysUserOrgList(SysUserOrg sysUserOrg) |
| | | { |
| | | return sysUserOrgMapper.selectSysUserOrgList(sysUserOrg); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param sysUserOrg ç¨æ·ä¸æºæé¢åºå
³è |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSysUserOrg(SysUserOrg sysUserOrg) |
| | | { |
| | | sysUserOrg.setCreateTime(DateUtils.getNowDate()); |
| | | return sysUserOrgMapper.insertSysUserOrg(sysUserOrg); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param sysUserOrg ç¨æ·ä¸æºæé¢åºå
³è |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSysUserOrg(SysUserOrg sysUserOrg) |
| | | { |
| | | sysUserOrg.setUpdateTime(DateUtils.getNowDate()); |
| | | return sysUserOrgMapper.updateSysUserOrg(sysUserOrg); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ç¨æ·ä¸æºæé¢åºå
³è |
| | | * |
| | | * @param ids éè¦å é¤çç¨æ·ä¸æºæé¢åºå
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysUserOrgByIds(Long[] ids) |
| | | { |
| | | return sysUserOrgMapper.deleteSysUserOrgByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¨æ·ä¸æºæé¢åºå
³èä¿¡æ¯ |
| | | * |
| | | * @param id ç¨æ·ä¸æºæé¢åºå
³èä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSysUserOrgById(Long id) |
| | | { |
| | | return sysUserOrgMapper.deleteSysUserOrgById(id); |
| | | } |
| | | } |
| | |
| | | |
| | | <resultMap type="com.ruoyi.common.core.domain.entity.SysUser" id="SysUserResult"> |
| | | <id property="userId" column="user_id"/> |
| | | <id property="orgid" column="orgid"/> |
| | | <id property="hisUserId" column="his_user_id"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | <result property="userCode" column="user_code"/> |
| | |
| | | <result property="userType" column="user_type"/> |
| | | <result property="searchscope" column="searchscope"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="campusid" column="campusid"/> |
| | | <association property="dept" column="dept_id" javaType="com.ruoyi.common.core.domain.entity.SysDept" |
| | | resultMap="deptResult"/> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/> |
| | |
| | | <result property="orderNum" column="order_num"/> |
| | | <result property="leader" column="leader"/> |
| | | <result property="status" column="dept_status"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="RoleResult" type="com.ruoyi.common.core.domain.entity.SysRole"> |
| | |
| | | u.id_card, |
| | | u.hosp_info, |
| | | u.dept_info, |
| | | u.campusid, |
| | | u.searchscope, |
| | | u.user_name, |
| | | u.user_type, |
| | |
| | | u.create_time, |
| | | u.remark, |
| | | u.guid, |
| | | u.orgid, |
| | | d.dept_id, |
| | | d.parent_id, |
| | | d.ancestors, |
| | |
| | | r.data_scope, |
| | | r.status as role_status |
| | | from sys_user u |
| | | left join sys_user_org o on o.user_id = u.user_id |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | |
| | | <select id="selectUserList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserResult"> |
| | | select u.user_code,u.user_id,u.title,u.his_user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, |
| | | u.user_type, |
| | | u.campusid, |
| | | u.nick_name, u.user_name, |
| | | u.email,u.id_card, |
| | | u.avatar, |
| | | u.birthday, |
| | | u.orgid, |
| | | u.job_phone, |
| | | u.phonenumber, u.sex, u.status, |
| | | u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user |
| | |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name = #{userName} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="nickName != null and nickName != ''"> |
| | | AND u.nick_name like concat('%', #{nickName}, '%') |
| | |
| | | </if> |
| | | <if test="jobPhone != null and jobPhone != ''"> |
| | | AND u.job_phone = #{jobPhone} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND u.campusid = #{campusid} |
| | | </if> |
| | | <if test="birthday != null and birthday != ''"> |
| | | AND u.birthday = #{birthday} |
| | |
| | | u.email, |
| | | u.birthday, |
| | | u.job_phone, |
| | | u.orgid, |
| | | u.campusid, |
| | | u.phonenumber, u.status,u.id_card, |
| | | u.create_time |
| | | from sys_user u |
| | |
| | | <if test="hisUserId != null and hisUserId != ''"> |
| | | AND u.his_user_id = #{hisUserId} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND u.campusid = #{campusid} |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | |
| | | u.nick_name, |
| | | u.user_code, |
| | | u.email, |
| | | u.campusid, |
| | | u.his_user_id, |
| | | u.title, |
| | | u.orgid, |
| | | u.job_phone, |
| | | u.birthday, |
| | | u.phonenumber, u.status,u.id_card, |
| | |
| | | <if test="birthday != null ">birthday,</if> |
| | | <if test="hisUserId != null and hisUserId != ''">his_user_id,</if> |
| | | <if test="guid != null and guid != ''">guid,</if> |
| | | <if test="orgid != null and orgid != ''">orgid,</if> |
| | | <if test="deptCode != null and deptCode != ''">dept_code,</if> |
| | | <if test="deptName != null and deptName != ''">dept_name,</if> |
| | | <if test="userCode != null and userCode != ''">user_code,</if> |
| | | <if test="campusid != null and campusid != ''">campusid,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</if> |
| | |
| | | <if test="birthday != null">#{birthday},</if> |
| | | <if test="hisUserId != null and hisUserId != ''">#{hisUserId},</if> |
| | | <if test="guid != null and guid != ''">#{guid},</if> |
| | | <if test="orgid != null and orgid != ''">#{orgid},</if> |
| | | <if test="deptCode != null and deptCode != ''">#{deptCode},</if> |
| | | <if test="deptName != null and deptName != ''">#{deptName},</if> |
| | | <if test="userCode != null and userCode != ''">#{userCode},</if> |
| | | <if test="campusid != null and campusid != ''">#{campusid},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | insert into sys_user( |
| | | user_id, dept_id, user_name, nick_name, email, avatar, phonenumber, sex, password, status, create_by, remark, |
| | | user_type, dept_info, hosp_info, searchscope, id_card, title, job_phone, birthday, his_user_id, guid, |
| | | orgid,user_code,campusid, |
| | | user_code, |
| | | create_time |
| | | ) values |
| | | <foreach collection="list" item="item" separator=","> |
| | |
| | | #{item.birthday}, |
| | | #{item.hisUserId}, |
| | | #{item.guid}, |
| | | #{item.orgid}, |
| | | #{item.userCode}, |
| | | #{item.campusid}, |
| | | now() |
| | | ) |
| | | </foreach> |
| | |
| | | <if test="idCard != null and idCard != ''">id_card=#{idCard},</if> |
| | | <if test="jobPhone != null and jobPhone != ''">job_phone=#{jobPhone},</if> |
| | | <if test="birthday != null ">birthday=#{birthday},</if> |
| | | <if test="orgid != null ">orgid=#{orgid},</if> |
| | | <if test="userCode != null ">user_code=#{userCode},</if> |
| | | <if test="campusid != null ">campusid=#{campusid},</if> |
| | | <if test="title != null and title != ''"> |
| | | title = #{title}, |
| | | </if> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SysUserOrgMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SysUserOrg" id="SysUserOrgResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="userId" column="user_id"/> |
| | | <result property="campusid" column="campusid"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysUserOrgVo"> |
| | | select id, |
| | | user_id, |
| | | campusid, |
| | | orgid, |
| | | del_flag, |
| | | create_time, |
| | | create_by, |
| | | update_time, |
| | | update_by |
| | | from sys_user_org |
| | | </sql> |
| | | |
| | | <select id="selectSysUserOrgList" parameterType="com.smartor.domain.SysUserOrg" |
| | | resultMap="SysUserOrgResult"> |
| | | <include refid="selectSysUserOrgVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="userId != null "> |
| | | and user_id = #{userId} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | and campusid = #{campusid} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSysUserOrgById" parameterType="Long" |
| | | resultMap="SysUserOrgResult"> |
| | | <include refid="selectSysUserOrgVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSysUserOrg" parameterType="com.smartor.domain.SysUserOrg" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into sys_user_org |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="userId != null">user_id, |
| | | </if> |
| | | <if test="campusid != null">campusid, |
| | | </if> |
| | | <if test="orgid != null">orgid, |
| | | </if> |
| | | <if test="delFlag != null">del_flag, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="userId != null">#{userId}, |
| | | </if> |
| | | <if test="campusid != null">#{campusid}, |
| | | </if> |
| | | <if test="orgid != null">#{orgid}, |
| | | </if> |
| | | <if test="delFlag != null">#{delFlag}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSysUserOrg" parameterType="com.smartor.domain.SysUserOrg"> |
| | | update sys_user_org |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="userId != null">user_id = |
| | | #{userId}, |
| | | </if> |
| | | <if test="campusid != null">campusid = |
| | | #{campusid}, |
| | | </if> |
| | | <if test="orgid != null">orgid = |
| | | #{orgid}, |
| | | </if> |
| | | <if test="delFlag != null">del_flag = |
| | | #{delFlag}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteSysUserOrgById" parameterType="Long"> |
| | | update sys_user_org |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteSysUserOrgByIds" parameterType="String"> |
| | | update sys_user_org |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | |
| | | </mapper> |