| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.NotRepeatCommit; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.enums.OrganEnum; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.ServiceDonatecompletioninfo; |
| | | import com.ruoyi.project.domain.ServiceDonateorgan; |
| | | import com.ruoyi.project.domain.vo.DonationCompletionVO; |
| | | import com.ruoyi.project.service.IServiceDonatecompletioninfoService; |
| | | import com.ruoyi.project.service.IServiceDonatecomporganService; |
| | | import com.ruoyi.project.service.IServiceDonateorganService; |
| | | import freemarker.template.Configuration; |
| | | import freemarker.template.Template; |
| | |
| | | |
| | | @Autowired |
| | | private IServiceDonateorganService serviceDonateorganService; |
| | | |
| | | @Autowired |
| | | private IServiceDonatecomporganService serviceDonatecomporganService; |
| | | |
| | | private static Configuration configuration = null; |
| | | |
| | |
| | | return toAjax(serviceDonatecompletioninfoService.save(serviceDonatecompletioninfo)); |
| | | } |
| | | |
| | | // /** |
| | | // * æ°å¢æç®å®æè¯¦æ
|
| | | // */ |
| | | // @ApiOperation("æ°å¢æç®å®æè¯¦æ
") |
| | | // //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:add')") |
| | | // @Log(title = "æ°å¢æç®å®æè¯¦æ
", businessType = BusinessType.INSERT) |
| | | // @PostMapping |
| | | // @RepeatSubmit(interval = 5000) |
| | | // public AjaxResult addDetail(@RequestBody ServiceDonatecompletioninfo serviceDonatecompletioninfo) { |
| | | // log.info("æ°å¢æç®å®æï¼{}", serviceDonatecompletioninfo); |
| | | // serviceDonatecompletioninfoService.delDuplicateDonateCompletioninfo(serviceDonatecompletioninfo.getInfoid(), serviceDonatecompletioninfo.getCreateBy()); |
| | | // //æ°å¢donatecomporganæ°æ® |
| | | // if (CollectionUtils.isNotEmpty(serviceDonatecompletioninfo.getServiceDonatecomporganList())) { |
| | | // for (ServiceDonatecomporgan serviceDonatecomporgan : serviceDonatecompletioninfo.getServiceDonatecomporganList()) { |
| | | // if (serviceDonatecomporgan.getInfoid() == null) { |
| | | // throw new BaseException("è¯·æ£æ¥æç®å¨å®ç§»æ¤ä¿¡æ¯ï¼æ¯å¦ä¸æç®åºç¡è¡¨è¿è¡å
³è"); |
| | | // } |
| | | // serviceDonatecomporganService.save(serviceDonatecomporgan); |
| | | // } |
| | | // } |
| | | // return toAjax(serviceDonatecompletioninfoService.save(serviceDonatecompletioninfo)); |
| | | // } |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation("æ°å¢æä¿®æ¹æç®å®æ") |
| | | //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:edit')") |
| | | @Log(title = "æç®å®æ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/saveOrUpdateDonatecompletioninfo") |
| | | public AjaxResult saveOrUpdateDonatecompletioninfo(@RequestBody List<ServiceDonatecompletioninfo> serviceDonatecompletioninfoList) { |
| | | if (CollectionUtils.isEmpty(serviceDonatecompletioninfoList)) { |
| | | throw new BaseException("è¯·æ£æ¥éè¦æ°å¢æä¿®æ¹çæç®å®æåæ°æ¯å¦å®æ´"); |
| | | } |
| | | Boolean i = null; |
| | | for (ServiceDonatecompletioninfo serviceDonatecompletioninfo : serviceDonatecompletioninfoList) { |
| | | log.info("æç®å®æidæ¯å¦ä¸ºç©º : {},åºç¡è¡¨çid为 : {}", serviceDonatecompletioninfo.getId(), serviceDonatecompletioninfo.getInfoid()); |
| | | if (serviceDonatecompletioninfo.getId() == null) { |
| | | i = serviceDonatecompletioninfoService.save(serviceDonatecompletioninfo); |
| | | } else { |
| | | i = serviceDonatecompletioninfoService.updateById(serviceDonatecompletioninfo); |
| | | } |
| | | } |
| | | return toAjax(i); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç®å®æ |
| | | */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | 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.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.ServiceDonatecompletioninfo; |
| | | import com.ruoyi.project.domain.ServiceDonatecomporgan; |
| | | import com.ruoyi.project.service.IServiceDonatecomporganService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®ç§»æ¤Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Slf4j |
| | | @Api("æç®å¨å®ç§»æ¤") |
| | | @RestController |
| | | @RequestMapping("/project/donatecomporgan") |
| | | public class ServiceDonatecomporganController extends BaseController { |
| | | @Autowired |
| | | private IServiceDonatecomporganService serviceDonatecomporganService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®ç§»æ¤å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æç®å¨å®ç§»æ¤å表") |
| | | @PreAuthorize("@ss.hasPermi('system:donatecomporgan:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonatecomporgan serviceDonatecomporgan) { |
| | | startPage(); |
| | | List<ServiceDonatecomporgan> list = serviceDonatecomporganService.queryList(serviceDonatecomporgan); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæç®å¨å®ç§»æ¤å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæç®å¨å®ç§»æ¤å表") |
| | | @PreAuthorize("@ss.hasPermi('system:donatecomporgan:export')") |
| | | @Log(title = "æç®å¨å®ç§»æ¤", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonatecomporgan serviceDonatecomporgan) { |
| | | List<ServiceDonatecomporgan> list = serviceDonatecomporganService.queryList(serviceDonatecomporgan); |
| | | ExcelUtil<ServiceDonatecomporgan> util = new ExcelUtil<ServiceDonatecomporgan>(ServiceDonatecomporgan.class); |
| | | return util.exportExcel(list, "æç®å¨å®ç§»æ¤æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæç®å¨å®ç§»æ¤è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæç®å¨å®ç§»æ¤è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:donatecomporgan:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceDonatecomporganService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æç®å¨å®ç§»æ¤ |
| | | */ |
| | | @ApiOperation("æ°å¢æç®å¨å®ç§»æ¤") |
| | | @PreAuthorize("@ss.hasPermi('system:donatecomporgan:add')") |
| | | @Log(title = "æç®å¨å®ç§»æ¤", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonatecomporgan serviceDonatecomporgan) { |
| | | return toAjax(serviceDonatecomporganService.save(serviceDonatecomporgan)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç®å¨å®ç§»æ¤ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æç®å¨å®ç§»æ¤") |
| | | @PreAuthorize("@ss.hasPermi('system:donatecomporgan:edit')") |
| | | @Log(title = "æç®å¨å®ç§»æ¤", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonatecomporgan serviceDonatecomporgan) { |
| | | return toAjax(serviceDonatecomporganService.updateById(serviceDonatecomporgan)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ç®å¨å®ç§»æ¤ |
| | | */ |
| | | @ApiOperation("å 餿ç®å¨å®ç§»æ¤") |
| | | @PreAuthorize("@ss.hasPermi('system:donatecomporgan:remove')") |
| | | @Log(title = "æç®å¨å®ç§»æ¤", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceDonatecomporganService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation("æ°å¢æä¿®æ¹æç®å¨å®ç§»æ¤") |
| | | @Log(title = "æç®å®æ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/saveOrUpdateDonatecomporgan") |
| | | public AjaxResult saveOrUpdateDonatecomporgan(@RequestBody List<ServiceDonatecomporgan> serviceDonatecomporganList) { |
| | | if (CollectionUtils.isNotEmpty(serviceDonatecomporganList)) { |
| | | throw new BaseException("è¯·æ£æ¥éè¦æ°å¢æä¿®æ¹çåæ°æ¯å¦å®æ´"); |
| | | } |
| | | Boolean i = null; |
| | | for (ServiceDonatecomporgan serviceDonatecompletion : serviceDonatecomporganList) { |
| | | log.info("æç®å¨å®ç§»æ¤idæ¯å¦ä¸ºç©º : {},åºç¡è¡¨çid为 : {}", serviceDonatecompletion.getId(), serviceDonatecompletion.getInfoid()); |
| | | if (serviceDonatecompletion.getId() == null) { |
| | | i = serviceDonatecomporganService.save(serviceDonatecompletion); |
| | | } else { |
| | | i = serviceDonatecomporganService.updateById(serviceDonatecompletion); |
| | | } |
| | | } |
| | | return toAjax(i); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.bean.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.ServiceDonatecomporgan; |
| | | import com.ruoyi.project.domain.ServiceDonateorgan; |
| | | import com.ruoyi.project.domain.ServiceDonateorganVO; |
| | | import com.ruoyi.project.domain.ServiceOrganallocation; |
| | |
| | | import com.ruoyi.project.service.IServiceOrganallocationService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | * @author ruoyi |
| | | * @date 2021-11-10 |
| | | */ |
| | | @Slf4j |
| | | @Api("æç®å¨å®ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/project/donateorgan") |
| | |
| | | return AjaxResult.success(serviceDonateorganService.getOrganCount(timeVO)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation("æ°å¢æä¿®æ¹æç®å¨å®ç®¡ç") |
| | | @Log(title = "æç®å®æ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/saveOrUpdateDonateorgan") |
| | | public AjaxResult saveOrUpdateDonateorgan(@RequestBody List<ServiceDonateorgan> serviceDonateorganList) { |
| | | if (CollectionUtils.isEmpty(serviceDonateorganList)) { |
| | | throw new BaseException("è¯·æ£æ¥éè¦æ°å¢æä¿®æ¹çæç®å¨å®ç®¡çåæ°æ¯å¦å®æ´"); |
| | | } |
| | | Boolean i = null; |
| | | for (ServiceDonateorgan serviceDonateorgan : serviceDonateorganList) { |
| | | log.info("æç®å¨å®ç§»æ¤idæ¯å¦ä¸ºç©º : {},åºç¡è¡¨çid为 : {}", serviceDonateorgan.getId(), serviceDonateorgan.getInfoid()); |
| | | if (serviceDonateorgan.getId() == null) { |
| | | i = serviceDonateorganService.save(serviceDonateorgan); |
| | | } else { |
| | | i = serviceDonateorganService.updateById(serviceDonateorgan); |
| | | } |
| | | } |
| | | return toAjax(i); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.ruoyi.common.annotation.NotRepeatCommit; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.enums.OrganEnum; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.project.domain.ServiceDonateorgan; |
| | | import com.ruoyi.project.domain.vo.DonationWitnessVO; |
| | |
| | | import freemarker.template.TemplateException; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | |
| | | * @author ruoyi |
| | | * @date 2021-11-17 |
| | | */ |
| | | @Slf4j |
| | | @Api("æç®è§è¯ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/project/donationwitness") |
| | |
| | | return AjaxResult.success(serviceDonationwitnessService.getStats(timeVO)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation("æ°å¢æä¿®æ¹æç®è§è¯ç®¡ç") |
| | | @Log(title = "æç®å®æ", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/saveOrUpdateDonationwitness") |
| | | public AjaxResult saveOrUpdateDonationwitness(@RequestBody List<ServiceDonationwitness> serviceDonationwitnessList) { |
| | | if (CollectionUtils.isEmpty(serviceDonationwitnessList)) { |
| | | throw new BaseException("è¯·æ£æ¥éè¦æ°å¢æä¿®æ¹çæç®è§è¯ç®¡çåæ°æ¯å¦å®æ´"); |
| | | } |
| | | Boolean i = null; |
| | | for (ServiceDonationwitness serviceDonationwitness : serviceDonationwitnessList) { |
| | | log.info("æç®è§è¯ç®¡çidæ¯å¦ä¸ºç©º : {},åºç¡è¡¨çid为 : {}", serviceDonationwitness.getId(), serviceDonationwitness.getInfoid()); |
| | | if (serviceDonationwitness.getId() == null) { |
| | | i = serviceDonationwitnessService.save(serviceDonationwitness); |
| | | } else { |
| | | i = serviceDonationwitnessService.updateById(serviceDonationwitness); |
| | | } |
| | | } |
| | | return toAjax(i); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | 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.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.ServiceDonationwitness; |
| | | import com.ruoyi.project.domain.ServiceDonationwitnessorgan; |
| | | import com.ruoyi.project.service.IServiceDonationwitnessorganService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®è·åController |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Slf4j |
| | | @Api("æç®å¨å®è·å") |
| | | @RestController |
| | | @RequestMapping("/system/donationwitnessorgan") |
| | | public class ServiceDonationwitnessorganController extends BaseController { |
| | | @Autowired |
| | | private IServiceDonationwitnessorganService serviceDonationwitnessorganService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®è·åå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æç®å¨å®è·åå表") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | startPage(); |
| | | List<ServiceDonationwitnessorgan> list = serviceDonationwitnessorganService.queryList(serviceDonationwitnessorgan); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæç®å¨å®è·åå表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæç®å¨å®è·åå表") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:export')") |
| | | @Log(title = "æç®å¨å®è·å", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | List<ServiceDonationwitnessorgan> list = serviceDonationwitnessorganService.queryList(serviceDonationwitnessorgan); |
| | | ExcelUtil<ServiceDonationwitnessorgan> util = new ExcelUtil<ServiceDonationwitnessorgan>(ServiceDonationwitnessorgan.class); |
| | | return util.exportExcel(list, "æç®å¨å®è·åæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæç®å¨å®è·å详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæç®å¨å®è·å详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceDonationwitnessorganService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æç®å¨å®è·å |
| | | */ |
| | | @ApiOperation("æ°å¢æç®å¨å®è·å") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:add')") |
| | | @Log(title = "æç®å¨å®è·å", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | return toAjax(serviceDonationwitnessorganService.save(serviceDonationwitnessorgan)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç®å¨å®è·å |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æç®å¨å®è·å") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:edit')") |
| | | @Log(title = "æç®å¨å®è·å", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | return toAjax(serviceDonationwitnessorganService.updateById(serviceDonationwitnessorgan)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ç®å¨å®è·å |
| | | */ |
| | | @ApiOperation("å 餿ç®å¨å®è·å") |
| | | @PreAuthorize("@ss.hasPermi('system:donationwitnessorgan:remove')") |
| | | @Log(title = "æç®å¨å®è·å", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceDonationwitnessorganService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation("æ°å¢æä¿®æ¹æç®å¨å®è·å") |
| | | @Log(title = "æç®å¨å®è·å", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/saveOrUpdateDonationwitnessorgan") |
| | | public AjaxResult saveOrUpdateDonationwitnessorgan(@RequestBody List<ServiceDonationwitnessorgan> serviceDonationwitnessorganList) { |
| | | if (CollectionUtils.isEmpty(serviceDonationwitnessorganList)) { |
| | | throw new BaseException("è¯·æ£æ¥éè¦æ°å¢æä¿®æ¹çæç®å¨å®è·ååæ°æ¯å¦å®æ´"); |
| | | } |
| | | Boolean i = null; |
| | | for (ServiceDonationwitnessorgan serviceDonationwitnessorgan : serviceDonationwitnessorganList) { |
| | | log.info("æç®å¨å®è·åidæ¯å¦ä¸ºç©º : {},åºç¡è¡¨çid为 : {}", serviceDonationwitnessorgan.getId(), serviceDonationwitnessorgan.getInfoid()); |
| | | if (serviceDonationwitnessorgan.getId() == null) { |
| | | i = serviceDonationwitnessorganService.save(serviceDonationwitnessorgan); |
| | | } else { |
| | | i = serviceDonationwitnessorganService.updateById(serviceDonationwitnessorgan); |
| | | } |
| | | } |
| | | return toAjax(i); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | 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.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.ServiceDonationwitnessorgan; |
| | | import com.ruoyi.project.domain.ServiceDonorchargeorgan; |
| | | import com.ruoyi.project.service.IServiceDonorchargeorganService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Slf4j |
| | | @Api("æç®å¨å®") |
| | | @RestController |
| | | @RequestMapping("/system/donorchargeorgan") |
| | | public class ServiceDonorchargeorganController extends BaseController { |
| | | @Autowired |
| | | private IServiceDonorchargeorganService serviceDonorchargeorganService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æç®å¨å®å表") |
| | | @PreAuthorize("@ss.hasPermi('system:donorchargeorgan:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonorchargeorgan serviceDonorchargeorgan) { |
| | | startPage(); |
| | | List<ServiceDonorchargeorgan> list = serviceDonorchargeorganService.queryList(serviceDonorchargeorgan); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæç®å¨å®å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæç®å¨å®å表") |
| | | @PreAuthorize("@ss.hasPermi('system:donorchargeorgan:export')") |
| | | @Log(title = "æç®å¨å®", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonorchargeorgan serviceDonorchargeorgan) { |
| | | List<ServiceDonorchargeorgan> list = serviceDonorchargeorganService.queryList(serviceDonorchargeorgan); |
| | | ExcelUtil<ServiceDonorchargeorgan> util = new ExcelUtil<ServiceDonorchargeorgan>(ServiceDonorchargeorgan.class); |
| | | return util.exportExcel(list, "æç®å¨å®æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæç®å¨å®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæç®å¨å®è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:donorchargeorgan:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(serviceDonorchargeorganService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æç®å¨å® |
| | | */ |
| | | @ApiOperation("æ°å¢æç®å¨å®") |
| | | @PreAuthorize("@ss.hasPermi('system:donorchargeorgan:add')") |
| | | @Log(title = "æç®å¨å®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonorchargeorgan serviceDonorchargeorgan) { |
| | | return toAjax(serviceDonorchargeorganService.save(serviceDonorchargeorgan)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç®å¨å® |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æç®å¨å®") |
| | | @PreAuthorize("@ss.hasPermi('system:donorchargeorgan:edit')") |
| | | @Log(title = "æç®å¨å®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonorchargeorgan serviceDonorchargeorgan) { |
| | | return toAjax(serviceDonorchargeorganService.updateById(serviceDonorchargeorgan)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ç®å¨å® |
| | | */ |
| | | @ApiOperation("å 餿ç®å¨å®") |
| | | @PreAuthorize("@ss.hasPermi('system:donorchargeorgan:remove')") |
| | | @Log(title = "æç®å¨å®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceDonorchargeorganService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @ApiOperation("æ°å¢æä¿®æ¹æç®å¨å®") |
| | | @Log(title = "æç®å¨å®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/saveOrUpdateDonorchargeorgan") |
| | | public AjaxResult saveOrUpdateDonorchargeorgan(@RequestBody List<ServiceDonorchargeorgan> serviceDonorchargeorganList) { |
| | | if (CollectionUtils.isEmpty(serviceDonorchargeorganList)) { |
| | | throw new BaseException("è¯·æ£æ¥éè¦æ°å¢æä¿®æ¹çæç®å¨å®åæ°æ¯å¦å®æ´"); |
| | | } |
| | | Boolean i = null; |
| | | for (ServiceDonorchargeorgan serviceDonorchargeorgan : serviceDonorchargeorganList) { |
| | | log.info("æç®å¨å®idæ¯å¦ä¸ºç©º : {},åºç¡è¡¨çid为 : {}", serviceDonorchargeorgan.getId(), serviceDonorchargeorgan.getInfoid()); |
| | | if (serviceDonorchargeorgan.getId() == null) { |
| | | i = serviceDonorchargeorganService.save(serviceDonorchargeorgan); |
| | | } else { |
| | | i = serviceDonorchargeorganService.updateById(serviceDonorchargeorgan); |
| | | } |
| | | } |
| | | return toAjax(i); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.project.domain; |
| | | |
| | | import java.beans.Transient; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | |
| | | |
| | | /** |
| | | * æç®å®æå¯¹è±¡ service_donatecompletioninfo |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2021-11-19 |
| | | */ |
| | | @Data |
| | | @ApiModel("æç®å®æ") |
| | | public class ServiceDonatecompletioninfo extends BaseEntity |
| | | { |
| | | public class ServiceDonatecompletioninfo extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @ApiModelProperty("$column.columnComment") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** */ |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("") |
| | | private Long infoid; |
| | | |
| | | /** æç®è
ç¼å· */ |
| | | /** |
| | | * æç®è
ç¼å· |
| | | */ |
| | | @ApiModelProperty("æç®è
ç¼å·") |
| | | @Excel(name = "æç®è
ç¼å·") |
| | | private String donorno; |
| | | |
| | | /** æ¯å¦éä½æç® */ |
| | | /** |
| | | * æ¯å¦éä½æç® |
| | | */ |
| | | @ApiModelProperty("æ¯å¦é使ç®") |
| | | @Excel(name = "æ¯å¦é使ç®") |
| | | private String isbodydonation; |
| | | |
| | | |
| | | /** æ¥æ¶åä½åç§° */ |
| | | /** |
| | | * æ¥æ¶åä½åç§° |
| | | */ |
| | | @ApiModelProperty("æ¥æ¶åä½åç§°") |
| | | @Excel(name = "æ¥æ¶åä½åç§°") |
| | | private String receivingunitname; |
| | | |
| | | /** æ¥æ¶åä½ */ |
| | | /** |
| | | * æ¥æ¶åä½ |
| | | */ |
| | | @ApiModelProperty("æ¥æ¶åä½") |
| | | @Excel(name = "æ¥æ¶åä½") |
| | | private String receivingunit; |
| | | |
| | | /** 宿æ¶é´ */ |
| | | /** |
| | | * 宿æ¶é´ |
| | | */ |
| | | @ApiModelProperty("宿æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "宿æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date completetime; |
| | | |
| | | /** è´è´£äººç¼å· */ |
| | | /** |
| | | * è´è´£äººç¼å· |
| | | */ |
| | | @ApiModelProperty("è´è´£äººç¼å·") |
| | | private String responsibleuserid; |
| | | |
| | | /** è´è´£äººå§å */ |
| | | /** |
| | | * è´è´£äººå§å |
| | | */ |
| | | @ApiModelProperty("è´è´£äººå§å") |
| | | @Excel(name = "è´è´£äººå§å") |
| | | private String responsibleusername; |
| | | |
| | | /** åè°åä¸ç¼å· */ |
| | | /** |
| | | * åè°åä¸ç¼å· |
| | | */ |
| | | @ApiModelProperty("åè°åä¸ç¼å·") |
| | | private String coordinateduserido; |
| | | |
| | | /** åè°åä¸å§å */ |
| | | /** |
| | | * åè°åä¸å§å |
| | | */ |
| | | @ApiModelProperty("åè°åä¸å§å") |
| | | @Excel(name = "åè°åä¸å§å") |
| | | private String coordinatedusernameo; |
| | | |
| | | /** åè°åäºç¼å· */ |
| | | /** |
| | | * åè°åäºç¼å· |
| | | */ |
| | | @ApiModelProperty("åè°åäºç¼å·") |
| | | private String coordinateduseridt; |
| | | |
| | | /** åè°åäºå§å */ |
| | | /** |
| | | * åè°åäºå§å |
| | | */ |
| | | @ApiModelProperty("åè°åäºå§å") |
| | | @Excel(name = "åè°åäºå§å") |
| | | private String coordinatedusernamet; |
| | | |
| | | /** éä»¶ */ |
| | | /** |
| | | * éä»¶ |
| | | */ |
| | | @ApiModelProperty("éä»¶") |
| | | private String assessannex; |
| | | |
| | | /** æç®å¨å® */ |
| | | /** |
| | | * æç®å¨å® |
| | | */ |
| | | @ApiModelProperty("æç®å¨å®") |
| | | @Excel(name = "æç®å¨å®") |
| | | private String donateorgan; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("æç®å¨å®ç§»æ¤è¡¨") |
| | | private List<ServiceDonatecomporgan> serviceDonatecomporganList; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.domain; |
| | | |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | 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; |
| | | |
| | | /** |
| | | * æç®å¨å®ç§»æ¤å¯¹è±¡ service_donatecomporgan |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Data |
| | | @ApiModel("æç®å¨å®ç§»æ¤") |
| | | public class ServiceDonatecomporgan extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | @ApiModelProperty("$column.columnComment") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** å
³èservice_donatebaseinfo表çID */ |
| | | @ApiModelProperty("å
³èservice_donatebaseinfo表çID") |
| | | @Excel(name = "å
³èservice_donatebaseinfo表çID") |
| | | private Long infoid; |
| | | |
| | | /** å¨å®ç±»å« 详è§åå
¸sys_Organ */ |
| | | @ApiModelProperty("å¨å®ç±»å« 详è§åå
¸sys_Organ") |
| | | @Excel(name = "å¨å®ç±»å« 详è§åå
¸sys_Organ") |
| | | private String organno; |
| | | |
| | | /** å¨å®ç±»å«åç§° 详è§åå
¸sys_Organ */ |
| | | @ApiModelProperty("å¨å®ç±»å«åç§° 详è§åå
¸sys_Organ") |
| | | @Excel(name = "å¨å®ç±»å«åç§° 详è§åå
¸sys_Organ") |
| | | private String organname; |
| | | |
| | | /** å¨å®ç§»æ¤ç¶æ ï¼0ï¼æªç§»æ¤ï¼1ï¼å·²ç§»æ¤ï¼2ï¼å¼ç¨ */ |
| | | @ApiModelProperty("å¨å®ç§»æ¤ç¶æ ï¼0ï¼æªç§»æ¤ï¼1ï¼å·²ç§»æ¤ï¼2ï¼å¼ç¨") |
| | | @Excel(name = "å¨å®ç§»æ¤ç¶æ ï¼0ï¼æªç§»æ¤ï¼1ï¼å·²ç§»æ¤ï¼2ï¼å¼ç¨") |
| | | private Long transplantstate; |
| | | |
| | | /** æªç§»æ¤åå */ |
| | | @ApiModelProperty("æªç§»æ¤åå ") |
| | | @Excel(name = "æªç§»æ¤åå ") |
| | | private String abandonreason; |
| | | |
| | | /** ç§»æ¤æ¶é´ */ |
| | | @ApiModelProperty("ç§»æ¤æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "ç§»æ¤æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date transplanttime; |
| | | |
| | | /** ç§»æ¤å»ç */ |
| | | @ApiModelProperty("ç§»æ¤å»ç") |
| | | @Excel(name = "ç§»æ¤å»ç") |
| | | private String transplantdoct; |
| | | |
| | | /** å¨å®ç§»æ¤æºæç¼å· å¯¹åºæºæè¡¨ */ |
| | | @ApiModelProperty("å¨å®ç§»æ¤æºæç¼å· å¯¹åºæºæè¡¨") |
| | | @Excel(name = "å¨å®ç§»æ¤æºæç¼å· å¯¹åºæºæè¡¨") |
| | | private String transplanthospitalno; |
| | | |
| | | /** å¨å®ç§»æ¤æºæåç§° å¯¹åºæºæè¡¨ */ |
| | | @ApiModelProperty("å¨å®ç§»æ¤æºæåç§° å¯¹åºæºæè¡¨") |
| | | @Excel(name = "å¨å®ç§»æ¤æºæåç§° å¯¹åºæºæè¡¨") |
| | | private String transplanthospitalname; |
| | | |
| | | /** ç§»æ¤äººå§å */ |
| | | @ApiModelProperty("ç§»æ¤äººå§å") |
| | | @Excel(name = "ç§»æ¤äººå§å") |
| | | private String name; |
| | | |
| | | /** ç§»æ¤äººæ§å« æ ¹æ®åå
¸sys_user_sex */ |
| | | @ApiModelProperty("ç§»æ¤äººæ§å« æ ¹æ®åå
¸sys_user_sex") |
| | | @Excel(name = "ç§»æ¤äººæ§å« æ ¹æ®åå
¸sys_user_sex") |
| | | private Long sex; |
| | | |
| | | /** ç§»æ¤äººè¯ä»¶ç±»å æ ¹æ®åå
¸sys_IDType */ |
| | | @ApiModelProperty("ç§»æ¤äººè¯ä»¶ç±»å æ ¹æ®åå
¸sys_IDType") |
| | | @Excel(name = "ç§»æ¤äººè¯ä»¶ç±»å æ ¹æ®åå
¸sys_IDType") |
| | | private Long idcardtype; |
| | | |
| | | /** ç§»æ¤äººè¯ä»¶å·ç */ |
| | | @ApiModelProperty("ç§»æ¤äººè¯ä»¶å·ç ") |
| | | @Excel(name = "ç§»æ¤äººè¯ä»¶å·ç ") |
| | | private String idcardno; |
| | | |
| | | /** ç§»æ¤äººå¹´é¾ */ |
| | | @ApiModelProperty("ç§»æ¤äººå¹´é¾") |
| | | @Excel(name = "ç§»æ¤äººå¹´é¾") |
| | | private Long age; |
| | | |
| | | /** ç§»æ¤äººå¹´é¾åä½ æ ¹æ®åå
¸sys_AgeUnit */ |
| | | @ApiModelProperty("ç§»æ¤äººå¹´é¾åä½ æ ¹æ®åå
¸sys_AgeUnit") |
| | | @Excel(name = "ç§»æ¤äººå¹´é¾åä½ æ ¹æ®åå
¸sys_AgeUnit") |
| | | private String ageunit; |
| | | |
| | | /** ç§»æ¤äººåºçæ¥æ */ |
| | | @ApiModelProperty("ç§»æ¤äººåºçæ¥æ") |
| | | @Excel(name = "ç§»æ¤äººåºçæ¥æ") |
| | | private String birthday; |
| | | |
| | | /** ç§»æ¤äººèç³»çµè¯ */ |
| | | @ApiModelProperty("ç§»æ¤äººèç³»çµè¯") |
| | | @Excel(name = "ç§»æ¤äººèç³»çµè¯") |
| | | private String phone; |
| | | |
| | | /** ç§»æ¤äººç°ä½å°å */ |
| | | @ApiModelProperty("ç§»æ¤äººç°ä½å°å") |
| | | @Excel(name = "ç§»æ¤äººç°ä½å°å") |
| | | private String residenceaddress; |
| | | |
| | | /** ç§»æ¤äººç°ä½å°åç代ç */ |
| | | @ApiModelProperty("ç§»æ¤äººç°ä½å°åç代ç ") |
| | | @Excel(name = "ç§»æ¤äººç°ä½å°åç代ç ") |
| | | private String residenceprovince; |
| | | |
| | | /** ç§»æ¤äººç°ä½å°åçåç§° */ |
| | | @ApiModelProperty("ç§»æ¤äººç°ä½å°åçåç§°") |
| | | @Excel(name = "ç§»æ¤äººç°ä½å°åçåç§°") |
| | | private String residenceprovincename; |
| | | |
| | | /** ç§»æ¤äººå¸ç¼å· æ ¹æ®è¡æ¿åºå表 */ |
| | | @ApiModelProperty("ç§»æ¤äººå¸ç¼å· æ ¹æ®è¡æ¿åºå表") |
| | | @Excel(name = "ç§»æ¤äººå¸ç¼å· æ ¹æ®è¡æ¿åºå表") |
| | | private String residencecity; |
| | | |
| | | /** ç§»æ¤äººå¸åç§° */ |
| | | @ApiModelProperty("ç§»æ¤äººå¸åç§°") |
| | | @Excel(name = "ç§»æ¤äººå¸åç§°") |
| | | private String residencecityname; |
| | | |
| | | /** ç§»æ¤äººæå±è¡éï¼éï¼æ ¹æ®è¡æ¿åºå表 */ |
| | | @ApiModelProperty("ç§»æ¤äººæå±è¡éï¼éï¼æ ¹æ®è¡æ¿åºå表") |
| | | @Excel(name = "ç§»æ¤äººæå±è¡é", readConverterExp = "é=") |
| | | private String residencetown; |
| | | |
| | | /** ç§»æ¤äººæå±è¡éï¼éï¼åç§° */ |
| | | @ApiModelProperty("ç§»æ¤äººæå±è¡éï¼éï¼åç§°") |
| | | @Excel(name = "ç§»æ¤äººæå±è¡é", readConverterExp = "é=") |
| | | private String residencetownname; |
| | | |
| | | /** ç§»æ¤äººç¤¾åºï¼æï¼ç¼å· æ ¹æ®è¡æ¿åºå表 */ |
| | | @ApiModelProperty("ç§»æ¤äººç¤¾åºï¼æï¼ç¼å· æ ¹æ®è¡æ¿åºå表") |
| | | @Excel(name = "ç§»æ¤äººç¤¾åº", readConverterExp = "æ=") |
| | | private String residencecommunity; |
| | | |
| | | /** ç§»æ¤äººç¤¾åºï¼æï¼åç§° */ |
| | | @ApiModelProperty("ç§»æ¤äººç¤¾åºï¼æï¼åç§°") |
| | | @Excel(name = "ç§»æ¤äººç¤¾åº", readConverterExp = "æ=") |
| | | private String residencecommunityname; |
| | | |
| | | /** ç§»æ¤äººæå±åºåç¼å· æ ¹æ®è¡æ¿åºå表 */ |
| | | @ApiModelProperty("ç§»æ¤äººæå±åºåç¼å· æ ¹æ®è¡æ¿åºå表") |
| | | @Excel(name = "ç§»æ¤äººæå±åºåç¼å· æ ¹æ®è¡æ¿åºå表") |
| | | private String residencecountycode; |
| | | |
| | | /** ç§»æ¤äººæå±åºååç§° */ |
| | | @ApiModelProperty("ç§»æ¤äººæå±åºååç§°") |
| | | @Excel(name = "ç§»æ¤äººæå±åºååç§°") |
| | | private String residencecountyname; |
| | | |
| | | } |
| | | |
| | |
| | | private Date organgettime; |
| | | |
| | | /** |
| | | * é¢è®¡è·åæ¶é´ |
| | | */ |
| | | @ApiModelProperty("é¢è®¡è·åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "é¢è®¡è·åæ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date estimatedtime; |
| | | |
| | | /** |
| | | * å»çå§å |
| | | */ |
| | | @ApiModelProperty("å»çå§å") |
| | |
| | | private Integer transplantstate; |
| | | |
| | | |
| | | |
| | | /** ç³»ç»ç¼å· */ |
| | | /** |
| | | * ç³»ç»ç¼å· |
| | | */ |
| | | @ApiModelProperty("ç³»ç»ç¼å·") |
| | | @Excel(name = "ç³»ç»ç¼å·") |
| | | private String caseno; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.domain; |
| | | |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | 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; |
| | | |
| | | /** |
| | | * æç®å¨å®è·å对象 service_donationwitnessorgan |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Data |
| | | @ApiModel("æç®å¨å®è·å") |
| | | public class ServiceDonationwitnessorgan extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | @ApiModelProperty("$column.columnComment") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** å
³èservice_donatebaseinfo表çID */ |
| | | @ApiModelProperty("å
³èservice_donatebaseinfo表çID") |
| | | @Excel(name = "å
³èservice_donatebaseinfo表çID") |
| | | private Long infoid; |
| | | |
| | | /** æç®è
ç¼å· */ |
| | | @ApiModelProperty("æç®è
ç¼å·") |
| | | @Excel(name = "æç®è
ç¼å·") |
| | | private String donorno; |
| | | |
| | | /** å¨å®ç±»å« 详è§åå
¸sys_Organ */ |
| | | @ApiModelProperty("å¨å®ç±»å« 详è§åå
¸sys_Organ") |
| | | @Excel(name = "å¨å®ç±»å« 详è§åå
¸sys_Organ") |
| | | private String organno; |
| | | |
| | | /** å¨å®ç±»å«åç§° 详è§åå
¸sys_Organ */ |
| | | @ApiModelProperty("å¨å®ç±»å«åç§° 详è§åå
¸sys_Organ") |
| | | @Excel(name = "å¨å®ç±»å«åç§° 详è§åå
¸sys_Organ") |
| | | private String organname; |
| | | |
| | | /** å¨å®ç¼å· */ |
| | | @ApiModelProperty("å¨å®ç¼å· ") |
| | | @Excel(name = "å¨å®ç¼å· ") |
| | | private String organnumber; |
| | | |
| | | /** å¨å®è·åç¶æ ï¼0ï¼æªè·åï¼1ï¼å·²è·åï¼2ï¼å¼ç¨ */ |
| | | @ApiModelProperty("å¨å®è·åç¶æ ï¼0ï¼æªè·åï¼1ï¼å·²è·åï¼2ï¼å¼ç¨") |
| | | @Excel(name = "å¨å®è·åç¶æ ï¼0ï¼æªè·åï¼1ï¼å·²è·åï¼2ï¼å¼ç¨") |
| | | private String organstate; |
| | | |
| | | /** æªè·ååå */ |
| | | @ApiModelProperty("æªè·ååå ") |
| | | @Excel(name = "æªè·ååå ") |
| | | private String notgetreason; |
| | | |
| | | /** å¨å®è·åæ¶é´ */ |
| | | @ApiModelProperty("å¨å®è·åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "å¨å®è·åæ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date organgettime; |
| | | |
| | | /** å»çå§å */ |
| | | @ApiModelProperty("å»çå§å") |
| | | @Excel(name = "å»çå§å") |
| | | private String organgetdoct; |
| | | |
| | | /** å¨å®è·åæºæç¼å· å¯¹åºæºæè¡¨ */ |
| | | @ApiModelProperty("å¨å®è·åæºæç¼å· å¯¹åºæºæè¡¨") |
| | | @Excel(name = "å¨å®è·åæºæç¼å· å¯¹åºæºæè¡¨") |
| | | private String gainhospitalno; |
| | | |
| | | /** å¨å®è·åæºæåç§° å¯¹åºæºæè¡¨ */ |
| | | @ApiModelProperty("å¨å®è·åæºæåç§° å¯¹åºæºæè¡¨") |
| | | @Excel(name = "å¨å®è·åæºæåç§° å¯¹åºæºæè¡¨") |
| | | private String gainhospitalname; |
| | | |
| | | /** è·ååæ´»æ£ï¼åè§sys_0_1 */ |
| | | @ApiModelProperty("è·ååæ´»æ£ï¼åè§sys_0_1") |
| | | @Excel(name = "è·ååæ´»æ£ï¼åè§sys_0_1") |
| | | private String isbiopsybefore; |
| | | |
| | | /** è·ååæ´»æ£ï¼åè§sys_0_1 */ |
| | | @ApiModelProperty("è·ååæ´»æ£ï¼åè§sys_0_1") |
| | | @Excel(name = "è·ååæ´»æ£ï¼åè§sys_0_1") |
| | | private String isbiopsyafter; |
| | | |
| | | /** å±äºè¾¹ç¼å¨å®ï¼åè§sys_0_1 */ |
| | | @ApiModelProperty("å±äºè¾¹ç¼å¨å®ï¼åè§sys_0_1") |
| | | @Excel(name = "å±äºè¾¹ç¼å¨å®ï¼åè§sys_0_1") |
| | | private String ismarginalorgan; |
| | | |
| | | /** ç
åè鳿§ï¼åè§sys_0_1 */ |
| | | @ApiModelProperty("ç
åè鳿§ï¼åè§sys_0_1") |
| | | @Excel(name = "ç
åè鳿§ï¼åè§sys_0_1") |
| | | private String ispathogenpositive; |
| | | |
| | | /** ååæ§æ åè½ï¼åè§sys_0_1 */ |
| | | @ApiModelProperty("ååæ§æ åè½ï¼åè§sys_0_1") |
| | | @Excel(name = "ååæ§æ åè½ï¼åè§sys_0_1") |
| | | private String ispnf; |
| | | |
| | | /** åè½å»¶è¿æ§æ¢å¤ï¼åè§sys_0_1 */ |
| | | @ApiModelProperty("åè½å»¶è¿æ§æ¢å¤ï¼åè§sys_0_1") |
| | | @Excel(name = "åè½å»¶è¿æ§æ¢å¤ï¼åè§sys_0_1") |
| | | private String isdgf; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.domain; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | 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; |
| | | |
| | | /** |
| | | * æç®å¨å®å¯¹è±¡ service_donorchargeorgan |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Data |
| | | @ApiModel("æç®å¨å®") |
| | | public class ServiceDonorchargeorgan extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | @ApiModelProperty("$column.columnComment") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** å
³èservice_donatebaseinfo表çID */ |
| | | @ApiModelProperty("å
³èservice_donatebaseinfo表çID") |
| | | @Excel(name = "å
³èservice_donatebaseinfo表çID") |
| | | private Long infoid; |
| | | |
| | | /** æç®äººåå */ |
| | | @ApiModelProperty("æç®äººåå") |
| | | @Excel(name = "æç®äººåå") |
| | | private String donorname; |
| | | |
| | | /** å¨å®ç§»æ¤æºæåç§° å¯¹åºæºæè¡¨ */ |
| | | @ApiModelProperty("å¨å®ç§»æ¤æºæåç§° å¯¹åºæºæè¡¨") |
| | | @Excel(name = "å¨å®ç§»æ¤æºæåç§° å¯¹åºæºæè¡¨") |
| | | private String hospitalname; |
| | | |
| | | /** å¨å®ç§»æ¤æºæç¼å· å¯¹åºæºæè¡¨ */ |
| | | @ApiModelProperty("å¨å®ç§»æ¤æºæç¼å· å¯¹åºæºæè¡¨") |
| | | @Excel(name = "å¨å®ç§»æ¤æºæç¼å· å¯¹åºæºæè¡¨") |
| | | private String hospitalno; |
| | | |
| | | /** å¨å®ç±»å« 详è§åå
¸sys_Organ */ |
| | | @ApiModelProperty("å¨å®ç±»å« 详è§åå
¸sys_Organ") |
| | | @Excel(name = "å¨å®ç±»å« 详è§åå
¸sys_Organ") |
| | | private String organno; |
| | | |
| | | /** å¨å®ç±»å«åç§° 详è§åå
¸sys_Organ */ |
| | | @ApiModelProperty("å¨å®ç±»å«åç§° 详è§åå
¸sys_Organ") |
| | | @Excel(name = "å¨å®ç±»å«åç§° 详è§åå
¸sys_Organ") |
| | | private String organname; |
| | | |
| | | /** å¨å®åºæ¶è´¹ç¨ */ |
| | | @ApiModelProperty("å¨å®åºæ¶è´¹ç¨") |
| | | @Excel(name = "å¨å®åºæ¶è´¹ç¨") |
| | | private BigDecimal organcharge; |
| | | |
| | | /** è´¹ç¨å½å
¥æ¶é´ */ |
| | | @ApiModelProperty("è´¹ç¨å½å
¥æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "è´¹ç¨å½å
¥æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date organtime; |
| | | |
| | | /** è´¹ç¨å½å
¥äºº */ |
| | | @ApiModelProperty("è´¹ç¨å½å
¥äºº") |
| | | @Excel(name = "è´¹ç¨å½å
¥äºº") |
| | | private String chargeoperator; |
| | | |
| | | /** å¨å®å®é
æ¶å°è´¹ç¨ */ |
| | | @ApiModelProperty("å¨å®å®é
æ¶å°è´¹ç¨") |
| | | @Excel(name = "å¨å®å®é
æ¶å°è´¹ç¨") |
| | | private BigDecimal amount; |
| | | |
| | | /** å¨å®å®é
æ¶å°è´¹ç¨æ¶é´ */ |
| | | @ApiModelProperty("å¨å®å®é
æ¶å°è´¹ç¨æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "å¨å®å®é
æ¶å°è´¹ç¨æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date amounttime; |
| | | |
| | | /** æ¶è´¹å½å
¥äºº */ |
| | | @ApiModelProperty("æ¶è´¹å½å
¥äºº") |
| | | @Excel(name = "æ¶è´¹å½å
¥äºº") |
| | | private String amountoperator; |
| | | |
| | | /** å¨å®è´¹ç¨æ¶åç¶æï¼0ï¼æªæ¶åï¼1ï¼å·²æ¶åï¼2ï¼æ¾å¼ */ |
| | | @ApiModelProperty("å¨å®è´¹ç¨æ¶åç¶æï¼0ï¼æªæ¶åï¼1ï¼å·²æ¶åï¼2ï¼æ¾å¼") |
| | | @Excel(name = "å¨å®è´¹ç¨æ¶åç¶æï¼0ï¼æªæ¶åï¼1ï¼å·²æ¶åï¼2ï¼æ¾å¼") |
| | | private Long chargestate; |
| | | |
| | | /** å¨å®å®é
æ¶å°è´¹ç¨è¯´æ */ |
| | | @ApiModelProperty("å¨å®å®é
æ¶å°è´¹ç¨è¯´æ") |
| | | @Excel(name = "å¨å®å®é
æ¶å°è´¹ç¨è¯´æ") |
| | | private String organchargedesc; |
| | | |
| | | } |
| | | |
| | |
| | | @Excel(name = "ä¸å¿ç¾å") |
| | | private String opochecker; |
| | | |
| | | /** è´¢å¡å¯é¢é¿ç¾å */ |
| | | /** |
| | | * è´¢å¡å¯é¢é¿ç¾å |
| | | */ |
| | | @ApiModelProperty("é¢é¿ç¾å") |
| | | @Excel(name = "é¢é¿ç¾å") |
| | | private String president; |
| | |
| | | private Long flowlevel; |
| | | |
| | | /** |
| | | * 100ï¼ä¸ä¼ å»é¢ 199ï¼å»é¢é©³å |
| | | * 100ï¼ä¸ä¼ å»é¢ 199ï¼å»é¢é©³å |
| | | */ |
| | | @ApiModelProperty("éåæ¶çå®¡æ ¸çº§å«") |
| | | private Long backflowlevel; |
| | |
| | | private String riqi; |
| | | |
| | | |
| | | /** ç¼å·(æå°çæ¶åï¼å¨ææ¡£ä¸æ¾ç¤º) */ |
| | | /** |
| | | * ç¼å·(æå°çæ¶åï¼å¨ææ¡£ä¸æ¾ç¤º) |
| | | */ |
| | | @ApiModelProperty("ç¼å·(æå°çæ¶åï¼å¨ææ¡£ä¸æ¾ç¤º)") |
| | | @Excel(name = "ç¼å·") |
| | | private String bh; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.mapper; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.project.domain.ServiceDonatecomporgan; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®ç§»æ¤Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Mapper |
| | | public interface ServiceDonatecomporganMapper extends BaseMapper<ServiceDonatecomporgan> { |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®ç§»æ¤å表 |
| | | * |
| | | * @param serviceDonatecomporgan æç®å¨å®ç§»æ¤ |
| | | * @return æç®å¨å®ç§»æ¤éå |
| | | */ |
| | | public List<ServiceDonatecomporgan> selectServiceDonatecomporganList(ServiceDonatecomporgan serviceDonatecomporgan); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.mapper; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.project.domain.ServiceDonationwitnessorgan; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®è·åMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Mapper |
| | | public interface ServiceDonationwitnessorganMapper extends BaseMapper<ServiceDonationwitnessorgan> { |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®è·åå表 |
| | | * |
| | | * @param serviceDonationwitnessorgan æç®å¨å®è·å |
| | | * @return æç®å¨å®è·åéå |
| | | */ |
| | | public List<ServiceDonationwitnessorgan> selectServiceDonationwitnessorganList(ServiceDonationwitnessorgan serviceDonationwitnessorgan); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.mapper; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.project.domain.ServiceDonorchargeorgan; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Mapper |
| | | public interface ServiceDonorchargeorganMapper extends BaseMapper<ServiceDonorchargeorgan> { |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®å表 |
| | | * |
| | | * @param serviceDonorchargeorgan æç®å¨å® |
| | | * @return æç®å¨å®éå |
| | | */ |
| | | public List<ServiceDonorchargeorgan> selectServiceDonorchargeorganList(ServiceDonorchargeorgan serviceDonorchargeorgan); |
| | | } |
| | |
| | | package com.ruoyi.project.service; |
| | | |
| | | import java.util.List; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.project.domain.ServiceDonatecompletioninfo; |
| | | import com.ruoyi.project.domain.vo.DonationCompletionVO; |
| | | import com.ruoyi.project.domain.vo.DonationWitnessVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å®æServiceæ¥å£ |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2021-11-19 |
| | | */ |
| | | public interface IServiceDonatecompletioninfoService extends IService<ServiceDonatecompletioninfo> |
| | | { |
| | | public interface IServiceDonatecompletioninfoService extends IService<ServiceDonatecompletioninfo> { |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å®æå表 |
| | | * |
| | | * |
| | | * @param serviceDonatecompletioninfo æç®å®æ |
| | | * @return æç®å®æéå |
| | | */ |
| | | public List<ServiceDonatecompletioninfo> queryList(ServiceDonatecompletioninfo serviceDonatecompletioninfo); |
| | | |
| | | public List<ServiceDonatecompletioninfo> queryListDetail(ServiceDonatecompletioninfo serviceDonatecompletioninfo); |
| | | |
| | | List<DonationCompletionVO> selectVOList(DonationCompletionVO donationCompletionVO); |
| | | |
| | | void delDuplicateDonateCompletioninfo(long infoid,String createby); |
| | | void delDuplicateDonateCompletioninfo(long infoid, String createby); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.project.domain.ServiceDonatecomporgan; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®ç§»æ¤Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | public interface IServiceDonatecomporganService extends IService<ServiceDonatecomporgan> { |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®ç§»æ¤å表 |
| | | * |
| | | * @param serviceDonatecomporgan æç®å¨å®ç§»æ¤ |
| | | * @return æç®å¨å®ç§»æ¤éå |
| | | */ |
| | | public List<ServiceDonatecomporgan> queryList(ServiceDonatecomporgan serviceDonatecomporgan); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.project.domain.ServiceDonationwitnessorgan; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®è·åServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | public interface IServiceDonationwitnessorganService extends IService<ServiceDonationwitnessorgan> |
| | | { |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®è·åå表 |
| | | * |
| | | * @param serviceDonationwitnessorgan æç®å¨å®è·å |
| | | * @return æç®å¨å®è·åéå |
| | | */ |
| | | public List<ServiceDonationwitnessorgan> queryList(ServiceDonationwitnessorgan serviceDonationwitnessorgan); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.project.domain.ServiceDonorchargeorgan; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | public interface IServiceDonorchargeorganService extends IService<ServiceDonorchargeorgan> { |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®å表 |
| | | * |
| | | * @param serviceDonorchargeorgan æç®å¨å® |
| | | * @return æç®å¨å®éå |
| | | */ |
| | | public List<ServiceDonorchargeorgan> queryList(ServiceDonorchargeorgan serviceDonorchargeorgan); |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.project.domain.ServiceDonatecomporgan; |
| | | import com.ruoyi.project.domain.ServiceDonateorgan; |
| | | import com.ruoyi.project.domain.vo.DonationCompletionVO; |
| | | import com.ruoyi.project.service.IServiceDonatecomporganService; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Map; |
| | | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.project.mapper.ServiceDonatecompletioninfoMapper; |
| | | import com.ruoyi.project.domain.ServiceDonatecompletioninfo; |
| | |
| | | |
| | | /** |
| | | * æç®å®æServiceä¸å¡å±å¤ç |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2021-11-19 |
| | | */ |
| | | @Service |
| | | public class ServiceDonatecompletioninfoServiceImpl extends ServiceImpl<ServiceDonatecompletioninfoMapper, ServiceDonatecompletioninfo> implements IServiceDonatecompletioninfoService |
| | | { |
| | | public class ServiceDonatecompletioninfoServiceImpl extends ServiceImpl<ServiceDonatecompletioninfoMapper, ServiceDonatecompletioninfo> implements IServiceDonatecompletioninfoService { |
| | | |
| | | @Autowired |
| | | ServiceDonatecompletioninfoMapper serviceDonatecompletioninfoMapper; |
| | | |
| | | @Autowired |
| | | IServiceDonatecomporganService serviceDonatecomporganService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å®æå表 |
| | | * |
| | | * |
| | | * @param serviceDonatecompletioninfo æç®å®æ |
| | | * @return æç®å®æ |
| | | */ |
| | | @Override |
| | | public List<ServiceDonatecompletioninfo> queryList(ServiceDonatecompletioninfo serviceDonatecompletioninfo) { |
| | | LambdaQueryWrapper<ServiceDonatecompletioninfo> wrappers = Wrappers.lambdaQuery(); |
| | | if (StringUtils.isNotBlank(serviceDonatecompletioninfo.getDonorno())){ |
| | | wrappers.eq(ServiceDonatecompletioninfo::getDonorno ,serviceDonatecompletioninfo.getDonorno()); |
| | | if (StringUtils.isNotBlank(serviceDonatecompletioninfo.getDonorno())) { |
| | | wrappers.eq(ServiceDonatecompletioninfo::getDonorno, serviceDonatecompletioninfo.getDonorno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecompletioninfo.getIsbodydonation())){ |
| | | wrappers.eq(ServiceDonatecompletioninfo::getIsbodydonation ,serviceDonatecompletioninfo.getIsbodydonation()); |
| | | if (StringUtils.isNotBlank(serviceDonatecompletioninfo.getIsbodydonation())) { |
| | | wrappers.eq(ServiceDonatecompletioninfo::getIsbodydonation, serviceDonatecompletioninfo.getIsbodydonation()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecompletioninfo.getReceivingunit())){ |
| | | wrappers.eq(ServiceDonatecompletioninfo::getReceivingunit ,serviceDonatecompletioninfo.getReceivingunit()); |
| | | if (StringUtils.isNotBlank(serviceDonatecompletioninfo.getReceivingunit())) { |
| | | wrappers.eq(ServiceDonatecompletioninfo::getReceivingunit, serviceDonatecompletioninfo.getReceivingunit()); |
| | | } |
| | | if (StringUtils.isNotNull(serviceDonatecompletioninfo.getId())){ |
| | | wrappers.eq(ServiceDonatecompletioninfo::getId ,serviceDonatecompletioninfo.getId()); |
| | | if (StringUtils.isNotNull(serviceDonatecompletioninfo.getId())) { |
| | | wrappers.eq(ServiceDonatecompletioninfo::getId, serviceDonatecompletioninfo.getId()); |
| | | } |
| | | if (StringUtils.isNotNull(serviceDonatecompletioninfo.getInfoid())){ |
| | | wrappers.eq(ServiceDonatecompletioninfo::getInfoid ,serviceDonatecompletioninfo.getInfoid()); |
| | | if (StringUtils.isNotNull(serviceDonatecompletioninfo.getInfoid())) { |
| | | wrappers.eq(ServiceDonatecompletioninfo::getInfoid, serviceDonatecompletioninfo.getInfoid()); |
| | | } |
| | | return this.list(wrappers); |
| | | } |
| | | |
| | | /** |
| | | * ææ¶å
ä¸ç¨äº |
| | | * |
| | | * @param serviceDonatecompletioninfo |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ServiceDonatecompletioninfo> queryListDetail(ServiceDonatecompletioninfo serviceDonatecompletioninfo) { |
| | | LambdaQueryWrapper<ServiceDonatecompletioninfo> wrappers = Wrappers.lambdaQuery(); |
| | | if (StringUtils.isNotBlank(serviceDonatecompletioninfo.getDonorno())) { |
| | | wrappers.eq(ServiceDonatecompletioninfo::getDonorno, serviceDonatecompletioninfo.getDonorno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecompletioninfo.getIsbodydonation())) { |
| | | wrappers.eq(ServiceDonatecompletioninfo::getIsbodydonation, serviceDonatecompletioninfo.getIsbodydonation()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecompletioninfo.getReceivingunit())) { |
| | | wrappers.eq(ServiceDonatecompletioninfo::getReceivingunit, serviceDonatecompletioninfo.getReceivingunit()); |
| | | } |
| | | if (StringUtils.isNotNull(serviceDonatecompletioninfo.getId())) { |
| | | wrappers.eq(ServiceDonatecompletioninfo::getId, serviceDonatecompletioninfo.getId()); |
| | | } |
| | | if (StringUtils.isNotNull(serviceDonatecompletioninfo.getInfoid())) { |
| | | wrappers.eq(ServiceDonatecompletioninfo::getInfoid, serviceDonatecompletioninfo.getInfoid()); |
| | | } |
| | | List<ServiceDonatecompletioninfo> serviceDonatecompletioninfoList = this.list(wrappers); |
| | | if (CollectionUtils.isNotEmpty(serviceDonatecompletioninfoList)) { |
| | | for (ServiceDonatecompletioninfo serviceDonatecompletioninfo1 : serviceDonatecompletioninfoList) { |
| | | if (serviceDonatecompletioninfo1.getInfoid() != null) { |
| | | ServiceDonatecomporgan serviceDonatecomporgan = new ServiceDonatecomporgan(); |
| | | serviceDonatecomporgan.setInfoid(serviceDonatecompletioninfo1.getInfoid()); |
| | | List<ServiceDonatecomporgan> serviceDonatecomporgans = serviceDonatecomporganService.queryList(serviceDonatecomporgan); |
| | | serviceDonatecompletioninfo1.setServiceDonatecomporganList(serviceDonatecomporgans); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | return this.list(wrappers); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<DonationCompletionVO> selectVOList(DonationCompletionVO donationCompletionVO) { |
| | | |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | List <SysRole> l = user.getRoles(); |
| | | List<SysRole> l = user.getRoles(); |
| | | Boolean b = false; |
| | | for(SysRole r : l){ |
| | | if(r.getRoleId().longValue() == 3){ |
| | | for (SysRole r : l) { |
| | | if (r.getRoleId().longValue() == 3) { |
| | | b = true; |
| | | } |
| | | } |
| | | if(b){ |
| | | if (b) { |
| | | donationCompletionVO.setBasecreateby(user.getUserName()); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void delDuplicateDonateCompletioninfo(long infoid,String createby) { |
| | | serviceDonatecompletioninfoMapper.delDuplicateDonateCompletioninfo(infoid,createby); |
| | | public void delDuplicateDonateCompletioninfo(long infoid, String createby) { |
| | | serviceDonatecompletioninfoMapper.delDuplicateDonateCompletioninfo(infoid, createby); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.project.domain.ServiceDonatecomporgan; |
| | | import com.ruoyi.project.mapper.ServiceDonatecomporganMapper; |
| | | import com.ruoyi.project.service.IServiceDonatecomporganService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®ç§»æ¤Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Service |
| | | public class ServiceDonatecomporganServiceImpl extends ServiceImpl<ServiceDonatecomporganMapper, ServiceDonatecomporgan> implements IServiceDonatecomporganService |
| | | { |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®ç§»æ¤å表 |
| | | * |
| | | * @param serviceDonatecomporgan æç®å¨å®ç§»æ¤ |
| | | * @return æç®å¨å®ç§»æ¤ |
| | | */ |
| | | @Override |
| | | public List<ServiceDonatecomporgan> queryList(ServiceDonatecomporgan serviceDonatecomporgan) { |
| | | LambdaQueryWrapper<ServiceDonatecomporgan> wrappers = Wrappers.lambdaQuery(); |
| | | if (serviceDonatecomporgan.getInfoid() != null){ |
| | | wrappers.eq(ServiceDonatecomporgan::getInfoid ,serviceDonatecomporgan.getInfoid()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getOrganno())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getOrganno ,serviceDonatecomporgan.getOrganno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getOrganname())){ |
| | | wrappers.like(ServiceDonatecomporgan::getOrganname ,serviceDonatecomporgan.getOrganname()); |
| | | } |
| | | if (serviceDonatecomporgan.getTransplantstate() != null){ |
| | | wrappers.eq(ServiceDonatecomporgan::getTransplantstate ,serviceDonatecomporgan.getTransplantstate()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getAbandonreason())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getAbandonreason ,serviceDonatecomporgan.getAbandonreason()); |
| | | } |
| | | if (serviceDonatecomporgan.getTransplanttime() != null){ |
| | | wrappers.eq(ServiceDonatecomporgan::getTransplanttime ,serviceDonatecomporgan.getTransplanttime()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getTransplantdoct())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getTransplantdoct ,serviceDonatecomporgan.getTransplantdoct()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getTransplanthospitalno())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getTransplanthospitalno ,serviceDonatecomporgan.getTransplanthospitalno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getTransplanthospitalname())){ |
| | | wrappers.like(ServiceDonatecomporgan::getTransplanthospitalname ,serviceDonatecomporgan.getTransplanthospitalname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getName())){ |
| | | wrappers.like(ServiceDonatecomporgan::getName ,serviceDonatecomporgan.getName()); |
| | | } |
| | | if (serviceDonatecomporgan.getSex() != null){ |
| | | wrappers.eq(ServiceDonatecomporgan::getSex ,serviceDonatecomporgan.getSex()); |
| | | } |
| | | if (serviceDonatecomporgan.getIdcardtype() != null){ |
| | | wrappers.eq(ServiceDonatecomporgan::getIdcardtype ,serviceDonatecomporgan.getIdcardtype()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getIdcardno())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getIdcardno ,serviceDonatecomporgan.getIdcardno()); |
| | | } |
| | | if (serviceDonatecomporgan.getAge() != null){ |
| | | wrappers.eq(ServiceDonatecomporgan::getAge ,serviceDonatecomporgan.getAge()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getAgeunit())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getAgeunit ,serviceDonatecomporgan.getAgeunit()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getBirthday())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getBirthday ,serviceDonatecomporgan.getBirthday()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getPhone())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getPhone ,serviceDonatecomporgan.getPhone()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidenceaddress())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getResidenceaddress ,serviceDonatecomporgan.getResidenceaddress()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidenceprovince())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getResidenceprovince ,serviceDonatecomporgan.getResidenceprovince()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidenceprovincename())){ |
| | | wrappers.like(ServiceDonatecomporgan::getResidenceprovincename ,serviceDonatecomporgan.getResidenceprovincename()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidencecity())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getResidencecity ,serviceDonatecomporgan.getResidencecity()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidencecityname())){ |
| | | wrappers.like(ServiceDonatecomporgan::getResidencecityname ,serviceDonatecomporgan.getResidencecityname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidencetown())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getResidencetown ,serviceDonatecomporgan.getResidencetown()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidencetownname())){ |
| | | wrappers.like(ServiceDonatecomporgan::getResidencetownname ,serviceDonatecomporgan.getResidencetownname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidencecommunity())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getResidencecommunity ,serviceDonatecomporgan.getResidencecommunity()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidencecommunityname())){ |
| | | wrappers.like(ServiceDonatecomporgan::getResidencecommunityname ,serviceDonatecomporgan.getResidencecommunityname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidencecountycode())){ |
| | | wrappers.eq(ServiceDonatecomporgan::getResidencecountycode ,serviceDonatecomporgan.getResidencecountycode()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonatecomporgan.getResidencecountyname())){ |
| | | wrappers.like(ServiceDonatecomporgan::getResidencecountyname ,serviceDonatecomporgan.getResidencecountyname()); |
| | | } |
| | | return this.list(wrappers); |
| | | } |
| | | |
| | | } |
| | |
| | | if (serviceDonateorgan.getTransplanttime() != null) { |
| | | wrappers.eq(ServiceDonateorgan::getTransplanttime, serviceDonateorgan.getTransplanttime()); |
| | | } |
| | | if (serviceDonateorgan.getEstimatedtime() != null) { |
| | | wrappers.eq(ServiceDonateorgan::getEstimatedtime, serviceDonateorgan.getEstimatedtime()); |
| | | } |
| | | return this.list(wrappers); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.project.domain.ServiceDonationwitnessorgan; |
| | | import com.ruoyi.project.mapper.ServiceDonationwitnessorganMapper; |
| | | import com.ruoyi.project.service.IServiceDonationwitnessorganService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®è·åServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Service |
| | | public class ServiceDonationwitnessorganServiceImpl extends ServiceImpl<ServiceDonationwitnessorganMapper, ServiceDonationwitnessorgan> implements IServiceDonationwitnessorganService { |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®è·åå表 |
| | | * |
| | | * @param serviceDonationwitnessorgan æç®å¨å®è·å |
| | | * @return æç®å¨å®è·å |
| | | */ |
| | | @Override |
| | | public List<ServiceDonationwitnessorgan> queryList(ServiceDonationwitnessorgan serviceDonationwitnessorgan) { |
| | | LambdaQueryWrapper<ServiceDonationwitnessorgan> wrappers = Wrappers.lambdaQuery(); |
| | | if (serviceDonationwitnessorgan.getInfoid() != null) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getInfoid, serviceDonationwitnessorgan.getInfoid()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getDonorno())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getDonorno, serviceDonationwitnessorgan.getDonorno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getOrganno())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getOrganno, serviceDonationwitnessorgan.getOrganno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getOrganname())) { |
| | | wrappers.like(ServiceDonationwitnessorgan::getOrganname, serviceDonationwitnessorgan.getOrganname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getOrgannumber())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getOrgannumber, serviceDonationwitnessorgan.getOrgannumber()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getOrganstate())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getOrganstate, serviceDonationwitnessorgan.getOrganstate()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getNotgetreason())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getNotgetreason, serviceDonationwitnessorgan.getNotgetreason()); |
| | | } |
| | | if (serviceDonationwitnessorgan.getOrgangettime() != null) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getOrgangettime, serviceDonationwitnessorgan.getOrgangettime()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getOrgangetdoct())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getOrgangetdoct, serviceDonationwitnessorgan.getOrgangetdoct()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getGainhospitalno())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getGainhospitalno, serviceDonationwitnessorgan.getGainhospitalno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getGainhospitalname())) { |
| | | wrappers.like(ServiceDonationwitnessorgan::getGainhospitalname, serviceDonationwitnessorgan.getGainhospitalname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getIsbiopsybefore())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getIsbiopsybefore, serviceDonationwitnessorgan.getIsbiopsybefore()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getIsbiopsyafter())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getIsbiopsyafter, serviceDonationwitnessorgan.getIsbiopsyafter()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getIsmarginalorgan())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getIsmarginalorgan, serviceDonationwitnessorgan.getIsmarginalorgan()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getIspathogenpositive())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getIspathogenpositive, serviceDonationwitnessorgan.getIspathogenpositive()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getIspnf())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getIspnf, serviceDonationwitnessorgan.getIspnf()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonationwitnessorgan.getIsdgf())) { |
| | | wrappers.eq(ServiceDonationwitnessorgan::getIsdgf, serviceDonationwitnessorgan.getIsdgf()); |
| | | } |
| | | return this.list(wrappers); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.project.domain.ServiceDonorchargeorgan; |
| | | import com.ruoyi.project.mapper.ServiceDonorchargeorganMapper; |
| | | import com.ruoyi.project.service.IServiceDonorchargeorganService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-25 |
| | | */ |
| | | @Service |
| | | public class ServiceDonorchargeorganServiceImpl extends ServiceImpl<ServiceDonorchargeorganMapper, ServiceDonorchargeorgan> implements IServiceDonorchargeorganService { |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®å¨å®å表 |
| | | * |
| | | * @param serviceDonorchargeorgan æç®å¨å® |
| | | * @return æç®å¨å® |
| | | */ |
| | | @Override |
| | | public List<ServiceDonorchargeorgan> queryList(ServiceDonorchargeorgan serviceDonorchargeorgan) { |
| | | LambdaQueryWrapper<ServiceDonorchargeorgan> wrappers = Wrappers.lambdaQuery(); |
| | | if (serviceDonorchargeorgan.getInfoid() != null) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getInfoid, serviceDonorchargeorgan.getInfoid()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonorchargeorgan.getDonorname())) { |
| | | wrappers.like(ServiceDonorchargeorgan::getDonorname, serviceDonorchargeorgan.getDonorname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonorchargeorgan.getHospitalname())) { |
| | | wrappers.like(ServiceDonorchargeorgan::getHospitalname, serviceDonorchargeorgan.getHospitalname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonorchargeorgan.getHospitalno())) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getHospitalno, serviceDonorchargeorgan.getHospitalno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonorchargeorgan.getOrganno())) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getOrganno, serviceDonorchargeorgan.getOrganno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonorchargeorgan.getOrganname())) { |
| | | wrappers.like(ServiceDonorchargeorgan::getOrganname, serviceDonorchargeorgan.getOrganname()); |
| | | } |
| | | if (serviceDonorchargeorgan.getOrgancharge() != null) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getOrgancharge, serviceDonorchargeorgan.getOrgancharge()); |
| | | } |
| | | if (serviceDonorchargeorgan.getOrgantime() != null) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getOrgantime, serviceDonorchargeorgan.getOrgantime()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonorchargeorgan.getChargeoperator())) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getChargeoperator, serviceDonorchargeorgan.getChargeoperator()); |
| | | } |
| | | if (serviceDonorchargeorgan.getAmount() != null) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getAmount, serviceDonorchargeorgan.getAmount()); |
| | | } |
| | | if (serviceDonorchargeorgan.getAmounttime() != null) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getAmounttime, serviceDonorchargeorgan.getAmounttime()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonorchargeorgan.getAmountoperator())) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getAmountoperator, serviceDonorchargeorgan.getAmountoperator()); |
| | | } |
| | | if (serviceDonorchargeorgan.getChargestate() != null) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getChargestate, serviceDonorchargeorgan.getChargestate()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceDonorchargeorgan.getOrganchargedesc())) { |
| | | wrappers.eq(ServiceDonorchargeorgan::getOrganchargedesc, serviceDonorchargeorgan.getOrganchargedesc()); |
| | | } |
| | | return this.list(wrappers); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.ruoyi.project.mapper.ServiceDonatecomporganMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.project.domain.ServiceDonatecomporgan" id="ServiceDonatecomporganResult"> |
| | | <result property="id" column="ID"/> |
| | | <result property="infoid" column="InfoID"/> |
| | | <result property="organno" column="OrganNo"/> |
| | | <result property="organname" column="OrganName"/> |
| | | <result property="transplantstate" column="transplantstate"/> |
| | | <result property="abandonreason" column="AbandonReason"/> |
| | | <result property="transplanttime" column="TransplantTime"/> |
| | | <result property="transplantdoct" column="TransplantDoct"/> |
| | | <result property="transplanthospitalno" column="TransplantHospitalNo"/> |
| | | <result property="transplanthospitalname" column="TransplantHospitalName"/> |
| | | <result property="name" column="Name"/> |
| | | <result property="sex" column="Sex"/> |
| | | <result property="idcardtype" column="IDCardType"/> |
| | | <result property="idcardno" column="IDCardNo"/> |
| | | <result property="age" column="Age"/> |
| | | <result property="ageunit" column="AgeUnit"/> |
| | | <result property="birthday" column="Birthday"/> |
| | | <result property="phone" column="Phone"/> |
| | | <result property="residenceaddress" column="ResidenceAddress"/> |
| | | <result property="residenceprovince" column="ResidenceProvince"/> |
| | | <result property="residenceprovincename" column="ResidenceProvinceName"/> |
| | | <result property="residencecity" column="ResidenceCity"/> |
| | | <result property="residencecityname" column="ResidenceCityName"/> |
| | | <result property="residencetown" column="ResidenceTown"/> |
| | | <result property="residencetownname" column="ResidenceTownName"/> |
| | | <result property="residencecommunity" column="ResidenceCommunity"/> |
| | | <result property="residencecommunityname" column="ResidenceCommunityName"/> |
| | | <result property="residencecountycode" column="ResidenceCountyCode"/> |
| | | <result property="residencecountyname" column="ResidenceCountyName"/> |
| | | <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"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonatecomporganVo"> |
| | | select ID, |
| | | InfoID, |
| | | OrganNo, |
| | | OrganName, |
| | | transplantstate, |
| | | AbandonReason, |
| | | TransplantTime, |
| | | TransplantDoct, |
| | | TransplantHospitalNo, |
| | | TransplantHospitalName, |
| | | Name, |
| | | Sex, |
| | | IDCardType, |
| | | IDCardNo, |
| | | Age, |
| | | AgeUnit, |
| | | Birthday, |
| | | Phone, |
| | | ResidenceAddress, |
| | | ResidenceProvince, |
| | | ResidenceProvinceName, |
| | | ResidenceCity, |
| | | ResidenceCityName, |
| | | ResidenceTown, |
| | | ResidenceTownName, |
| | | ResidenceCommunity, |
| | | ResidenceCommunityName, |
| | | ResidenceCountyCode, |
| | | ResidenceCountyName, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | from service_donatecomporgan |
| | | </sql> |
| | | |
| | | <select id="selectServiceDonatecomporganList" parameterType="com.ruoyi.project.domain.ServiceDonatecomporgan" |
| | | resultMap="ServiceDonatecomporganResult"> |
| | | <include refid="selectServiceDonatecomporganVo"/> |
| | | <where> |
| | | <if test="infoid != null ">and InfoID = #{infoid}</if> |
| | | <if test="organno != null and organno != ''">and OrganNo = #{organno}</if> |
| | | <if test="organname != null and organname != ''">and OrganName like concat('%', #{organname}, '%')</if> |
| | | <if test="transplantstate != null ">and transplantstate = #{transplantstate}</if> |
| | | <if test="abandonreason != null and abandonreason != ''">and AbandonReason = #{abandonreason}</if> |
| | | <if test="transplanttime != null ">and TransplantTime = #{transplanttime}</if> |
| | | <if test="transplantdoct != null and transplantdoct != ''">and TransplantDoct = #{transplantdoct}</if> |
| | | <if test="transplanthospitalno != null and transplanthospitalno != ''">and TransplantHospitalNo = |
| | | #{transplanthospitalno} |
| | | </if> |
| | | <if test="transplanthospitalname != null and transplanthospitalname != ''">and TransplantHospitalName like |
| | | concat('%', #{transplanthospitalname}, '%') |
| | | </if> |
| | | <if test="name != null and name != ''">and Name like concat('%', #{name}, '%')</if> |
| | | <if test="sex != null ">and Sex = #{sex}</if> |
| | | <if test="idcardtype != null ">and IDCardType = #{idcardtype}</if> |
| | | <if test="idcardno != null and idcardno != ''">and IDCardNo = #{idcardno}</if> |
| | | <if test="age != null ">and Age = #{age}</if> |
| | | <if test="ageunit != null and ageunit != ''">and AgeUnit = #{ageunit}</if> |
| | | <if test="birthday != null and birthday != ''">and Birthday = #{birthday}</if> |
| | | <if test="phone != null and phone != ''">and Phone = #{phone}</if> |
| | | <if test="residenceaddress != null and residenceaddress != ''">and ResidenceAddress = #{residenceaddress} |
| | | </if> |
| | | <if test="residenceprovince != null and residenceprovince != ''">and ResidenceProvince = |
| | | #{residenceprovince} |
| | | </if> |
| | | <if test="residenceprovincename != null and residenceprovincename != ''">and ResidenceProvinceName like |
| | | concat('%', #{residenceprovincename}, '%') |
| | | </if> |
| | | <if test="residencecity != null and residencecity != ''">and ResidenceCity = #{residencecity}</if> |
| | | <if test="residencecityname != null and residencecityname != ''">and ResidenceCityName like concat('%', |
| | | #{residencecityname}, '%') |
| | | </if> |
| | | <if test="residencetown != null and residencetown != ''">and ResidenceTown = #{residencetown}</if> |
| | | <if test="residencetownname != null and residencetownname != ''">and ResidenceTownName like concat('%', |
| | | #{residencetownname}, '%') |
| | | </if> |
| | | <if test="residencecommunity != null and residencecommunity != ''">and ResidenceCommunity = |
| | | #{residencecommunity} |
| | | </if> |
| | | <if test="residencecommunityname != null and residencecommunityname != ''">and ResidenceCommunityName like |
| | | concat('%', #{residencecommunityname}, '%') |
| | | </if> |
| | | <if test="residencecountycode != null and residencecountycode != ''">and ResidenceCountyCode = |
| | | #{residencecountycode} |
| | | </if> |
| | | <if test="residencecountyname != null and residencecountyname != ''">and ResidenceCountyName like |
| | | concat('%', #{residencecountyname}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <result property="reallocationreason" column="ReallocationReason"/> |
| | | <result property="transplantdoct" column="TransplantDoct"/> |
| | | <result property="transplanttime" column="TransplantTime"/> |
| | | <result property="estimatedtime" column="EstimatedTime"/> |
| | | <result property="isbiopsybefore" column="IsBiopsyBefore"/> |
| | | <result property="isbiopsyafter" column="IsBiopsyAfter"/> |
| | | <result property="ismarginalorgan" column="IsMarginalOrgan"/> |
| | |
| | | <result property="applicantusername" column="ApplicantUserName"/> |
| | | <result property="applicanttime" column="ApplicantTime"/> |
| | | <result property="checkuserid" column="CheckUserID"/> |
| | | <result property="caseno" column="CaseNo" /> |
| | | <result property="caseno" column="CaseNo"/> |
| | | <result property="checkusername" column="CheckUserName"/> |
| | | <result property="checktime" column="CheckTime"/> |
| | | <result property="checksuggestion" column="CheckSuggestion"/> |
| | |
| | | CheckTime, |
| | | CheckSuggestion, |
| | | AllocationStatus, |
| | | EstimatedTime, |
| | | Name, |
| | | Sex, |
| | | IDCardType, |
| | |
| | | <if test="organstate != null ">and OrganState = #{organstate}</if> |
| | | <if test="organnumber != null and organnumber != ''">and OrganNumber = #{organnumber}</if> |
| | | <if test="organgettime != null ">and OrganGetTime = #{organgettime}</if> |
| | | <if test="estimatedtime != null ">and EstimatedTime = #{estimatedtime}</if> |
| | | <if test="organgetdoct != null and organgetdoct != ''">and OrganGetDoct = #{organgetdoct}</if> |
| | | <if test="gainhospitalno != null and gainhospitalno != ''">and GainHospitalNo = #{gainhospitalno}</if> |
| | | <if test="gainhospitalname != null and gainhospitalname != ''">and GainHospitalName like concat('%', |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.ruoyi.project.mapper.ServiceDonationwitnessorganMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.project.domain.ServiceDonationwitnessorgan" id="ServiceDonationwitnessorganResult"> |
| | | <result property="id" column="ID"/> |
| | | <result property="infoid" column="InfoID"/> |
| | | <result property="donorno" column="DonorNo"/> |
| | | <result property="organno" column="OrganNo"/> |
| | | <result property="organname" column="OrganName"/> |
| | | <result property="organnumber" column="OrganNumber"/> |
| | | <result property="organstate" column="OrganState"/> |
| | | <result property="notgetreason" column="notgetreason"/> |
| | | <result property="organgettime" column="OrganGetTime"/> |
| | | <result property="organgetdoct" column="OrganGetDoct"/> |
| | | <result property="gainhospitalno" column="GainHospitalNo"/> |
| | | <result property="gainhospitalname" column="GainHospitalName"/> |
| | | <result property="isbiopsybefore" column="IsBiopsyBefore"/> |
| | | <result property="isbiopsyafter" column="IsBiopsyAfter"/> |
| | | <result property="ismarginalorgan" column="IsMarginalOrgan"/> |
| | | <result property="ispathogenpositive" column="IsPathogenPositive"/> |
| | | <result property="ispnf" column="IsPNF"/> |
| | | <result property="isdgf" column="IsDGF"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonationwitnessorganVo"> |
| | | select ID, |
| | | InfoID, |
| | | DonorNo, |
| | | OrganNo, |
| | | OrganName, |
| | | OrganNumber, |
| | | OrganState, |
| | | notgetreason, |
| | | OrganGetTime, |
| | | OrganGetDoct, |
| | | GainHospitalNo, |
| | | GainHospitalName, |
| | | IsBiopsyBefore, |
| | | IsBiopsyAfter, |
| | | IsMarginalOrgan, |
| | | IsPathogenPositive, |
| | | IsPNF, |
| | | IsDGF, |
| | | del_flag, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | from service_donationwitnessorgan |
| | | </sql> |
| | | |
| | | <select id="selectServiceDonationwitnessorganList" |
| | | parameterType="com.ruoyi.project.domain.ServiceDonationwitnessorgan" |
| | | resultMap="ServiceDonationwitnessorganResult"> |
| | | <include refid="selectServiceDonationwitnessorganVo"/> |
| | | <where> |
| | | <if test="infoid != null ">and InfoID = #{infoid}</if> |
| | | <if test="donorno != null and donorno != ''">and DonorNo = #{donorno}</if> |
| | | <if test="organno != null and organno != ''">and OrganNo = #{organno}</if> |
| | | <if test="organname != null and organname != ''">and OrganName like concat('%', #{organname}, '%')</if> |
| | | <if test="organnumber != null and organnumber != ''">and OrganNumber = #{organnumber}</if> |
| | | <if test="organstate != null and organstate != ''">and OrganState = #{organstate}</if> |
| | | <if test="notgetreason != null and notgetreason != ''">and notgetreason = #{notgetreason}</if> |
| | | <if test="organgettime != null ">and OrganGetTime = #{organgettime}</if> |
| | | <if test="organgetdoct != null and organgetdoct != ''">and OrganGetDoct = #{organgetdoct}</if> |
| | | <if test="gainhospitalno != null and gainhospitalno != ''">and GainHospitalNo = #{gainhospitalno}</if> |
| | | <if test="gainhospitalname != null and gainhospitalname != ''">and GainHospitalName like concat('%', |
| | | #{gainhospitalname}, '%') |
| | | </if> |
| | | <if test="isbiopsybefore != null and isbiopsybefore != ''">and IsBiopsyBefore = #{isbiopsybefore}</if> |
| | | <if test="isbiopsyafter != null and isbiopsyafter != ''">and IsBiopsyAfter = #{isbiopsyafter}</if> |
| | | <if test="ismarginalorgan != null and ismarginalorgan != ''">and IsMarginalOrgan = #{ismarginalorgan}</if> |
| | | <if test="ispathogenpositive != null and ispathogenpositive != ''">and IsPathogenPositive = |
| | | #{ispathogenpositive} |
| | | </if> |
| | | <if test="ispnf != null and ispnf != ''">and IsPNF = #{ispnf}</if> |
| | | <if test="isdgf != null and isdgf != ''">and IsDGF = #{isdgf}</if> |
| | | </where> |
| | | </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"> |
| | | <mapper namespace="com.ruoyi.system.mapper.ServiceDonorchargeorganMapper"> |
| | | |
| | | <resultMap type="ServiceDonorchargeorgan" id="ServiceDonorchargeorganResult"> |
| | | <result property="id" column="ID" /> |
| | | <result property="infoid" column="InfoID" /> |
| | | <result property="donorname" column="donorname" /> |
| | | <result property="hospitalname" column="HospitalName" /> |
| | | <result property="hospitalno" column="HospitalNo" /> |
| | | <result property="organno" column="OrganNo" /> |
| | | <result property="organname" column="OrganName" /> |
| | | <result property="organcharge" column="organcharge" /> |
| | | <result property="organtime" column="organtime" /> |
| | | <result property="chargeoperator" column="chargeoperator" /> |
| | | <result property="amount" column="amount" /> |
| | | <result property="amounttime" column="amounttime" /> |
| | | <result property="amountoperator" column="amountoperator" /> |
| | | <result property="chargestate" column="chargestate" /> |
| | | <result property="organchargedesc" column="organchargedesc" /> |
| | | <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" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonorchargeorganVo"> |
| | | select ID, InfoID, donorname, HospitalName, HospitalNo, OrganNo, OrganName, organcharge, organtime, chargeoperator, amount, amounttime, amountoperator, chargestate, organchargedesc, del_flag, create_by, create_time, update_by, update_time from service_donorchargeorgan |
| | | </sql> |
| | | |
| | | <select id="selectServiceDonorchargeorganList" parameterType="ServiceDonorchargeorgan" resultMap="ServiceDonorchargeorganResult"> |
| | | <include refid="selectServiceDonorchargeorganVo"/> |
| | | <where> |
| | | <if test="infoid != null "> and InfoID = #{infoid}</if> |
| | | <if test="donorname != null and donorname != ''"> and donorname like concat('%', #{donorname}, '%')</if> |
| | | <if test="hospitalname != null and hospitalname != ''"> and HospitalName like concat('%', #{hospitalname}, '%')</if> |
| | | <if test="hospitalno != null and hospitalno != ''"> and HospitalNo = #{hospitalno}</if> |
| | | <if test="organno != null and organno != ''"> and OrganNo = #{organno}</if> |
| | | <if test="organname != null and organname != ''"> and OrganName like concat('%', #{organname}, '%')</if> |
| | | <if test="organcharge != null "> and organcharge = #{organcharge}</if> |
| | | <if test="organtime != null "> and organtime = #{organtime}</if> |
| | | <if test="chargeoperator != null and chargeoperator != ''"> and chargeoperator = #{chargeoperator}</if> |
| | | <if test="amount != null "> and amount = #{amount}</if> |
| | | <if test="amounttime != null "> and amounttime = #{amounttime}</if> |
| | | <if test="amountoperator != null and amountoperator != ''"> and amountoperator = #{amountoperator}</if> |
| | | <if test="chargestate != null "> and chargestate = #{chargestate}</if> |
| | | <if test="organchargedesc != null and organchargedesc != ''"> and organchargedesc = #{organchargedesc}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |