| | |
| | | @ApiOperation("æ¥è¯¢æ ç¾å表") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseTag baseTag) { |
| | | public TableDataInfo list(@RequestBody BaseTag baseTag) { |
| | | startPage(); |
| | | List<BaseTag> list = baseTagService.selectBaseTagList(baseTag); |
| | | return getDataTable(list); |
| | |
| | | public AjaxResult remove(@PathVariable Long[] tagids) { |
| | | return toAjax(baseTagService.deleteBaseTagByTagids(tagids)); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | 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.BaseTagcategory; |
| | | import com.smartor.service.IBaseTagcategoryService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | 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; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ç¾åç±»Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-15 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/tagcategory") |
| | | public class BaseTagcategoryController extends BaseController { |
| | | @Autowired |
| | | private IBaseTagcategoryService baseTagcategoryService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ç¾åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseTagcategory baseTagcategory) { |
| | | startPage(); |
| | | List<BaseTagcategory> list = baseTagcategoryService.selectBaseTagcategoryList(baseTagcategory); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ ç¾åç±»å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:export')") |
| | | @Log(title = "æ ç¾åç±»", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, BaseTagcategory baseTagcategory) { |
| | | List<BaseTagcategory> list = baseTagcategoryService.selectBaseTagcategoryList(baseTagcategory); |
| | | ExcelUtil<BaseTagcategory> util = new ExcelUtil<BaseTagcategory>(BaseTagcategory.class); |
| | | util.exportExcel(response, list, "æ ç¾åç±»æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ ç¾å类详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:query')") |
| | | @GetMapping(value = "/{tagcategoryid}") |
| | | public AjaxResult getInfo(@PathVariable("tagcategoryid") Long tagcategoryid) { |
| | | return success(baseTagcategoryService.selectBaseTagcategoryByTagcategoryid(tagcategoryid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ ç¾åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:add')") |
| | | @Log(title = "æ ç¾åç±»", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody BaseTagcategory baseTagcategory) { |
| | | return toAjax(baseTagcategoryService.insertBaseTagcategory(baseTagcategory)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ ç¾åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:edit')") |
| | | @Log(title = "æ ç¾åç±»", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody BaseTagcategory baseTagcategory) { |
| | | return toAjax(baseTagcategoryService.updateBaseTagcategory(baseTagcategory)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿 ç¾åç±» |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tagcategory:remove')") |
| | | @Log(title = "æ ç¾åç±»", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{tagcategoryids}") |
| | | public AjaxResult remove(@PathVariable Long[] tagcategoryids) { |
| | | return toAjax(baseTagcategoryService.deleteBaseTagcategoryByTagcategoryids(tagcategoryids)); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æ ç¾ç±»å«åè·åæ ç¾åç±»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("æ ¹æ®æ ç¾ç±»å«åè·åæ ç¾å类信æ¯ï¼æ ç¾åç±»ï¼") |
| | | @PostMapping("/baseTagCategoryByName") |
| | | public TableDataInfo baseTagCategoryByName(@RequestParam("name") String name) { |
| | | return getDataTable(baseTagcategoryService.baseTagCategoryByName(name)); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.PatArchive; |
| | | import com.smartor.domain.PatArchiveReq; |
| | | import com.smartor.domain.PatImportInfoVO; |
| | | import com.smartor.domain.PatUpInfoVO; |
| | | import com.smartor.service.IPatArchiveService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | @ApiOperation("è·åæ£è
æ¡£æ¡è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:query')") |
| | | @GetMapping(value = "/{patid}") |
| | | @ApiImplicitParam(name = "patid",value = "æ£è
id") |
| | | @ApiImplicitParam(name = "patid", value = "æ£è
id") |
| | | public AjaxResult getInfo(@PathVariable(name = "patid") Long patid) { |
| | | return success(patArchiveService.selectPatArchiveByPatid(patid)); |
| | | } |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:remove')") |
| | | @Log(title = "æ£è
æ¡£æ¡", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{patids}") |
| | | @ApiImplicitParam(name = "patids",value = "æ£è
idéå", dataType = "long", dataTypeClass = Long.class) |
| | | @ApiImplicitParam(name = "patids", value = "æ£è
idéå", dataType = "long", dataTypeClass = Long.class) |
| | | public AjaxResult remove(@PathVariable Long[] patids) { |
| | | return toAjax(patArchiveService.deletePatArchiveByPatids(patids)); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("导å
¥æ£è
æä»¶å¤ç") |
| | | @PostMapping("/importFilehandle") |
| | | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "tags", value = "æ ç¾"), |
| | | @ApiImplicitParam(name = "multipartFile", value = "ä¸ä¼ æä»¶") |
| | | }) |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "tags", value = "æ ç¾"), @ApiImplicitParam(name = "multipartFile", value = "ä¸ä¼ æä»¶")}) |
| | | public AjaxResult importFilehandle(@RequestParam("tags") String tags, @RequestParam("multipartFile") MultipartFile multipartFile) { |
| | | //è·åå½åç»é人 |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | PatUpInfoVO patUpInfoVO = patArchiveService.importFilehandle(user, tags, multipartFile); |
| | | |
| | | return success(patUpInfoVO); |
| | | } |
| | | |
| | | /** |
| | | * 导å
¥æ£è
ä¿¡æ¯æ¨¡æ¿ |
| | | * |
| | | * @param response |
| | | */ |
| | | @ApiOperation("æ£è
ä¿¡æ¯å¯¼å
¥æ¨¡æ¿") |
| | | @PostMapping("/patImportTemplate") |
| | | public void patImportTemplate(HttpServletResponse response) { |
| | | ExcelUtil<PatImportInfoVO> util = new ExcelUtil<PatImportInfoVO>(PatImportInfoVO.class); |
| | | util.importTemplateExcel(response, "æ£è
ä¿¡æ¯å¯¼å
¥"); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param patArchiveList |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
é误信æ¯") |
| | | @PostMapping("/exportErrPatInfo") |
| | | public AjaxResult exportErrPatInfo(@RequestBody List<PatArchive> patArchiveList) { |
| | | @PostMapping(value = "/exportErrPatInfo") |
| | | public void exportErrPatInfo(HttpServletResponse response, @RequestBody List<PatImportInfoVO> patArchiveList) { |
| | | |
| | | return success(patArchiveService.exportErrPatInfo(patArchiveList)); |
| | | ExcelUtil<PatImportInfoVO> util = new ExcelUtil<PatImportInfoVO>(PatImportInfoVO.class); |
| | | util.exportExcel(response, patArchiveList, "å¯¼åºæ£è
é误信æ¯"); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
å表") |
| | | @PostMapping("/patInfoByContion") |
| | | public TableDataInfo patInfoByCondition(@RequestBody PatArchiveReq patArchive) { |
| | | startPage(); |
| | | return getDataTable(patArchiveService.patInfoByContion(patArchive)); |
| | | } |
| | | |
| | | |
| | | // /** |
| | | // * æ£è
æ ç¾ç®¡ç |
| | | // */ |
| | | // @ApiOperation("æ£è
æ ç¾ç®¡ç") |
| | | // @PostMapping("/patTagByContion") |
| | | // public TableDataInfo patTagByContion(@RequestBody List<Long> tagids) { |
| | | // startPage(); |
| | | // return getDataTable(patArchiveService.patTagByContion(tagids)); |
| | | // } |
| | | |
| | | |
| | | /** |
| | | * å¯¼åºæ£è
åè¡¨æ ¹æ®æ¡ä»¶ |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
åè¡¨æ ¹æ®æ¡ä»¶") |
| | | @PostMapping("/exportPatInfo") |
| | | public void exportPpatInfo(HttpServletResponse response, @RequestBody PatArchiveReq patArchive) { |
| | | startPage(); |
| | | List<PatArchive> patArchives = patArchiveService.patInfoByContion(patArchive); |
| | | if (!CollectionUtils.isEmpty(patArchives)) { |
| | | for (int i = 0; i < patArchives.size(); i++) { |
| | | patArchives.get(i).setTag(patArchives.get(i).getTagList().toString()); |
| | | } |
| | | } |
| | | ExcelUtil<PatArchive> util = new ExcelUtil<PatArchive>(PatArchive.class); |
| | | util.exportExcel(response, patArchives, "æ£è
æ¡£æ¡æ°æ®"); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.smartor.domain.PatArchivetag; |
| | | import com.smartor.service.IPatArchivetagService; |
| | | 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.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * æ£è
æ¡£æ¡æ ç¾Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-13 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/archivetag") |
| | | public class PatArchivetagController extends BaseController { |
| | | @Autowired |
| | | private IPatArchivetagService patArchivetagService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æ¡£æ¡æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatArchivetag patArchivetag) { |
| | | startPage(); |
| | | List<PatArchivetag> list = patArchivetagService.selectPatArchivetagList(patArchivetag); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ£è
æ¡£æ¡æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:export')") |
| | | @Log(title = "æ£è
æ¡£æ¡æ ç¾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatArchivetag patArchivetag) { |
| | | List<PatArchivetag> list = patArchivetagService.selectPatArchivetagList(patArchivetag); |
| | | ExcelUtil<PatArchivetag> util = new ExcelUtil<PatArchivetag>(PatArchivetag.class); |
| | | util.exportExcel(response, list, "æ£è
æ¡£æ¡æ ç¾æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ£è
æ¡£æ¡æ ç¾è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patArchivetagService.selectPatArchivetagById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
æ¡£æ¡æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:add')") |
| | | @Log(title = "æ£è
æ¡£æ¡æ ç¾", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody PatArchivetag patArchivetag) { |
| | | return toAjax(patArchivetagService.insertPatArchivetag(patArchivetag)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
æ¡£æ¡æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:edit')") |
| | | @Log(title = "æ£è
æ¡£æ¡æ ç¾", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody PatArchivetag patArchivetag) { |
| | | return toAjax(patArchivetagService.updatePatArchivetag(patArchivetag)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿£è
æ¡£æ¡æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archivetag:remove')") |
| | | @Log(title = "æ£è
æ¡£æ¡æ ç¾", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patArchivetagService.deletePatArchivetagByIds(ids)); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.ruoyi.smartor.controller; |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | 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 smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/schemeautofinshrule") |
| | | public class SchemeAutofinshruleController extends BaseController |
| | | { |
| | | public class SchemeAutofinshruleController extends BaseController { |
| | | @Autowired |
| | | private ISchemeAutofinshruleService schemeAutofinshruleService; |
| | | |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SchemeAutofinshrule schemeAutofinshrule) |
| | | { |
| | | public TableDataInfo list(SchemeAutofinshrule schemeAutofinshrule) { |
| | | startPage(); |
| | | List<SchemeAutofinshrule> list = schemeAutofinshruleService.selectSchemeAutofinshruleList(schemeAutofinshrule); |
| | | return getDataTable(list); |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:export')") |
| | | @Log(title = "æ¹æ¡ç»æ¡è§å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeAutofinshrule schemeAutofinshrule) |
| | | { |
| | | public void export(HttpServletResponse response, SchemeAutofinshrule schemeAutofinshrule) { |
| | | List<SchemeAutofinshrule> list = schemeAutofinshruleService.selectSchemeAutofinshruleList(schemeAutofinshrule); |
| | | ExcelUtil<SchemeAutofinshrule> util = new ExcelUtil<SchemeAutofinshrule>(SchemeAutofinshrule.class); |
| | | util.exportExcel(response, list, "æ¹æ¡ç»æ¡è§åæ°æ®"); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(schemeAutofinshruleService.selectSchemeAutofinshruleById(id)); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:add')") |
| | | @Log(title = "æ¹æ¡ç»æ¡è§å", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SchemeAutofinshrule schemeAutofinshrule) |
| | | { |
| | | public AjaxResult add(@RequestBody SchemeAutofinshrule schemeAutofinshrule) { |
| | | return toAjax(schemeAutofinshruleService.insertSchemeAutofinshrule(schemeAutofinshrule)); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:edit')") |
| | | @Log(title = "æ¹æ¡ç»æ¡è§å", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SchemeAutofinshrule schemeAutofinshrule) |
| | | { |
| | | public AjaxResult edit(@RequestBody SchemeAutofinshrule schemeAutofinshrule) { |
| | | return toAjax(schemeAutofinshruleService.updateSchemeAutofinshrule(schemeAutofinshrule)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemeautofinshrule:remove')") |
| | | @Log(title = "æ¹æ¡ç»æ¡è§å", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(schemeAutofinshruleService.deleteSchemeAutofinshruleByIds(ids)); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.smartor.domain.PatImportInfoVO; |
| | | import com.smartor.domain.SvyLibTopicRes; |
| | | import com.smartor.domain.SvyTopicReq; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | |
| | | |
| | | /** |
| | | * æ¹é导å
¥é®é®é¢ç® |
| | | * æ¹é导å
¥é®é¢ç® |
| | | */ |
| | | @ApiOperation("æ¹é导å
¥é®é®é¢ç®") |
| | | @PostMapping("/importLitTopic") |
| | | public AjaxResult importLitTopic(MultipartFile multipartFile) { |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | |
| | | return success(svyLibTopicService.importLitTopic(user, multipartFile)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导å
¥é¢ç®æ¨¡æ¿ |
| | | * |
| | | * @param response |
| | | */ |
| | | @ApiOperation("导å
¥é¢ç®æ¨¡æ¿") |
| | | @PostMapping("/importLitTopicTemplate") |
| | | public void importLitTopicTemplate(HttpServletResponse response) { |
| | | ExcelUtil<SvyLibTopicRes> util = new ExcelUtil<SvyLibTopicRes>(SvyLibTopicRes.class); |
| | | util.importTemplateExcel(response, "导å
¥é¢ç®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé¢ç® |
| | | */ |
| | | @ApiOperation("è·åé¢ç®") |
| | | @PostMapping("/showTopic") |
| | | public AjaxResult showTopic(@RequestBody SvyTopicReq svyTopicReq) { |
| | | return success(svyLibTopicService.showTopic(svyTopicReq)); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | /** |
| | | * æ ç¾å类对象 base_tagcategory |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-15 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "BaseTagcategory", description = "æ ç¾å类对象") |
| | | public class BaseTagcategory extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(name = "èªå¢ID") |
| | | private Long tagcategoryid; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(name = "æºæID") |
| | | @Excel(name = " æºæID ") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * æ¼é³ç |
| | | */ |
| | | @ApiModelProperty(name = "æ¼é³ç ") |
| | | @Excel(name = " æ¼é³ç ") |
| | | private String pym; |
| | | |
| | | /** |
| | | * äºç¬ç |
| | | */ |
| | | @ApiModelProperty(name = "äºç¬ç ") |
| | | @Excel(name = " äºç¬ç ") |
| | | private String wbm; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(name = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty(name = "ä¸ä¼ æ è®°") |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @ApiModelProperty(name = "ä¸ä¼ æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æ ç¾åç§° |
| | | */ |
| | | @ApiModelProperty(name = "æ ç¾ç±»å«åç§°") |
| | | @Excel(name = " æ ç¾ç±»å«åç§° ") |
| | | private String categoryname; |
| | | |
| | | @ApiModelProperty(name = "æ ç¾æ°é") |
| | | private String tagNum; |
| | | |
| | | } |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | * æ¥æº |
| | | */ |
| | | @ApiModelProperty("æ¥æº") |
| | | @Excel(name = " æ¥æº ") |
| | | private Long source; |
| | | |
| | | /** |
| | | * 建档æ¶é´ |
| | | */ |
| | | @ApiModelProperty("建档æ¶é´") |
| | | @Excel(name = " 建档æ¶é´ ") |
| | | private Date archivetime; |
| | | |
| | | /** |
| | |
| | | * 亲å±å·ç |
| | | */ |
| | | @ApiModelProperty("亲å±å·ç ") |
| | | @Excel(name = " 亲å±å·ç ") |
| | | private String relativetelcode; |
| | | |
| | | /** |
| | | * è¯ä»¶ç±»å |
| | | */ |
| | | @ApiModelProperty("è¯ä»¶ç±»å") |
| | | @Excel(name = " è¯ä»¶ç±»å ") |
| | | private String iccardtype; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("æºæID") |
| | | @Excel(name = " æºæID ") |
| | | private String orgid; |
| | | |
| | | /** |
| | |
| | | * æ ç¾ |
| | | */ |
| | | @ApiModelProperty("æ ç¾") |
| | | @Excel(name = " æ ç¾ ", cellType = Excel.ColumnType.STRING) |
| | | private String tag; |
| | | |
| | | @ApiModelProperty("æ ç¾éå") |
| | | private List<String> tagList; |
| | | |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("patid", getPatid()).append("name", getName()).append("sex", getSex()).append("iccardno", getIccardno()).append("birthdate", getBirthdate()).append("age", getAge()).append("source", getSource()).append("archivetime", getArchivetime()).append("archiveby", getArchiveby()).append("telcode", getTelcode()).append("relativetelcode", getRelativetelcode()).append("iccardtype", getIccardtype()).append("orgid", getOrgid()).append("openid", getOpenid()).append("delFlag", getDelFlag()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("isupload", getIsupload()).append("uploadTime", getUploadTime()).toString(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
æ¡£æ¡å¯¹è±¡ pat_archive |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @ApiModel(value = "PatArchive", description = "æ£è
æ¡£æ¡å¯¹è±¡") |
| | | @Data |
| | | public class PatArchiveAndTag extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(name = "èªå¢ID") |
| | | private Long patid; |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @ApiModelProperty("å§å") |
| | | @Excel(name = " å§å ") |
| | | private String name; |
| | | |
| | | /** |
| | | * æ§å« 1:ç· 2:女 |
| | | */ |
| | | @ApiModelProperty("æ§å«") |
| | | @Excel(name = " æ§å« ") |
| | | private Long sex; |
| | | |
| | | /** |
| | | * è¯ä»¶å·ç |
| | | */ |
| | | @ApiModelProperty("è¯ä»¶å·ç ") |
| | | @Excel(name = " è¯ä»¶å·ç ") |
| | | private String iccardno; |
| | | |
| | | /** |
| | | * çæ¥ |
| | | */ |
| | | @ApiModelProperty("çæ¥") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " çæ¥ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date birthdate; |
| | | |
| | | /** |
| | | * å¹´é¾ |
| | | */ |
| | | @ApiModelProperty("å¹´é¾") |
| | | @Excel(name = " å¹´é¾ ") |
| | | private Long age; |
| | | |
| | | /** |
| | | * æ¥æº |
| | | */ |
| | | @ApiModelProperty("æ¥æº") |
| | | @Excel(name = " æ¥æº ") |
| | | private Long source; |
| | | |
| | | /** |
| | | * 建档æ¶é´ |
| | | */ |
| | | @ApiModelProperty("建档æ¶é´") |
| | | private Date archivetime; |
| | | |
| | | /** |
| | | * 建档人 |
| | | */ |
| | | @ApiModelProperty("建档人") |
| | | private String archiveby; |
| | | |
| | | /** |
| | | * ææºå·ç |
| | | */ |
| | | @ApiModelProperty("ææºå·ç ") |
| | | @Excel(name = " ææºå·ç ") |
| | | private String telcode; |
| | | |
| | | /** |
| | | * 亲å±å·ç |
| | | */ |
| | | @ApiModelProperty("亲å±å·ç ") |
| | | private String relativetelcode; |
| | | |
| | | /** |
| | | * è¯ä»¶ç±»å |
| | | */ |
| | | @ApiModelProperty("è¯ä»¶ç±»å") |
| | | private String iccardtype; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("æºæID") |
| | | @Excel(name = " æºæID ") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * 微信openid |
| | | */ |
| | | @ApiModelProperty("微信openid") |
| | | private String openid; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty("å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @ApiModelProperty("æ ç¾") |
| | | private String tag; |
| | | |
| | | @ApiModelProperty("æ ç¾éå") |
| | | List<PatArchivetag> patArchivetags; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("patid", getPatid()).append("name", getName()).append("sex", getSex()).append("iccardno", getIccardno()).append("birthdate", getBirthdate()).append("age", getAge()).append("source", getSource()).append("archivetime", getArchivetime()).append("archiveby", getArchiveby()).append("telcode", getTelcode()).append("relativetelcode", getRelativetelcode()).append("iccardtype", getIccardtype()).append("orgid", getOrgid()).append("openid", getOpenid()).append("delFlag", getDelFlag()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("isupload", getIsupload()).append("uploadTime", getUploadTime()).toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
æ¡£æ¡è¯·æ±å¯¹è±¡ |
| | | * |
| | | * @author ls |
| | | * @date 2023-06-14 |
| | | */ |
| | | @ApiModel(value = "PatArchiveReq", description = "æ£è
æ¡£æ¡è¯·æ±å¯¹è±¡") |
| | | @Data |
| | | public class PatArchiveReq { |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @ApiModelProperty("å§å") |
| | | @Excel(name = " å§å ") |
| | | private String name; |
| | | |
| | | /** |
| | | * è¯ä»¶å·ç |
| | | */ |
| | | @ApiModelProperty("è¯ä»¶å·ç ") |
| | | @Excel(name = " è¯ä»¶å·ç ") |
| | | private String iccardno; |
| | | |
| | | |
| | | /** |
| | | * ææºå·ç |
| | | */ |
| | | @ApiModelProperty("ææºå·ç ") |
| | | @Excel(name = " ææºå·ç ") |
| | | private String telcode; |
| | | |
| | | /** |
| | | * æ ç¾ID |
| | | */ |
| | | @ApiModelProperty("æ ç¾ID") |
| | | private String tagId; |
| | | |
| | | |
| | | } |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | |
| | | |
| | | /** |
| | | * æ£è
æ¡£æ¡æ ç¾å¯¹è±¡ pat_archivetag |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-02 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "PatArchivetag", description = "æ£è
æ¡£æ¡æ ç¾å¯¹è±¡") |
| | | public class PatArchivetag extends BaseEntity |
| | | { |
| | | public class PatArchivetag extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** èªå¢ID */ |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(name = "èªå¢ID") |
| | | private Long id; |
| | | |
| | | /** æ ç¾åç±»ID */ |
| | | /** |
| | | * æ ç¾åç±»ID |
| | | */ |
| | | @ApiModelProperty(name = "æ ç¾åç±»ID") |
| | | private Long tagcategoryid; |
| | | |
| | | /** æ ç¾ID */ |
| | | /** |
| | | * æ ç¾ID |
| | | */ |
| | | @ApiModelProperty(name = "æ ç¾ID") |
| | | private Long tagid; |
| | | |
| | | /** æºæID */ |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(name = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** å 餿 è®° */ |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(name = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** ä¸ä¼ æ è®° */ |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @ApiModelProperty(name = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** ä¸ä¼ æ¶é´ */ |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @ApiModelProperty(name = "ä¸ä¼ æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date uploadTime; |
| | | |
| | | /** æ¡£æ¡ID */ |
| | | @ApiModelProperty(name = "æ ç¾åç§°") |
| | | private String tagname; |
| | | |
| | | /** |
| | | * æ¡£æ¡ID |
| | | */ |
| | | @ApiModelProperty(name = "æ¡£æ¡ID") |
| | | private Long patid; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setTagcategoryid(Long tagcategoryid) |
| | | { |
| | | this.tagcategoryid = tagcategoryid; |
| | | } |
| | | |
| | | public Long getTagcategoryid() |
| | | { |
| | | return tagcategoryid; |
| | | } |
| | | public void setTagid(Long tagid) |
| | | { |
| | | this.tagid = tagid; |
| | | } |
| | | |
| | | public Long getTagid() |
| | | { |
| | | return tagid; |
| | | } |
| | | public void setOrgid(String orgid) |
| | | { |
| | | this.orgid = orgid; |
| | | } |
| | | |
| | | public String getOrgid() |
| | | { |
| | | return orgid; |
| | | } |
| | | public void setDelFlag(String delFlag) |
| | | { |
| | | this.delFlag = delFlag; |
| | | } |
| | | |
| | | public String getDelFlag() |
| | | { |
| | | return delFlag; |
| | | } |
| | | public void setIsupload(Long isupload) |
| | | { |
| | | this.isupload = isupload; |
| | | } |
| | | |
| | | public Long getIsupload() |
| | | { |
| | | return isupload; |
| | | } |
| | | public void setUploadTime(Date uploadTime) |
| | | { |
| | | this.uploadTime = uploadTime; |
| | | } |
| | | |
| | | public Date getUploadTime() |
| | | { |
| | | return uploadTime; |
| | | } |
| | | public void setPatid(Long patid) |
| | | { |
| | | this.patid = patid; |
| | | } |
| | | |
| | | public Long getPatid() |
| | | { |
| | | return patid; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("tagcategoryid", getTagcategoryid()) |
| | | .append("tagid", getTagid()) |
| | | .append("orgid", getOrgid()) |
| | | .append("delFlag", getDelFlag()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("isupload", getIsupload()) |
| | | .append("uploadTime", getUploadTime()) |
| | | .append("patid", getPatid()) |
| | | .toString(); |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("tagname", getTagname()).append("id", getId()).append("tagcategoryid", getTagcategoryid()).append("tagid", getTagid()).append("orgid", getOrgid()).append("delFlag", getDelFlag()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("isupload", getIsupload()).append("uploadTime", getUploadTime()).append("patid", getPatid()).toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
æ¡£æ¡æ ç¾å¯¹è±¡ pat_archivetag |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-02 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "PatArchivetag", description = "æ£è
æ¡£æ¡æ ç¾å¯¹è±¡") |
| | | public class PatArchivetagAndPatientInfo { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | // /** |
| | | // * èªå¢ID |
| | | // */ |
| | | // @ApiModelProperty(name = "èªå¢ID") |
| | | // private Long id; |
| | | // |
| | | // /** |
| | | // * æ ç¾åç±»ID |
| | | // */ |
| | | // @ApiModelProperty(name = "æ ç¾åç±»ID") |
| | | // private Long tagcategoryid; |
| | | // |
| | | // /** |
| | | // * æ ç¾ID |
| | | // */ |
| | | // @ApiModelProperty(name = "æ ç¾ID") |
| | | // private Long tagid; |
| | | // |
| | | // /** |
| | | // * æºæID |
| | | // */ |
| | | // @ApiModelProperty(name = "æºæID") |
| | | // private String orgid; |
| | | // |
| | | // /** |
| | | // * å 餿 è®° |
| | | // */ |
| | | // @ApiModelProperty(name = "å 餿 è®°") |
| | | // private String delFlag; |
| | | // |
| | | // /** |
| | | // * ä¸ä¼ æ è®° |
| | | // */ |
| | | // @ApiModelProperty(name = "ä¸ä¼ æ è®°") |
| | | // private Long isupload; |
| | | // |
| | | // /** |
| | | // * ä¸ä¼ æ¶é´ |
| | | // */ |
| | | // @ApiModelProperty(name = "ä¸ä¼ æ¶é´") |
| | | // @JsonFormat(pattern = "yyyy-MM-dd") |
| | | // @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | // private Date uploadTime; |
| | | |
| | | @ApiModelProperty(name = "æ ç¾åç§°") |
| | | private String tagname; |
| | | |
| | | /** |
| | | * æ¡£æ¡ID |
| | | */ |
| | | @ApiModelProperty(name = "æ¡£æ¡ID") |
| | | private Long patid; |
| | | |
| | | @ApiModelProperty("æ£è
æ°é") |
| | | private Integer patNum; |
| | | |
| | | @ApiModelProperty("æ£è
éå") |
| | | private List<PatArchive> patArchives; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
导å
¥ä¿¡æ¯ |
| | | * |
| | | * @author åç |
| | | * @date 2023-06-06 |
| | | */ |
| | | @ApiModel(value = "PatImportInfoVO", description = "æ£è
æ¡£æ¡å¯¹è±¡") |
| | | @Data |
| | | public class PatImportInfoVO extends BaseEntity { |
| | | |
| | | /** |
| | | * å§å |
| | | */ |
| | | @Excel(name = " å§å ") |
| | | private String name; |
| | | |
| | | /** |
| | | * æ§å« |
| | | */ |
| | | @Excel(name = " æ§å« ") |
| | | private String sex; |
| | | |
| | | /** |
| | | * è¯ä»¶ç±»å |
| | | */ |
| | | @Excel(name = " è¯ä»¶ç±»å ") |
| | | private String idcartType; |
| | | |
| | | /** |
| | | * è¯ä»¶å·ç |
| | | */ |
| | | @Excel(name = " è¯ä»¶å·ç ") |
| | | private String idCardNum; |
| | | |
| | | /** |
| | | * åºçæ¥æ |
| | | */ |
| | | @Excel(name = " åºçæ¥æ ") |
| | | private String birthday; |
| | | |
| | | |
| | | /** |
| | | * æ¬äººèç³»æ¹å¼ |
| | | */ |
| | | @Excel(name = " æ¬äººèç³»æ¹å¼ ") |
| | | private String telcode; |
| | | |
| | | /** |
| | | * 亲å±èç³»æ¹å¼ |
| | | */ |
| | | @Excel(name = " 亲å±èç³»æ¹å¼ ") |
| | | private String relativetelcode; |
| | | |
| | | /** |
| | | * æ£è
æ ç¾ |
| | | */ |
| | | @Excel(name = " æ£è
æ ç¾ ") |
| | | private String tad; |
| | | |
| | | /** |
| | | * é误åå |
| | | */ |
| | | @Excel(name = " é误åå ") |
| | | private String reason; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * é®å·é¢ç®å±ç¤ºè¿å |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTopicAndOptionRes", description = "é®å·é¢ç®å±ç¤ºè¿å") |
| | | public class SvyLibTopicAndOptionRes extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(name = "èªå¢ID") |
| | | private Long topicid; |
| | | |
| | | |
| | | /** |
| | | * é¢ç® |
| | | */ |
| | | @ApiModelProperty(name = "é¢ç®") |
| | | private String topic; |
| | | |
| | | /** |
| | | * é¢ç®code |
| | | */ |
| | | @ApiModelProperty(name = "é¢ç®code") |
| | | private String topiccode; |
| | | |
| | | |
| | | /** |
| | | * é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空 |
| | | */ |
| | | @ApiModelProperty(name = "é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空") |
| | | private String topictype; |
| | | |
| | | /** |
| | | * ç±»å« |
| | | */ |
| | | @ApiModelProperty(name = "ç±»å«") |
| | | private String tag; |
| | | |
| | | /** |
| | | * é项code |
| | | */ |
| | | @ApiModelProperty(name = "é项code") |
| | | private String optioncode; |
| | | |
| | | /** |
| | | * é项å
容 |
| | | */ |
| | | @ApiModelProperty(name = "é项å
容") |
| | | private String optioncontent; |
| | | |
| | | |
| | | } |
| | |
| | | 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; |
| | |
| | | * é¢ç® |
| | | */ |
| | | @ApiModelProperty(name = "é¢ç®") |
| | | @Excel(name = " é¢ç® ") |
| | | private String topic; |
| | | |
| | | /** |
| | | * ç±»å« |
| | | */ |
| | | @ApiModelProperty(name = "ç±»å«") |
| | | @Excel(name = " ç±»å« ") |
| | | private String tag; |
| | | |
| | | |
| | |
| | | * é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空 |
| | | */ |
| | | @ApiModelProperty(name = "é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空") |
| | | @Excel(name = " é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空 ") |
| | | private String topictype; |
| | | |
| | | /** |
| | | * çæ¡ |
| | | */ |
| | | @ApiModelProperty(name = "çæ¡") |
| | | @Excel(name = " çæ¡ ") |
| | | private String answer; |
| | | |
| | | /** |
| | | * é项A |
| | | */ |
| | | @ApiModelProperty(name = "é项A") |
| | | @Excel(name = " é项A ") |
| | | private String optionA; |
| | | |
| | | /** |
| | | * é项B |
| | | */ |
| | | @ApiModelProperty(name = "é项B") |
| | | @Excel(name = " é项B ") |
| | | private String optionB; |
| | | |
| | | /** |
| | | * é项C |
| | | */ |
| | | @ApiModelProperty(name = "é项C") |
| | | @Excel(name = " é项C ") |
| | | private String optionC; |
| | | |
| | | /** |
| | | * é项D |
| | | */ |
| | | @ApiModelProperty(name = "é项D") |
| | | @Excel(name = " é项D ") |
| | | private String optionD; |
| | | |
| | | /** |
| | | * é项D |
| | | */ |
| | | @ApiModelProperty(name = "é项E") |
| | | @Excel(name = " é项E ") |
| | | private String optionE; |
| | | |
| | | /** |
| | | * é项D |
| | | */ |
| | | @ApiModelProperty(name = "é项F") |
| | | @Excel(name = " é项F ") |
| | | private String optionF; |
| | | |
| | | /** |
| | | * é项D |
| | | */ |
| | | @ApiModelProperty(name = "é项G") |
| | | @Excel(name = " é项G ") |
| | | private String optionG; |
| | | |
| | | /** |
| | | * é项D |
| | | */ |
| | | @ApiModelProperty(name = "é项H") |
| | | @Excel(name = " é项H ") |
| | | private String optionH; |
| | | |
| | | /** |
| | | * åæ° |
| | | */ |
| | | @ApiModelProperty(name = "åæ°") |
| | | @Excel(name = " åæ° ") |
| | | private String score; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(name = "夿³¨") |
| | | @Excel(name = " 夿³¨ ") |
| | | private String remark; |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * é®å·é¢ç®æ¥è¯¢ |
| | | * |
| | | * @author ls |
| | | * @date 2023-06-13 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyTopicReq", description = "é®å·é¢ç®æ¥è¯¢") |
| | | public class SvyTopicReq { |
| | | |
| | | /** |
| | | * é¢ç® |
| | | */ |
| | | @ApiModelProperty(name = "é¢ç®") |
| | | private String topic; |
| | | |
| | | @ApiModelProperty(name = "é¢ç®ç±»å;æä¸¾ 1.åé 2å¤é 3填空") |
| | | private String topicType; |
| | | |
| | | @ApiModelProperty(name = "ç±»å«") |
| | | private String tag; |
| | | } |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.BaseTag; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ç¾Mapperæ¥å£ |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBaseTagByTagids(Long[] tagids); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.BaseTagcategory; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ç¾åç±»Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-15 |
| | | */ |
| | | @Mapper |
| | | public interface BaseTagcategoryMapper { |
| | | /** |
| | | * æ¥è¯¢æ ç¾åç±» |
| | | * |
| | | * @param tagcategoryid æ ç¾åç±»ä¸»é® |
| | | * @return æ ç¾åç±» |
| | | */ |
| | | public BaseTagcategory selectBaseTagcategoryByTagcategoryid(Long tagcategoryid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ç¾åç±»å表 |
| | | * |
| | | * @param baseTagcategory æ ç¾åç±» |
| | | * @return æ ç¾åç±»éå |
| | | */ |
| | | public List<BaseTagcategory> selectBaseTagcategoryList(BaseTagcategory baseTagcategory); |
| | | |
| | | /** |
| | | * æ°å¢æ ç¾åç±» |
| | | * |
| | | * @param baseTagcategory æ ç¾åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int insertBaseTagcategory(BaseTagcategory baseTagcategory); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ ç¾åç±» |
| | | * |
| | | * @param baseTagcategory æ ç¾åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int updateBaseTagcategory(BaseTagcategory baseTagcategory); |
| | | |
| | | /** |
| | | * å 餿 ç¾åç±» |
| | | * |
| | | * @param tagcategoryid æ ç¾åç±»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBaseTagcategoryByTagcategoryid(Long tagcategoryid); |
| | | |
| | | /** |
| | | * æ¹éå 餿 ç¾åç±» |
| | | * |
| | | * @param tagcategoryids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBaseTagcategoryByTagcategoryids(Long[] tagcategoryids); |
| | | |
| | | |
| | | public List<BaseTagcategory> baseTagCategoryByName(String categoryname); |
| | | } |
| | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.PatArchive; |
| | | import com.smartor.domain.PatArchiveReq; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public List<PatArchive> selectPatArchiveList(PatArchive patArchive); |
| | | |
| | | public List<PatArchive> patInfoByContion(PatArchiveReq patArchive); |
| | | |
| | | |
| | | /** |
| | | * æ°å¢æ£è
æ¡£æ¡ |
| | | * |
| | |
| | | */ |
| | | public List<PatArchivetag> selectPatArchivetagList(PatArchivetag patArchivetag); |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æ¡£æ¡æ ç¾å表 |
| | | * |
| | | * @param patArchivetag æ£è
æ¡£æ¡æ ç¾ä¿¡æ¯ |
| | | * @return æ£è
æ¡£æ¡æ ç¾éå |
| | | */ |
| | | public List<PatArchivetag> selectPatArchivetagAndBaseTagList(PatArchivetag patArchivetag); |
| | | |
| | | |
| | | /** |
| | | * æ°å¢æ£è
æ¡£æ¡æ ç¾ |
| | | * |
| | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.SvyLibTopic; |
| | | import com.smartor.domain.SvyLibTopicAndOptionRes; |
| | | import com.smartor.domain.SvyTopicReq; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTopicByTopicids(Long[] topicids); |
| | | |
| | | |
| | | public List<SvyLibTopicAndOptionRes> showTopic(SvyTopicReq svyTopicReq); |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.SvyLibTopicAndOptionRes; |
| | | import com.smartor.domain.SvyLibTopicRes; |
| | | import com.smartor.domain.SvyLibTopicoption; |
| | | import com.smartor.domain.SvyTopicReq; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTopicoptionByOptionids(Long[] optionids); |
| | | |
| | | } |
| | |
| | | package com.smartor.service; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.smartor.domain.BaseTag; |
| | | |
| | | /** |
| | | * æ ç¾Serviceæ¥å£ |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-02 |
| | | */ |
| | | public interface IBaseTagService |
| | | { |
| | | public interface IBaseTagService { |
| | | /** |
| | | * æ¥è¯¢æ ç¾ |
| | | * |
| | | * |
| | | * @param tagid æ ç¾ä¸»é® |
| | | * @return æ ç¾ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ç¾å表 |
| | | * |
| | | * |
| | | * @param baseTag æ ç¾ |
| | | * @return æ ç¾éå |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ°å¢æ ç¾ |
| | | * |
| | | * |
| | | * @param baseTag æ ç¾ |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * ä¿®æ¹æ ç¾ |
| | | * |
| | | * |
| | | * @param baseTag æ ç¾ |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¹éå 餿 ç¾ |
| | | * |
| | | * |
| | | * @param tagids éè¦å é¤çæ ç¾ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * å 餿 ç¾ä¿¡æ¯ |
| | | * |
| | | * |
| | | * @param tagid æ ç¾ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBaseTagByTagid(Long tagid); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.smartor.domain.BaseTagcategory; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ç¾åç±»Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-15 |
| | | */ |
| | | public interface IBaseTagcategoryService { |
| | | /** |
| | | * æ¥è¯¢æ ç¾åç±» |
| | | * |
| | | * @param tagcategoryid æ ç¾åç±»ä¸»é® |
| | | * @return æ ç¾åç±» |
| | | */ |
| | | public BaseTagcategory selectBaseTagcategoryByTagcategoryid(Long tagcategoryid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ç¾åç±»å表 |
| | | * |
| | | * @param baseTagcategory æ ç¾åç±» |
| | | * @return æ ç¾åç±»éå |
| | | */ |
| | | public List<BaseTagcategory> selectBaseTagcategoryList(BaseTagcategory baseTagcategory); |
| | | |
| | | /** |
| | | * æ°å¢æ ç¾åç±» |
| | | * |
| | | * @param baseTagcategory æ ç¾åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int insertBaseTagcategory(BaseTagcategory baseTagcategory); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ ç¾åç±» |
| | | * |
| | | * @param baseTagcategory æ ç¾åç±» |
| | | * @return ç»æ |
| | | */ |
| | | public int updateBaseTagcategory(BaseTagcategory baseTagcategory); |
| | | |
| | | /** |
| | | * æ¹éå 餿 ç¾åç±» |
| | | * |
| | | * @param tagcategoryids éè¦å é¤çæ ç¾å类主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBaseTagcategoryByTagcategoryids(Long[] tagcategoryids); |
| | | |
| | | /** |
| | | * å 餿 ç¾åç±»ä¿¡æ¯ |
| | | * |
| | | * @param tagcategoryid æ ç¾åç±»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteBaseTagcategoryByTagcategoryid(Long tagcategoryid); |
| | | |
| | | |
| | | public List<BaseTagcategory> baseTagCategoryByName(String name); |
| | | } |
| | |
| | | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.smartor.domain.PatArchive; |
| | | import com.smartor.domain.PatUpInfoVO; |
| | | import com.smartor.domain.*; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | * @param tags |
| | | * @param file |
| | | */ |
| | | public PatUpInfoVO importFilehandle(SysUser user,String tags, MultipartFile file); |
| | | public PatUpInfoVO importFilehandle(SysUser user, String tags, MultipartFile file); |
| | | |
| | | /** |
| | | * å¯¼åºæ£è
éè¯¯ä¿¡æ¯ |
| | |
| | | * @return |
| | | */ |
| | | public String exportErrPatInfo(List<PatArchive> patArchiveList); |
| | | |
| | | |
| | | public List<PatArchive> patInfoByContion(PatArchiveReq patArchive); |
| | | |
| | | |
| | | public List<PatArchivetagAndPatientInfo> patTagByContion(List<Long> tagids); |
| | | |
| | | public List<PatArchivetagAndPatientInfo> patInfoByTag(List<Long> tagids); |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.smartor.domain.PatArchivetag; |
| | | import com.smartor.domain.PatArchivetagAndPatientInfo; |
| | | |
| | | /** |
| | | * æ£è
æ¡£æ¡æ ç¾Serviceæ¥å£ |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatArchivetagById(Long id); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.smartor.domain.SvyLibTopic; |
| | | import com.smartor.domain.SvyLibTopicRes; |
| | | import com.smartor.domain.SvyTopicReq; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | |
| | | * @param multipartFile |
| | | * @return |
| | | */ |
| | | public List<SvyLibTopicRes> importLitTopic(SysUser user,MultipartFile multipartFile); |
| | | public List<SvyLibTopicRes> importLitTopic(SysUser user, MultipartFile multipartFile); |
| | | |
| | | public SvyLibTopicRes showTopic(SvyTopicReq svyTopicReq); |
| | | } |
| | |
| | | public int deleteBaseTagByTagid(Long tagid) { |
| | | return baseTagMapper.deleteBaseTagByTagid(tagid); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.BaseTagcategory; |
| | | import com.smartor.mapper.BaseTagcategoryMapper; |
| | | import com.smartor.service.IBaseTagcategoryService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ç¾åç±»Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-15 |
| | | */ |
| | | @Service |
| | | public class BaseTagcategoryServiceImpl implements IBaseTagcategoryService { |
| | | @Autowired |
| | | private BaseTagcategoryMapper baseTagcategoryMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ç¾åç±» |
| | | * |
| | | * @param tagcategoryid æ ç¾åç±»ä¸»é® |
| | | * @return æ ç¾åç±» |
| | | */ |
| | | @Override |
| | | public BaseTagcategory selectBaseTagcategoryByTagcategoryid(Long tagcategoryid) { |
| | | return baseTagcategoryMapper.selectBaseTagcategoryByTagcategoryid(tagcategoryid); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ç¾åç±»å表 |
| | | * |
| | | * @param baseTagcategory æ ç¾åç±» |
| | | * @return æ ç¾åç±» |
| | | */ |
| | | @Override |
| | | public List<BaseTagcategory> selectBaseTagcategoryList(BaseTagcategory baseTagcategory) { |
| | | return baseTagcategoryMapper.selectBaseTagcategoryList(baseTagcategory); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ ç¾åç±» |
| | | * |
| | | * @param baseTagcategory æ ç¾åç±» |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertBaseTagcategory(BaseTagcategory baseTagcategory) { |
| | | baseTagcategory.setCreateTime(DateUtils.getNowDate()); |
| | | return baseTagcategoryMapper.insertBaseTagcategory(baseTagcategory); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ ç¾åç±» |
| | | * |
| | | * @param baseTagcategory æ ç¾åç±» |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateBaseTagcategory(BaseTagcategory baseTagcategory) { |
| | | baseTagcategory.setUpdateTime(DateUtils.getNowDate()); |
| | | return baseTagcategoryMapper.updateBaseTagcategory(baseTagcategory); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿 ç¾åç±» |
| | | * |
| | | * @param tagcategoryids éè¦å é¤çæ ç¾åç±»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteBaseTagcategoryByTagcategoryids(Long[] tagcategoryids) { |
| | | return baseTagcategoryMapper.deleteBaseTagcategoryByTagcategoryids(tagcategoryids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿 ç¾åç±»ä¿¡æ¯ |
| | | * |
| | | * @param tagcategoryid æ ç¾åç±»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteBaseTagcategoryByTagcategoryid(Long tagcategoryid) { |
| | | return baseTagcategoryMapper.deleteBaseTagcategoryByTagcategoryid(tagcategoryid); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æ ç¾ç±»å«åè·åæ ç¾ç±»å«ä¿¡æ¯ |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<BaseTagcategory> baseTagCategoryByName(String name) { |
| | | return baseTagcategoryMapper.baseTagCategoryByName(name); |
| | | } |
| | | } |
| | |
| | | import java.io.FileNotFoundException; |
| | | import java.io.FileOutputStream; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.BaseTag; |
| | | import com.smartor.domain.PatArchivetag; |
| | | import com.smartor.domain.PatUpInfoVO; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.BaseTagMapper; |
| | | import com.smartor.mapper.PatArchivetagMapper; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | |
| | | import org.apache.poi.ss.usermodel.*; |
| | | import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.core.parameters.P; |
| | | import org.springframework.stereotype.Service; |
| | | import com.smartor.mapper.PatArchiveMapper; |
| | | import com.smartor.domain.PatArchive; |
| | | import com.smartor.service.IPatArchiveService; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | return "å¯¼åºæå"; |
| | | } |
| | | |
| | | @Override |
| | | public List<PatArchive> patInfoByContion(PatArchiveReq patArchive) { |
| | | List<PatArchive> patArchives = new ArrayList<>(); |
| | | |
| | | //æ ¹æ®æ¡ä»¶è·åæ£è
ä¿¡æ¯ |
| | | List<PatArchive> patArchiveList = patArchiveMapper.patInfoByContion(patArchive); |
| | | //æ ¹æ®æ£è
IDè¿è¡åç» |
| | | Map<Long, List<PatArchive>> listMap = patArchiveList.stream().collect(Collectors.groupingBy(PatArchive::getPatid)); |
| | | |
| | | //å¯¹æ°æ®è¿è¡å°è£
|
| | | for (List<PatArchive> list : listMap.values()) { |
| | | PatArchive patArchive1 = new PatArchive(); |
| | | List<String> stringList = new ArrayList<>(); |
| | | for (int i = 0; i < list.size(); i++) { |
| | | if (i == 0) { |
| | | patArchive1 = DtoConversionUtils.sourceToTarget(list.get(0), PatArchive.class); |
| | | //å°æ ç¾ç½®ç©º,ä¸ç©ºä¹æ²¡æé®é¢ |
| | | patArchive1.setTag(""); |
| | | } |
| | | //å°æ¥åºçtagï¼æ¾å°patArchive1éçTagListä¸ |
| | | stringList.add(list.get(i).getTag()); |
| | | } |
| | | patArchive1.setTagList(stringList); |
| | | patArchives.add(patArchive1); |
| | | } |
| | | |
| | | return patArchives; |
| | | } |
| | | |
| | | @Override |
| | | public List<PatArchivetagAndPatientInfo> patTagByContion(List<Long> tagids) { |
| | | List<PatArchivetagAndPatientInfo> patArchivetagAndPatientInfos = new ArrayList<>(); |
| | | if (tagids.size() > 0) { |
| | | for (int i = 0; i < tagids.size(); i++) { |
| | | PatArchivetag patArchivetag = new PatArchivetag(); |
| | | patArchivetag.setTagid(tagids.get(i)); |
| | | //è·åæ£è
patid |
| | | List<PatArchivetag> patArchivetags1 = patArchivetagMapper.selectPatArchivetagAndBaseTagList(patArchivetag); |
| | | for (int j = 0; j < patArchivetags1.size(); j++) { |
| | | PatArchivetagAndPatientInfo patArchivetagAndPatientInfo = DtoConversionUtils.sourceToTarget(patArchivetags1.get(j), PatArchivetagAndPatientInfo.class); |
| | | PatArchive patArchive = new PatArchive(); |
| | | patArchive.setPatid(patArchivetagAndPatientInfo.getPatid()); |
| | | List<PatArchive> patArchiveList = patArchiveMapper.selectPatArchiveList(patArchive); |
| | | patArchivetagAndPatientInfo.setPatNum(patArchiveList.size()); |
| | | // patArchivetagAndPatientInfo.setPatArchives(patArchiveList); |
| | | patArchivetagAndPatientInfos.add(patArchivetagAndPatientInfo); |
| | | } |
| | | } |
| | | } else { |
| | | PatArchivetag patArchivetag = new PatArchivetag(); |
| | | //è·åæ£è
patid |
| | | List<PatArchivetag> patArchivetags1 = patArchivetagMapper.selectPatArchivetagAndBaseTagList(patArchivetag); |
| | | for (int j = 0; j < patArchivetags1.size(); j++) { |
| | | PatArchivetagAndPatientInfo patArchivetagAndPatientInfo = DtoConversionUtils.sourceToTarget(patArchivetags1.get(j), PatArchivetagAndPatientInfo.class); |
| | | PatArchive patArchive = new PatArchive(); |
| | | patArchive.setPatid(patArchivetagAndPatientInfo.getPatid()); |
| | | List<PatArchive> patArchiveList = patArchiveMapper.selectPatArchiveList(patArchive); |
| | | // patArchivetagAndPatientInfo.setPatArchives(patArchiveList); |
| | | patArchivetagAndPatientInfo.setPatNum(patArchiveList.size()); |
| | | patArchivetagAndPatientInfos.add(patArchivetagAndPatientInfo); |
| | | } |
| | | } |
| | | return patArchivetagAndPatientInfos; |
| | | } |
| | | |
| | | @Override |
| | | public List<PatArchivetagAndPatientInfo> patInfoByTag(List<Long> tagids) { |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return null; |
| | | } |
| | | |
| | | private void getdata(Row row, PatArchive patArchive, Boolean head) { |
| | | if (head) { |
| | | row.createCell(0).setCellValue("å§å"); |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.PatArchivetag; |
| | | import com.smartor.domain.PatArchivetagAndPatientInfo; |
| | | import com.smartor.mapper.PatArchiveMapper; |
| | | import com.smartor.mapper.PatArchivetagMapper; |
| | | import com.smartor.service.IPatArchivetagService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * æ£è
æ¡£æ¡æ ç¾Serviceä¸å¡å±å¤ç |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-02 |
| | | */ |
| | | @Service |
| | | public class PatArchivetagServiceImpl implements IPatArchivetagService |
| | | { |
| | | public class PatArchivetagServiceImpl implements IPatArchivetagService { |
| | | @Autowired |
| | | private PatArchivetagMapper patArchivetagMapper; |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æ¡£æ¡æ ç¾ |
| | | * |
| | | * |
| | | * @param id æ£è
æ¡£æ¡æ ç¾ä¸»é® |
| | | * @return æ£è
æ¡£æ¡æ ç¾ |
| | | */ |
| | | @Override |
| | | public PatArchivetag selectPatArchivetagById(Long id) |
| | | { |
| | | public PatArchivetag selectPatArchivetagById(Long id) { |
| | | return patArchivetagMapper.selectPatArchivetagById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æ¡£æ¡æ ç¾å表 |
| | | * |
| | | * |
| | | * @param patArchivetag æ£è
æ¡£æ¡æ ç¾ |
| | | * @return æ£è
æ¡£æ¡æ ç¾ |
| | | */ |
| | | @Override |
| | | public List<PatArchivetag> selectPatArchivetagList(PatArchivetag patArchivetag) |
| | | { |
| | | public List<PatArchivetag> selectPatArchivetagList(PatArchivetag patArchivetag) { |
| | | return patArchivetagMapper.selectPatArchivetagList(patArchivetag); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
æ¡£æ¡æ ç¾ |
| | | * |
| | | * |
| | | * @param patArchivetag æ£è
æ¡£æ¡æ ç¾ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertPatArchivetag(PatArchivetag patArchivetag) |
| | | { |
| | | public int insertPatArchivetag(PatArchivetag patArchivetag) { |
| | | patArchivetag.setCreateTime(DateUtils.getNowDate()); |
| | | return patArchivetagMapper.insertPatArchivetag(patArchivetag); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
æ¡£æ¡æ ç¾ |
| | | * |
| | | * |
| | | * @param patArchivetag æ£è
æ¡£æ¡æ ç¾ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updatePatArchivetag(PatArchivetag patArchivetag) |
| | | { |
| | | public int updatePatArchivetag(PatArchivetag patArchivetag) { |
| | | patArchivetag.setUpdateTime(DateUtils.getNowDate()); |
| | | return patArchivetagMapper.updatePatArchivetag(patArchivetag); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
æ¡£æ¡æ ç¾ |
| | | * |
| | | * |
| | | * @param ids éè¦å é¤çæ£è
æ¡£æ¡æ ç¾ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatArchivetagByIds(Long[] ids) |
| | | { |
| | | public int deletePatArchivetagByIds(Long[] ids) { |
| | | return patArchivetagMapper.deletePatArchivetagByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿£è
æ¡£æ¡æ ç¾ä¿¡æ¯ |
| | | * |
| | | * |
| | | * @param id æ£è
æ¡£æ¡æ ç¾ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatArchivetagById(Long id) |
| | | { |
| | | public int deletePatArchivetagById(Long id) { |
| | | return patArchivetagMapper.deletePatArchivetagById(id); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import java.io.IOException; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.PatArchive; |
| | | import com.smartor.domain.SvyLibTopicRes; |
| | | import com.smartor.domain.SvyLibTopicoption; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.SvyLibTopicoptionMapper; |
| | | import org.apache.catalina.User; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.smartor.mapper.SvyLibTopicMapper; |
| | | import com.smartor.domain.SvyLibTopic; |
| | | import com.smartor.service.ISvyLibTopicService; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | if (ObjectUtils.isNotEmpty(row.getCell(8))) { |
| | | svyLibTopicRes.setScore(row.getCell(8).toString()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(9))) { |
| | | svyLibTopicRes.setScore(row.getCell(9).toString()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(10))) { |
| | | svyLibTopicRes.setScore(row.getCell(10).toString()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(11))) { |
| | | svyLibTopicRes.setScore(row.getCell(11).toString()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(12))) { |
| | | svyLibTopicRes.setScore(row.getCell(12).toString()); |
| | | } |
| | | if (StringUtils.isNotEmpty(svyLibTopicRes.getRemark())) { |
| | | //说æè¯¥è¡æ°æ®æé®é¢ |
| | | svyLibTopicErrors.add(svyLibTopicRes); |
| | |
| | | //è§£çé¢ï¼ä¸éè¦å设置é项 |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | } else { |
| | | if (ObjectUtils.isNotEmpty(row.getCell(4)) || StringUtils.isNotEmpty(row.getCell(4).toString())) { |
| | | svyLibTopicoption.setOptioncode("A"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(4).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | if (ObjectUtils.isNotEmpty(row.getCell(4))) { |
| | | if (StringUtils.isNotEmpty(row.getCell(4).toString())) { |
| | | svyLibTopicoption.setOptioncode("A"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(4).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(5)) || StringUtils.isNotEmpty(row.getCell(5).toString())) { |
| | | svyLibTopicoption.setOptioncode("B"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(5).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | if (ObjectUtils.isNotEmpty(row.getCell(5))) { |
| | | if (StringUtils.isNotEmpty(row.getCell(5).toString())) { |
| | | svyLibTopicoption.setOptioncode("B"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(5).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(6)) || StringUtils.isNotEmpty(row.getCell(6).toString())) { |
| | | svyLibTopicoption.setOptioncode("C"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(6).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | if (ObjectUtils.isNotEmpty(row.getCell(6))) { |
| | | if (StringUtils.isNotEmpty(row.getCell(6).toString())) { |
| | | svyLibTopicoption.setOptioncode("C"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(6).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(7)) || StringUtils.isNotEmpty(row.getCell(7).toString())) { |
| | | svyLibTopicoption.setOptioncode("D"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(7).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | if (ObjectUtils.isNotEmpty(row.getCell(7))) { |
| | | if (StringUtils.isNotEmpty(row.getCell(7).toString())) { |
| | | svyLibTopicoption.setOptioncode("D"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(7).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(8))) { |
| | | if (StringUtils.isNotEmpty(row.getCell(8).toString())) { |
| | | svyLibTopicoption.setOptioncode("E"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(8).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(9))) { |
| | | if (StringUtils.isNotEmpty(row.getCell(9).toString())) { |
| | | svyLibTopicoption.setOptioncode("F"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(9).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(10))) { |
| | | if (StringUtils.isNotEmpty(row.getCell(10).toString())) { |
| | | svyLibTopicoption.setOptioncode("G"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(10).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(11))) { |
| | | if (StringUtils.isNotEmpty(row.getCell(11).toString())) { |
| | | svyLibTopicoption.setOptioncode("H"); |
| | | svyLibTopicoption.setOptioncontent(row.getCell(11).toString()); |
| | | svyLibTopicoption.setOptionid(null); |
| | | svyLibTopicoptionMapper.insertSvyLibTopicoption(svyLibTopicoption); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public SvyLibTopicRes showTopic(SvyTopicReq svyTopicReq) { |
| | | List<SvyLibTopicAndOptionRes> svyLibTopicAndOptionRes = svyLibTopicMapper.showTopic(svyTopicReq); |
| | | Map<Long, List<SvyLibTopicAndOptionRes>> groupByAge = svyLibTopicAndOptionRes.stream().collect(Collectors.groupingBy(SvyLibTopicAndOptionRes::getTopicid)); |
| | | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | <?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"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.BaseTagMapper"> |
| | | |
| | | |
| | | <resultMap type="com.smartor.domain.BaseTag" id="BaseTagResult"> |
| | | <result property="tagid" column="tagid" /> |
| | | <result property="tagcategoryid" column="tagcategoryid" /> |
| | | <result property="tagname" column="tagname" /> |
| | | <result property="tagdescription" column="tagdescription" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="isenable" column="isenable" /> |
| | | <result property="tagid" column="tagid"/> |
| | | <result property="tagcategoryid" column="tagcategoryid"/> |
| | | <result property="tagname" column="tagname"/> |
| | | <result property="tagdescription" column="tagdescription"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="isenable" column="isenable"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectBaseTagVo"> |
| | | select tagid, tagcategoryid, tagname, tagdescription, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, isenable from base_tag |
| | | select tagid, |
| | | tagcategoryid, |
| | | tagname, |
| | | tagdescription, |
| | | orgid, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | isenable |
| | | from base_tag |
| | | </sql> |
| | | |
| | | <select id="selectBaseTagList" parameterType="com.smartor.domain.BaseTag" resultMap="BaseTagResult"> |
| | | <include refid="selectBaseTagVo"/> |
| | | <where> |
| | | <if test="tagcategoryid != null "> and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagname != null and tagname != ''"> and tagname like concat('%', #{tagname}, '%')</if> |
| | | <if test="tagdescription != null and tagdescription != ''"> and tagdescription = #{tagdescription}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="isenable != null "> and isenable = #{isenable}</if> |
| | | <where> |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagname != null and tagname != ''">and tagname like concat('%', #{tagname}, '%')</if> |
| | | <if test="tagdescription != null and tagdescription != ''">and tagdescription = #{tagdescription}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="isenable != null ">and isenable = #{isenable}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectBaseTagByTagid" parameterType="Long" resultMap="BaseTagResult"> |
| | | <include refid="selectBaseTagVo"/> |
| | | where tagid = #{tagid} |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertBaseTag" parameterType="com.smartor.domain.BaseTag" useGeneratedKeys="true" keyProperty="tagid"> |
| | | insert into base_tag |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="isenable != null">isenable,</if> |
| | | </trim> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="tagcategoryid != null">#{tagcategoryid},</if> |
| | | <if test="tagname != null">#{tagname},</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="isenable != null">#{isenable},</if> |
| | | </trim> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateBaseTag" parameterType="com.smartor.domain.BaseTag"> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteBaseTagByTagid" parameterType="Long"> |
| | | delete from base_tag where tagid = #{tagid} |
| | | delete |
| | | from base_tag |
| | | where tagid = #{tagid} |
| | | </delete> |
| | | |
| | | <delete id="deleteBaseTagByTagids" parameterType="String"> |
| | | delete from base_tag where tagid in |
| | | delete from base_tag where tagid in |
| | | <foreach item="tagid" collection="array" open="(" separator="," close=")"> |
| | | #{tagid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.BaseTagcategoryMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.BaseTagcategory" id="BaseTagcategoryResult"> |
| | | <result property="tagcategoryid" column="tagcategoryid"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="pym" column="pym"/> |
| | | <result property="wbm" column="wbm"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="categoryname" column="categoryname"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectBaseTagcategoryVo"> |
| | | select tagcategoryid, |
| | | orgid, |
| | | update_by, |
| | | update_time, |
| | | pym, |
| | | wbm, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | categoryname |
| | | from base_tagcategory |
| | | </sql> |
| | | |
| | | <select id="selectBaseTagcategoryList" parameterType="com.smartor.domain.BaseTagcategory" |
| | | resultMap="BaseTagcategoryResult"> |
| | | <include refid="selectBaseTagcategoryVo"/> |
| | | <where> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pym != null and pym != ''">and pym = #{pym}</if> |
| | | <if test="wbm != null and wbm != ''">and wbm = #{wbm}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, |
| | | '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectBaseTagcategoryByTagcategoryid" parameterType="Long" resultMap="BaseTagcategoryResult"> |
| | | <include refid="selectBaseTagcategoryVo"/> |
| | | where tagcategoryid = #{tagcategoryid} |
| | | </select> |
| | | |
| | | <insert id="insertBaseTagcategory" parameterType="com.smartor.domain.BaseTagcategory" useGeneratedKeys="true" |
| | | keyProperty="tagcategoryid"> |
| | | insert into base_tagcategory |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="pym != null">pym,</if> |
| | | <if test="wbm != null">wbm,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="categoryname != null">categoryname,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="pym != null">#{pym},</if> |
| | | <if test="wbm != null">#{wbm},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="categoryname != null">#{categoryname},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateBaseTagcategory" parameterType="com.smartor.domain.BaseTagcategory"> |
| | | update base_tagcategory |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="pym != null">pym = #{pym},</if> |
| | | <if test="wbm != null">wbm = #{wbm},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="categoryname != null">categoryname = #{categoryname},</if> |
| | | </trim> |
| | | where tagcategoryid = #{tagcategoryid} |
| | | </update> |
| | | |
| | | <delete id="deleteBaseTagcategoryByTagcategoryid" parameterType="java.lang.Long"> |
| | | delete |
| | | from base_tagcategory |
| | | where tagcategoryid = #{tagcategoryid} |
| | | </delete> |
| | | |
| | | <delete id="deleteBaseTagcategoryByTagcategoryids" parameterType="java.lang.String"> |
| | | delete from base_tagcategory where tagcategoryid in |
| | | <foreach item="tagcategoryid" collection="array" open="(" separator="," close=")"> |
| | | #{tagcategoryid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="baseTagCategoryByName" parameterType="java.lang.String" |
| | | resultType="com.smartor.domain.BaseTagcategory"> |
| | | select a.tagcategoryid, |
| | | a.orgid, |
| | | a.update_by, |
| | | a.update_time, |
| | | a.pym, |
| | | a.wbm, |
| | | a.del_flag, |
| | | a.create_by, |
| | | a.create_time, |
| | | a.isupload, |
| | | a.upload_time, |
| | | a.categoryname, |
| | | count(b.tagid) as tagNum |
| | | from base_tagcategory a,base_tag b |
| | | <where> |
| | | a.tagcategoryid = b.tagcategoryid |
| | | <if test="categoryname != null and categoryname != ''">and a.categoryname like concat('%', #{categoryname}, |
| | | '%') |
| | | </if> |
| | | </where> |
| | | GROUP BY a.categoryname |
| | | </select> |
| | | </mapper> |
| | |
| | | <?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"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.PatArchiveMapper"> |
| | | |
| | | <resultMap type="PatArchive" id="PatArchiveResult"> |
| | | <result property="patid" column="patid" /> |
| | | <result property="name" column="name" /> |
| | | <result property="sex" column="sex" /> |
| | | <result property="iccardno" column="iccardno" /> |
| | | <result property="birthdate" column="birthdate" /> |
| | | <result property="age" column="age" /> |
| | | <result property="source" column="source" /> |
| | | <result property="archivetime" column="archivetime" /> |
| | | <result property="archiveby" column="archiveby" /> |
| | | <result property="telcode" column="telcode" /> |
| | | <result property="relativetelcode" column="relativetelcode" /> |
| | | <result property="iccardtype" column="iccardtype" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="openid" column="openid" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | |
| | | <resultMap type="com.smartor.domain.PatArchive" id="PatArchiveResult"> |
| | | <result property="patid" column="patid"/> |
| | | <result property="name" column="name"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="iccardno" column="iccardno"/> |
| | | <result property="birthdate" column="birthdate"/> |
| | | <result property="age" column="age"/> |
| | | <result property="source" column="source"/> |
| | | <result property="archivetime" column="archivetime"/> |
| | | <result property="archiveby" column="archiveby"/> |
| | | <result property="telcode" column="telcode"/> |
| | | <result property="relativetelcode" column="relativetelcode"/> |
| | | <result property="iccardtype" column="iccardtype"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="openid" column="openid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="tag" column="tag"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatArchiveVo"> |
| | | select patid, name, sex, iccardno, birthdate, age, source, archivetime, archiveby, telcode, relativetelcode, iccardtype, orgid, openid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time from pat_archive |
| | | select patid, |
| | | name, |
| | | sex, |
| | | iccardno, |
| | | birthdate, |
| | | age, |
| | | source, |
| | | archivetime, |
| | | archiveby, |
| | | telcode, |
| | | relativetelcode, |
| | | iccardtype, |
| | | orgid, |
| | | openid, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time |
| | | from pat_archive |
| | | </sql> |
| | | |
| | | <select id="selectPatArchiveList" parameterType="PatArchive" resultMap="PatArchiveResult"> |
| | | <select id="selectPatArchiveList" parameterType="com.smartor.domain.PatArchive" resultMap="PatArchiveResult"> |
| | | <include refid="selectPatArchiveVo"/> |
| | | <where> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="iccardno != null and iccardno != ''"> and iccardno = #{iccardno}</if> |
| | | <if test="source != null "> and source = #{source}</if> |
| | | <if test="telcode != null and telcode != ''"> and telcode = #{telcode}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <where> |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | | <if test="iccardno != null and iccardno != ''">and iccardno = #{iccardno}</if> |
| | | <if test="source != null ">and source = #{source}</if> |
| | | <if test="telcode != null and telcode != ''">and telcode = #{telcode}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="patid != null and patid != ''">and patid = #{patid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="patInfoByContion" parameterType="com.smartor.domain.PatArchiveReq" resultMap="PatArchiveResult"> |
| | | select |
| | | a.patid, |
| | | a.name, |
| | | a.sex, |
| | | c.tagname as tag, |
| | | a.iccardtype, |
| | | a.iccardno, |
| | | a.age, |
| | | a.telcode, |
| | | a.create_time, |
| | | a.update_time, |
| | | a.birthdate |
| | | from pat_archive a,pat_archivetag b ,base_tag c |
| | | <where> |
| | | a.patid = b.patid and b.tagid = c.tagid |
| | | <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> |
| | | <if test="iccardno != null and iccardno != ''">and iccardno = #{iccardno}</if> |
| | | <if test="telcode != null and telcode != ''">and telcode = #{telcode}</if> |
| | | <if test="tagId != null and tagId != ''">and c.tagid = #{tagId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatArchiveByPatid" parameterType="Long" resultMap="PatArchiveResult"> |
| | | <include refid="selectPatArchiveVo"/> |
| | | where patid = #{patid} |
| | | </select> |
| | | |
| | | <insert id="insertPatArchive" parameterType="PatArchive" useGeneratedKeys="true" keyProperty="patid"> |
| | | |
| | | <insert id="insertPatArchive" parameterType="com.smartor.domain.PatArchive" useGeneratedKeys="true" keyProperty="patid"> |
| | | insert into pat_archive |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="name != null">name,</if> |
| | |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | </trim> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="name != null">#{name},</if> |
| | | <if test="sex != null">#{sex},</if> |
| | |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | </trim> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatArchive" parameterType="PatArchive"> |
| | | <update id="updatePatArchive" parameterType="com.smartor.domain.PatArchive"> |
| | | update pat_archive |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="name != null">name = #{name},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deletePatArchiveByPatid" parameterType="Long"> |
| | | delete from pat_archive where patid = #{patid} |
| | | delete |
| | | from pat_archive |
| | | where patid = #{patid} |
| | | </delete> |
| | | |
| | | <delete id="deletePatArchiveByPatids" parameterType="String"> |
| | | delete from pat_archive where patid in |
| | | delete from pat_archive where patid in |
| | | <foreach item="patid" collection="array" open="(" separator="," close=")"> |
| | | #{patid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
| | |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="tagname" column="tagname"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatArchivetagVo"> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectPatArchivetagAndBaseTagList" parameterType="com.smartor.domain.PatArchivetag" |
| | | resultMap="PatArchivetagResult"> |
| | | select a.id, |
| | | a.tagcategoryid, |
| | | a.tagid, |
| | | a.orgid, |
| | | a. del_flag, |
| | | a.update_by, |
| | | a.update_time, |
| | | a.create_by, |
| | | a.create_time, |
| | | a.isupload, |
| | | a.upload_time, |
| | | a.patid, |
| | | b.tagname |
| | | from pat_archivetag a ,base_tag b |
| | | <where> |
| | | a.tagid=b.tagid |
| | | <if test="tagcategoryid != null ">and a.tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagid != null ">and b.tagid = #{tagid}</if> |
| | | <if test="orgid != null and orgid != ''">and a.orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and a.isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and a.upload_time = #{uploadTime}</if> |
| | | <if test="patid != null ">and a.patid = #{patid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatArchivetagById" parameterType="Long" resultMap="PatArchivetagResult"> |
| | | <include refid="selectPatArchivetagVo"/> |
| | | where id = #{id} |
| | |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="tag != null">tag,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">#{oldid},</if> |
| | |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | #{topicid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="showTopic" resultType="com.smartor.domain.SvyLibTopicAndOptionRes" |
| | | parameterType="com.smartor.domain.SvyTopicReq"> |
| | | SELECT a.topicid, a.topiccode, a.topic, a.topictype, a.tag, b.optioncode, b.optioncontent |
| | | FROM svy_lib_topic a, |
| | | svy_lib_topicoption b |
| | | WHERE a.topicid = b.topicid |
| | | <if test="topic != null and topic != ''"> |
| | | and a.topic LIKE concat('%', #{topic}, '%') |
| | | </if> |
| | | <if test="topicType != null and topicType != ''"> |
| | | and a.topictype = #{topicType} |
| | | </if> |
| | | <if test="tag != null and tag != ''"> |
| | | and a.tag LIKE concat('%', #{tag}, '%') |
| | | </if> |
| | | GROUP BY a.topic, b.optioncode |
| | | </select> |
| | | </mapper> |
| | |
| | | <?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"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTopicoptionMapper"> |
| | | |
| | | |
| | | <resultMap type="SvyLibTopicoption" id="SvyLibTopicoptionResult"> |
| | | <result property="optionid" column="optionid" /> |
| | | <result property="topicid" column="topicid" /> |
| | | <result property="svyid" column="svyid" /> |
| | | <result property="topictype" column="topictype" /> |
| | | <result property="optioncode" column="optioncode" /> |
| | | <result property="optioncontent" column="optioncontent" /> |
| | | <result property="isexistdetail" column="isexistdetail" /> |
| | | <result property="detailismandatory" column="detailismandatory" /> |
| | | <result property="isexceptionitem" column="isexceptionitem" /> |
| | | <result property="istrack" column="istrack" /> |
| | | <result property="score" column="score" /> |
| | | <result property="prompt" column="prompt" /> |
| | | <result property="jump" column="jump" /> |
| | | <result property="parentoptionid" column="parentoptionid" /> |
| | | <result property="ismutex" column="ismutex" /> |
| | | <result property="verifyrule" column="verifyrule" /> |
| | | <result property="sort" column="sort" /> |
| | | <result property="verificationtype" column="verificationtype" /> |
| | | <result property="isrange" column="isrange" /> |
| | | <result property="minrange" column="minrange" /> |
| | | <result property="maxrange" column="maxrange" /> |
| | | <result property="rangelength" column="rangelength" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="oldid" column="oldid" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="optionid" column="optionid"/> |
| | | <result property="topicid" column="topicid"/> |
| | | <result property="svyid" column="svyid"/> |
| | | <result property="topictype" column="topictype"/> |
| | | <result property="optioncode" column="optioncode"/> |
| | | <result property="optioncontent" column="optioncontent"/> |
| | | <result property="isexistdetail" column="isexistdetail"/> |
| | | <result property="detailismandatory" column="detailismandatory"/> |
| | | <result property="isexceptionitem" column="isexceptionitem"/> |
| | | <result property="istrack" column="istrack"/> |
| | | <result property="score" column="score"/> |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="jump" column="jump"/> |
| | | <result property="parentoptionid" column="parentoptionid"/> |
| | | <result property="ismutex" column="ismutex"/> |
| | | <result property="verifyrule" column="verifyrule"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="verificationtype" column="verificationtype"/> |
| | | <result property="isrange" column="isrange"/> |
| | | <result property="minrange" column="minrange"/> |
| | | <result property="maxrange" column="maxrange"/> |
| | | <result property="rangelength" column="rangelength"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="oldid" column="oldid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTopicoptionVo"> |
| | | select optionid, topicid, svyid, topictype, optioncode, optioncontent, isexistdetail, detailismandatory, isexceptionitem, istrack, score, prompt, jump, parentoptionid, ismutex, verifyrule, sort, verificationtype, isrange, minrange, maxrange, rangelength, orgid, oldid, del_flag, create_by, create_time, update_by, update_time, isupload, upload_time from svy_lib_topicoption |
| | | select optionid, |
| | | topicid, |
| | | svyid, |
| | | topictype, |
| | | optioncode, |
| | | optioncontent, |
| | | isexistdetail, |
| | | detailismandatory, |
| | | isexceptionitem, |
| | | istrack, |
| | | score, |
| | | prompt, |
| | | jump, |
| | | parentoptionid, |
| | | ismutex, |
| | | verifyrule, |
| | | sort, |
| | | verificationtype, |
| | | isrange, |
| | | minrange, |
| | | maxrange, |
| | | rangelength, |
| | | orgid, |
| | | oldid, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | isupload, |
| | | upload_time |
| | | from svy_lib_topicoption |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTopicoptionList" parameterType="SvyLibTopicoption" resultMap="SvyLibTopicoptionResult"> |
| | | <include refid="selectSvyLibTopicoptionVo"/> |
| | | <where> |
| | | <if test="topicid != null "> and topicid = #{topicid}</if> |
| | | <if test="svyid != null "> and svyid = #{svyid}</if> |
| | | <if test="topictype != null "> and topictype = #{topictype}</if> |
| | | <if test="optioncode != null and optioncode != ''"> and optioncode = #{optioncode}</if> |
| | | <if test="optioncontent != null and optioncontent != ''"> and optioncontent = #{optioncontent}</if> |
| | | <if test="isexistdetail != null "> and isexistdetail = #{isexistdetail}</if> |
| | | <if test="detailismandatory != null "> and detailismandatory = #{detailismandatory}</if> |
| | | <if test="isexceptionitem != null "> and isexceptionitem = #{isexceptionitem}</if> |
| | | <if test="istrack != null "> and istrack = #{istrack}</if> |
| | | <if test="score != null "> and score = #{score}</if> |
| | | <if test="prompt != null and prompt != ''"> and prompt = #{prompt}</if> |
| | | <if test="jump != null and jump != ''"> and jump = #{jump}</if> |
| | | <if test="parentoptionid != null "> and parentoptionid = #{parentoptionid}</if> |
| | | <if test="ismutex != null "> and ismutex = #{ismutex}</if> |
| | | <if test="verifyrule != null and verifyrule != ''"> and verifyrule = #{verifyrule}</if> |
| | | <if test="sort != null "> and sort = #{sort}</if> |
| | | <if test="verificationtype != null "> and verificationtype = #{verificationtype}</if> |
| | | <if test="isrange != null "> and isrange = #{isrange}</if> |
| | | <if test="minrange != null and minrange != ''"> and minrange = #{minrange}</if> |
| | | <if test="maxrange != null and maxrange != ''"> and maxrange = #{maxrange}</if> |
| | | <if test="rangelength != null "> and rangelength = #{rangelength}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="oldid != null "> and oldid = #{oldid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <where> |
| | | <if test="topicid != null ">and topicid = #{topicid}</if> |
| | | <if test="svyid != null ">and svyid = #{svyid}</if> |
| | | <if test="topictype != null ">and topictype = #{topictype}</if> |
| | | <if test="optioncode != null and optioncode != ''">and optioncode = #{optioncode}</if> |
| | | <if test="optioncontent != null and optioncontent != ''">and optioncontent = #{optioncontent}</if> |
| | | <if test="isexistdetail != null ">and isexistdetail = #{isexistdetail}</if> |
| | | <if test="detailismandatory != null ">and detailismandatory = #{detailismandatory}</if> |
| | | <if test="isexceptionitem != null ">and isexceptionitem = #{isexceptionitem}</if> |
| | | <if test="istrack != null ">and istrack = #{istrack}</if> |
| | | <if test="score != null ">and score = #{score}</if> |
| | | <if test="prompt != null and prompt != ''">and prompt = #{prompt}</if> |
| | | <if test="jump != null and jump != ''">and jump = #{jump}</if> |
| | | <if test="parentoptionid != null ">and parentoptionid = #{parentoptionid}</if> |
| | | <if test="ismutex != null ">and ismutex = #{ismutex}</if> |
| | | <if test="verifyrule != null and verifyrule != ''">and verifyrule = #{verifyrule}</if> |
| | | <if test="sort != null ">and sort = #{sort}</if> |
| | | <if test="verificationtype != null ">and verificationtype = #{verificationtype}</if> |
| | | <if test="isrange != null ">and isrange = #{isrange}</if> |
| | | <if test="minrange != null and minrange != ''">and minrange = #{minrange}</if> |
| | | <if test="maxrange != null and maxrange != ''">and maxrange = #{maxrange}</if> |
| | | <if test="rangelength != null ">and rangelength = #{rangelength}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="oldid != null ">and oldid = #{oldid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectSvyLibTopicoptionByOptionid" parameterType="Long" resultMap="SvyLibTopicoptionResult"> |
| | | <include refid="selectSvyLibTopicoptionVo"/> |
| | | where optionid = #{optionid} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTopicoption" parameterType="SvyLibTopicoption" useGeneratedKeys="true" keyProperty="optionid"> |
| | | |
| | | <insert id="insertSvyLibTopicoption" parameterType="SvyLibTopicoption" useGeneratedKeys="true" |
| | | keyProperty="optionid"> |
| | | insert into svy_lib_topicoption |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="topicid != null">topicid,</if> |
| | |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | </trim> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="topicid != null">#{topicid},</if> |
| | | <if test="svyid != null">#{svyid},</if> |
| | |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | </trim> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTopicoption" parameterType="SvyLibTopicoption"> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTopicoptionByOptionid" parameterType="Long"> |
| | | delete from svy_lib_topicoption where optionid = #{optionid} |
| | | delete |
| | | from svy_lib_topicoption |
| | | where optionid = #{optionid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyLibTopicoptionByOptionids" parameterType="String"> |
| | | delete from svy_lib_topicoption where optionid in |
| | | delete from svy_lib_topicoption where optionid in |
| | | <foreach item="optionid" collection="array" open="(" separator="," close=")"> |
| | | #{optionid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | | </mapper> |