¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.StringUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.BaseAnnextype; |
| | | import com.ruoyi.project.service.IBaseAnnextypeService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®éä»¶Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-11-10 |
| | | */ |
| | | @Slf4j |
| | | @Api("æç®éä»¶") |
| | | @RestController |
| | | @RequestMapping("/project/annextype") |
| | | public class BaseAnnextypeController extends BaseController { |
| | | @Autowired |
| | | private IBaseAnnextypeService baseAnnextypeService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®éä»¶å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æç®éä»¶å表") |
| | | @PreAuthorize("@ss.hasPermi('system:annextype:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseAnnextype baseAnnextype) { |
| | | startPage(); |
| | | List<BaseAnnextype> list = baseAnnextypeService.queryList(baseAnnextype); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæç®éä»¶å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæç®éä»¶å表") |
| | | @PreAuthorize("@ss.hasPermi('system:annextype:export')") |
| | | @Log(title = "æç®éä»¶", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(BaseAnnextype baseAnnextype) { |
| | | log.info("å¯¼åºæç®éä»¶å表{}ï¼", baseAnnextype); |
| | | List<BaseAnnextype> list = baseAnnextypeService.queryList(baseAnnextype); |
| | | ExcelUtil<BaseAnnextype> util = new ExcelUtil<BaseAnnextype>(BaseAnnextype.class); |
| | | return util.exportExcel(list, "æç®éä»¶æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæç®é件详ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæç®é件详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:annextype:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("è·åæç®é件详ç»ä¿¡æ¯{}ï¼", id); |
| | | |
| | | return AjaxResult.success(baseAnnextypeService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æç®éä»¶ |
| | | */ |
| | | @ApiOperation("æ°å¢æç®éä»¶") |
| | | @PreAuthorize("@ss.hasPermi('system:annextype:add')") |
| | | @Log(title = "æç®éä»¶", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody BaseAnnextype baseAnnextype) { |
| | | log.info("æ°å¢æç®éä»¶{}ï¼", baseAnnextype); |
| | | |
| | | if (ObjectUtils.isEmpty(baseAnnextype) || StringUtils.isEmpty(baseAnnextype.getDonationcategory()) || StringUtils.isEmpty(baseAnnextype.getAnnextype())) { |
| | | throw new BaseException("è¯·æ£æ¥æç®ç±»å«åéä»¶ç±»åï¼ä¸ºç©ºäº"); |
| | | } |
| | | return toAjax(baseAnnextypeService.save(baseAnnextype)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç®éä»¶ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æç®éä»¶") |
| | | @PreAuthorize("@ss.hasPermi('system:annextype:edit')") |
| | | @Log(title = "æç®éä»¶", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BaseAnnextype baseAnnextype) { |
| | | log.info("ä¿®æ¹æç®éä»¶çå
¥å{}ï¼", baseAnnextype); |
| | | |
| | | if (ObjectUtils.isEmpty(baseAnnextype) || baseAnnextype.getId() == null) { |
| | | throw new BaseException("ä¿®æ¹çæ¡ä»¶ä¸ºç©º"); |
| | | } |
| | | return toAjax(baseAnnextypeService.updateById(baseAnnextype)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿ç®éä»¶ |
| | | */ |
| | | @ApiOperation("å 餿ç®éä»¶") |
| | | @PreAuthorize("@ss.hasPermi('system:annextype:remove')") |
| | | @Log(title = "æç®éä»¶", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å 餿ç®éä»¶{}ï¼", ids); |
| | | |
| | | return toAjax(baseAnnextypeService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | } |
| | |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * @author ruoyi |
| | | * @date 2022-04-19 |
| | | */ |
| | | @Slf4j |
| | | @Api("ä¸å®¶è´¹ç¨") |
| | | @RestController |
| | | @RequestMapping("/project/expertfeetype") |
| | |
| | | @ApiOperation("æ¥è¯¢ä¸å®¶è´¹ç¨å表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseExpertfeetype baseExpertfeetype) { |
| | | log.info("æ¥è¯¢ä¸å®¶è´¹ç¨å表{}ï¼", baseExpertfeetype); |
| | | startPage(); |
| | | List<BaseExpertfeetype> list = baseExpertfeetypeService.queryList(baseExpertfeetype); |
| | | return getDataTable(list); |
| | |
| | | @Log(title = "ä¸å®¶è´¹ç¨", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(BaseExpertfeetype baseExpertfeetype) { |
| | | log.info("导åºä¸å®¶è´¹ç¨å表{}ï¼", baseExpertfeetype); |
| | | List<BaseExpertfeetype> list = baseExpertfeetypeService.queryList(baseExpertfeetype); |
| | | ExcelUtil<BaseExpertfeetype> util = new ExcelUtil<BaseExpertfeetype>(BaseExpertfeetype.class); |
| | | return util.exportExcel(list, "ä¸å®¶è´¹ç¨æ°æ®"); |
| | |
| | | @ApiOperation("è·åä¸å®¶è´¹ç¨è¯¦ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("è·åä¸å®¶è´¹ç¨è¯¦ç»ä¿¡æ¯{}ï¼", id); |
| | | return AjaxResult.success(baseExpertfeetypeService.getById(id)); |
| | | } |
| | | |
| | |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody BaseExpertfeetype baseExpertfeetype) { |
| | | log.info("æ°å¢ä¸å®¶è´¹ç¨{}ï¼", baseExpertfeetype); |
| | | return toAjax(baseExpertfeetypeService.save(baseExpertfeetype)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BaseExpertfeetype baseExpertfeetype) { |
| | | log.info("ä¿®æ¹ä¸å®¶è´¹ç¨{}ï¼", baseExpertfeetype); |
| | | return toAjax(baseExpertfeetypeService.updateById(baseExpertfeetype)); |
| | | } |
| | | |
| | |
| | | @Log(title = "ä¸å®¶è´¹ç¨", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å é¤ä¸å®¶è´¹ç¨{}ï¼", ids); |
| | | return toAjax(baseExpertfeetypeService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.project.service.IBaseFinancesubjectService; |
| | | 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.web.bind.annotation.*; |
| | | |
| | |
| | | * @author ruoyi |
| | | * @date 2022-01-11 |
| | | */ |
| | | @Slf4j |
| | | @Api("æ¶å
¥è´¹ç¨ç§ç®") |
| | | @RestController |
| | | @RequestMapping("/project/financesubject") |
| | |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseFinancesubject baseFinancesubject) |
| | | { |
| | | log.info("æ¥è¯¢æ¶å
¥è´¹ç¨ç§ç®å表{}ï¼" , baseFinancesubject); |
| | | startPage(); |
| | | //List<BaseFinancesubject> list = baseFinancesubjectService.queryList(baseFinancesubject);ã |
| | | List<BaseFinancesubject> list = baseFinancesubjectService.selectBaseFinancesubjectList(baseFinancesubject); |
| | |
| | | @GetMapping("/export") |
| | | public AjaxResult export(BaseFinancesubject baseFinancesubject) |
| | | { |
| | | log.info("å¯¼åºæ¶å
¥è´¹ç¨ç§ç®å表{}ï¼" , baseFinancesubject); |
| | | List<BaseFinancesubject> list = baseFinancesubjectService.queryList(baseFinancesubject); |
| | | ExcelUtil<BaseFinancesubject> util = new ExcelUtil<BaseFinancesubject>(BaseFinancesubject.class); |
| | | return util.exportExcel(list, "æ¶å
¥è´¹ç¨ç§ç®æ°æ®"); |
| | |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | log.info("è·åæ¶å
¥è´¹ç¨ç§ç®è¯¦ç»ä¿¡æ¯{}ï¼" , id); |
| | | return AjaxResult.success(baseFinancesubjectService.getById(id)); |
| | | } |
| | | |
| | |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody BaseFinancesubject baseFinancesubject) |
| | | { |
| | | log.info("æ°å¢æ¶å
¥è´¹ç¨ç§ç®{}ï¼" , baseFinancesubject); |
| | | return toAjax(baseFinancesubjectService.save(baseFinancesubject)); |
| | | } |
| | | |
| | |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BaseFinancesubject baseFinancesubject) |
| | | { |
| | | log.info("ä¿®æ¹æ¶å
¥è´¹ç¨ç§ç®{}ï¼" , baseFinancesubject); |
| | | return toAjax(baseFinancesubjectService.updateById(baseFinancesubject)); |
| | | } |
| | | |
| | |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | log.info("å 餿¶å
¥è´¹ç¨ç§ç®{}ï¼" , ids); |
| | | return toAjax(baseFinancesubjectService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | | @GetMapping(value = "/getItemName/{ItemType}") |
| | | public AjaxResult getItemName(@PathVariable("ItemType") String ItemType){ |
| | | log.info("/getItemNameçå
¥å {}ï¼" , ItemType); |
| | | return AjaxResult.success(baseFinancesubjectService.getItemName(ItemType)); |
| | | } |
| | | |
| | |
| | | @Log(title = "è·åæç®ææ¬", businessType = BusinessType.OTHER) |
| | | @GetMapping(value = "/getDonationCost/{DonorNo}") |
| | | public AjaxResult getDonationCost(@PathVariable("DonorNo") String DonorNo){ |
| | | log.info("è·åæç®ææ¬{}ï¼" , DonorNo); |
| | | return AjaxResult.success(baseFinancesubjectService.getDonationCost(DonorNo)); |
| | | } |
| | | |
| | |
| | | @GetMapping("/getbyexpensetype/{ExpenseType}") |
| | | public AjaxResult getByExpenseType(@PathVariable("ExpenseType") String ExpenseType) |
| | | { |
| | | log.info("æ ¹æ®è´¹ç¨å¤§ç±»è·å项ç®ç±»å{}ï¼" , ExpenseType); |
| | | /*BaseFinancesubject baseFinancesubject=new BaseFinancesubject(); |
| | | baseFinancesubject.setExpensetype(ExpenseType); |
| | | List<BaseFinancesubject> list = baseFinancesubjectService.queryList(baseFinancesubject); |
| | |
| | | @GetMapping("/getDetails/{ExpenseType}") |
| | | public AjaxResult getDetails(@PathVariable("ExpenseType") String ExpenseType) |
| | | { |
| | | log.info("æ ¹æ®è´¹ç¨å¤§ç±»è·åé¡¹ç®æç»{}ï¼" , ExpenseType); |
| | | return AjaxResult.success(baseFinancesubjectService.getDetails(ExpenseType)); |
| | | } |
| | | |
| | |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * æ¶å
¥è´¹ç¨ç§ç®Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2022-05-11 |
| | | */ |
| | | @Slf4j |
| | | @Api("æ¶å
¥è´¹ç¨ç§ç®") |
| | | @RestController |
| | | @RequestMapping("/project/itemexpense") |
| | | public class BaseItemexpenseController extends BaseController |
| | | { |
| | | public class BaseItemexpenseController extends BaseController { |
| | | @Autowired |
| | | private IBaseItemexpenseService baseItemexpenseService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¶å
¥è´¹ç¨ç§ç®å表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseItemexpense baseItemexpense) |
| | | { |
| | | public TableDataInfo list(BaseItemexpense baseItemexpense) { |
| | | log.info("æ¥è¯¢æ¶å
¥è´¹ç¨ç§ç®å表{}ï¼" , baseItemexpense); |
| | | startPage(); |
| | | List<BaseItemexpense> list = baseItemexpenseService.queryList(baseItemexpense); |
| | | return getDataTable(list); |
| | |
| | | @ApiOperation("å¯¼åºæ¶å
¥è´¹ç¨ç§ç®å表") |
| | | @Log(title = "æ¶å
¥è´¹ç¨ç§ç®", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(BaseItemexpense baseItemexpense) |
| | | { |
| | | public AjaxResult export(BaseItemexpense baseItemexpense) { |
| | | log.info("å¯¼åºæ¶å
¥è´¹ç¨ç§ç®å表{}ï¼" , baseItemexpense); |
| | | List<BaseItemexpense> list = baseItemexpenseService.queryList(baseItemexpense); |
| | | ExcelUtil<BaseItemexpense> util = new ExcelUtil<BaseItemexpense>(BaseItemexpense.class); |
| | | return util.exportExcel(list, "æ¶å
¥è´¹ç¨ç§ç®æ°æ®"); |
| | |
| | | */ |
| | | @ApiOperation("è·åæ¶å
¥è´¹ç¨ç§ç®è¯¦ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("è·åæ¶å
¥è´¹ç¨ç§ç®è¯¦ç»ä¿¡æ¯{}ï¼" , id); |
| | | return AjaxResult.success(baseItemexpenseService.getById(id)); |
| | | } |
| | | |
| | |
| | | @Log(title = "æ¶å
¥è´¹ç¨ç§ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody BaseItemexpense baseItemexpense) |
| | | { |
| | | public AjaxResult add(@RequestBody BaseItemexpense baseItemexpense) { |
| | | log.info("æ°å¢æ¶å
¥è´¹ç¨ç§ç®{}ï¼" , baseItemexpense); |
| | | return toAjax(baseItemexpenseService.save(baseItemexpense)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æ¶å
¥è´¹ç¨ç§ç®") |
| | | @Log(title = "æ¶å
¥è´¹ç¨ç§ç®", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BaseItemexpense baseItemexpense) |
| | | { |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BaseItemexpense baseItemexpense) { |
| | | log.info("ä¿®æ¹æ¶å
¥è´¹ç¨ç§ç®{}ï¼" , baseItemexpense); |
| | | return toAjax(baseItemexpenseService.updateById(baseItemexpense)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å 餿¶å
¥è´¹ç¨ç§ç®") |
| | | @Log(title = "æ¶å
¥è´¹ç¨ç§ç®", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å 餿¶å
¥è´¹ç¨ç§ç®{}ï¼" , ids); |
| | | return toAjax(baseItemexpenseService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation("éè¿é¡¹ç®idè·åæ¶å
¥è´¹ç¨ç§ç®è¯¦ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/getDetailsByItemId/{itemid}") |
| | | public AjaxResult getDetailsByItemId(@PathVariable("itemid") Long itemid) |
| | | { |
| | | public AjaxResult getDetailsByItemId(@PathVariable("itemid") Long itemid) { |
| | | log.info("éè¿é¡¹ç®idè·åæ¶å
¥è´¹ç¨ç§ç®è¯¦ç»ä¿¡æ¯{}ï¼" , itemid); |
| | | return AjaxResult.success(baseItemexpenseService.getDetailsByItemId(itemid)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.ruoyi.project.service.IBaseOrganchargeService; |
| | | 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.web.bind.annotation.*; |
| | |
| | | * @author ruoyi |
| | | * @date 2023-10-08 |
| | | */ |
| | | @Slf4j |
| | | @Api("人ä½å¨å®è·åè´¹ç¨") |
| | | @RestController |
| | | @RequestMapping("/organcharge") |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:organcharge:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseOrgancharge baseOrgancharge) { |
| | | log.info("æ¥è¯¢äººä½å¨å®è·åè´¹ç¨å表{}ï¼" , baseOrgancharge); |
| | | startPage(); |
| | | List<BaseOrgancharge> list = baseOrganchargeService.queryList(baseOrgancharge); |
| | | return getDataTable(list); |
| | |
| | | @Log(title = "人ä½å¨å®è·åè´¹ç¨", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(BaseOrgancharge baseOrgancharge) { |
| | | log.info("导åºäººä½å¨å®è·åè´¹ç¨å表{}ï¼" , baseOrgancharge); |
| | | List<BaseOrgancharge> list = baseOrganchargeService.queryList(baseOrgancharge); |
| | | ExcelUtil<BaseOrgancharge> util = new ExcelUtil<BaseOrgancharge>(BaseOrgancharge.class); |
| | | return util.exportExcel(list, "人ä½å¨å®è·åè´¹ç¨æ°æ®"); |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:organcharge:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("è·å人ä½å¨å®è·åè´¹ç¨è¯¦ç»ä¿¡æ¯{}ï¼" , id); |
| | | return AjaxResult.success(baseOrganchargeService.getById(id)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody BaseOrgancharge baseOrgancharge) { |
| | | log.info("æ°å¢äººä½å¨å®è·åè´¹ç¨{}ï¼" , baseOrgancharge); |
| | | return toAjax(baseOrganchargeService.save(baseOrgancharge)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BaseOrgancharge baseOrgancharge) { |
| | | log.info("ä¿®æ¹äººä½å¨å®è·åè´¹ç¨{}ï¼" , baseOrgancharge); |
| | | return toAjax(baseOrganchargeService.updateById(baseOrgancharge)); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:organcharge:remove')") |
| | | @GetMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å é¤äººä½å¨å®è·åè´¹ç¨{}ï¼" , ids); |
| | | return toAjax(baseOrganchargeService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.web.controller.common.OnlyValueCommon; |
| | | 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.web.bind.annotation.*; |
| | |
| | | * @author ruoyi |
| | | * @date 2021-11-05 |
| | | */ |
| | | @Slf4j |
| | | @Api("æºæä¿¡æ¯ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/project/organization") |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:organization:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseOrganization baseOrganization) { |
| | | log.info("è·åæºæå表{}ï¼" , baseOrganization); |
| | | startPage(); |
| | | List<BaseOrganization> list = baseOrganizationService.queryList(baseOrganization); |
| | | return getDataTable(list); |
| | |
| | | @Log(title = "æºæç®¡ç", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(BaseOrganization baseOrganization) { |
| | | log.info("å¯¼åºæºæä¿¡æ¯{}ï¼" , baseOrganization); |
| | | List<BaseOrganization> list = baseOrganizationService.queryList(baseOrganization); |
| | | ExcelUtil<BaseOrganization> util = new ExcelUtil<BaseOrganization>(BaseOrganization.class); |
| | | return util.exportExcel(list, "æºæç®¡çæ°æ®"); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:organization:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("è·åæºæç®¡ç详ç»ä¿¡æ¯{}ï¼" , id); |
| | | return AjaxResult.success(baseOrganizationService.getById(id)); |
| | | } |
| | | |
| | |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody BaseOrganization baseOrganization) { |
| | | log.info("æ°å¢æºæä¿¡æ¯{}ï¼" , baseOrganization); |
| | | String organization = onlyValueCommon.addOnlyValue("organization"); |
| | | //"0"+å°å¸ç¼ç +å»é¢ç±»å+åºå· |
| | | baseOrganization.setOrganizationid("0" + baseOrganization.getRegionallevel() + baseOrganization.getHospitalnature() + organization); |
| | |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BaseOrganization baseOrganization) { |
| | | log.info("ä¿®æ¹æºæä¿¡æ¯{}ï¼" , baseOrganization); |
| | | return toAjax(baseOrganizationService.updateById(baseOrganization)); |
| | | } |
| | | |
| | |
| | | @Log(title = "æºæç®¡ç", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å 餿ºæä¿¡æ¯{}ï¼" , ids); |
| | | return toAjax(baseOrganizationService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * çå¸åºç®¡çController |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2021-11-15 |
| | | */ |
| | | @Slf4j |
| | | @Api("çå¸åºç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/project/dict") |
| | | public class BasePrcaddressDictController extends BaseController |
| | | { |
| | | public class BasePrcaddressDictController extends BaseController { |
| | | @Autowired |
| | | private IBasePrcaddressDictService basePrcaddressDictService; |
| | | |
| | |
| | | @ApiOperation("è·åçå¸åºå表") |
| | | //@PreAuthorize("@ss.hasPermi('project:dict:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BasePrcaddressDict basePrcaddressDict) |
| | | { |
| | | public TableDataInfo list(BasePrcaddressDict basePrcaddressDict) { |
| | | log.info("æ¥è¯¢çå¸åºç®¡çå表{}ï¼", basePrcaddressDict); |
| | | startPage(); |
| | | List<BasePrcaddressDict> list = basePrcaddressDictService.queryList(basePrcaddressDict); |
| | | return getDataTable(list); |
| | |
| | | */ |
| | | @ApiOperation("è·åçå¸åºä¸ææ å表") |
| | | @GetMapping("/treeselect") |
| | | public AjaxResult treeselect(BasePrcaddressDict basePrcaddressDict) |
| | | { |
| | | public AjaxResult treeselect(BasePrcaddressDict basePrcaddressDict) { |
| | | log.info("è·åçå¸åºä¸ææ å表{}ï¼", basePrcaddressDict); |
| | | List<BasePrcaddressDict> basePrcaddressDicts = basePrcaddressDictService.queryList(basePrcaddressDict); |
| | | return AjaxResult.success(basePrcaddressDictService.buildAddressTreeSelect(basePrcaddressDicts)); |
| | | } |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:dict:export')") |
| | | @Log(title = "çå¸åºç®¡ç", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(BasePrcaddressDict basePrcaddressDict) |
| | | { |
| | | public AjaxResult export(BasePrcaddressDict basePrcaddressDict) { |
| | | log.info("导åºçå¸åºå表{}ï¼", basePrcaddressDict); |
| | | List<BasePrcaddressDict> list = basePrcaddressDictService.queryList(basePrcaddressDict); |
| | | ExcelUtil<BasePrcaddressDict> util = new ExcelUtil<BasePrcaddressDict>(BasePrcaddressDict.class); |
| | | return util.exportExcel(list, "çå¸åºç®¡çæ°æ®"); |
| | |
| | | @ApiOperation("éè¿idè·å¾çå¸åº") |
| | | //@PreAuthorize("@ss.hasPermi('project:dict:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("è·åçå¸åºç®¡ç详ç»ä¿¡æ¯{}ï¼", id); |
| | | return AjaxResult.success(basePrcaddressDictService.getById(id)); |
| | | } |
| | | |
| | |
| | | @Log(title = "çå¸åºç®¡ç", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody BasePrcaddressDict basePrcaddressDict) |
| | | { |
| | | public AjaxResult add(@RequestBody BasePrcaddressDict basePrcaddressDict) { |
| | | log.info("æ°å¢çå¸åº{}ï¼", basePrcaddressDict); |
| | | return toAjax(basePrcaddressDictService.save(basePrcaddressDict)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:dict:edit')") |
| | | @Log(title = "çå¸åºç®¡ç", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BasePrcaddressDict basePrcaddressDict) |
| | | { |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BasePrcaddressDict basePrcaddressDict) { |
| | | log.info("ä¿®æ¹çå¸åºç®¡ç{}ï¼", basePrcaddressDict); |
| | | return toAjax(basePrcaddressDictService.updateById(basePrcaddressDict)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:dict:remove')") |
| | | @Log(title = "çå¸åºç®¡ç", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å é¤çå¸åºç®¡ç{}ï¼", ids); |
| | | return toAjax(basePrcaddressDictService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.project.service.IBaseTravelcityService; |
| | | 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.web.bind.annotation.*; |
| | |
| | | |
| | | /** |
| | | * å·®æ
åå¸å补贴æ åController |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-04-23 |
| | | */ |
| | | @Slf4j |
| | | @Api("å·®æ
åå¸å补贴æ å") |
| | | @RestController |
| | | @RequestMapping("/project/travelcity") |
| | | public class BaseTravelcityController extends BaseController |
| | | { |
| | | public class BaseTravelcityController extends BaseController { |
| | | @Autowired |
| | | private IBaseTravelcityService baseTravelcityService; |
| | | |
| | |
| | | @ApiOperation("æ¥è¯¢å·®æ
åå¸å补贴æ åå表") |
| | | @PreAuthorize("@ss.hasPermi('project:travelcity:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(BaseTravelcity baseTravelcity) |
| | | { |
| | | public TableDataInfo list(BaseTravelcity baseTravelcity) { |
| | | log.info("æ¥è¯¢å·®æ
åå¸å补贴æ åå表{}ï¼", baseTravelcity); |
| | | startPage(); |
| | | List<BaseTravelcity> list = baseTravelcityService.queryList(baseTravelcity); |
| | | return getDataTable(list); |
| | |
| | | @PreAuthorize("@ss.hasPermi('project:travelcity:export')") |
| | | @Log(title = "å·®æ
åå¸å补贴æ å", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(BaseTravelcity baseTravelcity) |
| | | { |
| | | public AjaxResult export(BaseTravelcity baseTravelcity) { |
| | | log.info("导åºå·®æ
åå¸å补贴æ åå表{}ï¼", baseTravelcity); |
| | | List<BaseTravelcity> list = baseTravelcityService.queryList(baseTravelcity); |
| | | ExcelUtil<BaseTravelcity> util = new ExcelUtil<BaseTravelcity>(BaseTravelcity.class); |
| | | return util.exportExcel(list, "å·®æ
åå¸å补贴æ åæ°æ®"); |
| | |
| | | @ApiOperation("è·åå·®æ
åå¸å补贴æ å详ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('project:travelcity:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("è·åå·®æ
åå¸å补贴æ å详ç»ä¿¡æ¯{}ï¼", id); |
| | | return AjaxResult.success(baseTravelcityService.getById(id)); |
| | | } |
| | | |
| | |
| | | @Log(title = "å·®æ
åå¸å补贴æ å", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody BaseTravelcity baseTravelcity) |
| | | { |
| | | public AjaxResult add(@RequestBody BaseTravelcity baseTravelcity) { |
| | | log.info("æ°å¢å·®æ
åå¸å补贴æ å{}ï¼", baseTravelcity); |
| | | return toAjax(baseTravelcityService.save(baseTravelcity)); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('project:travelcity:edit')") |
| | | @Log(title = "å·®æ
åå¸å补贴æ å", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BaseTravelcity baseTravelcity) |
| | | { |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody BaseTravelcity baseTravelcity) { |
| | | log.info("ä¿®æ¹å·®æ
åå¸å补贴æ å{}ï¼", baseTravelcity); |
| | | return toAjax(baseTravelcityService.updateById(baseTravelcity)); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('project:travelcity:remove')") |
| | | @Log(title = "å·®æ
åå¸å补贴æ å", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å é¤å·®æ
åå¸å补贴æ å{}ï¼", ids); |
| | | return toAjax(baseTravelcityService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | |
| | | * æ ¹æ®åºåè·åä¼é£è¡¥å©ãå
¬æè¦è¡¥å© |
| | | */ |
| | | @ApiOperation("æ ¹æ®åºåè·åè¡¥å©") |
| | | // @PreAuthorize("@ss.hasPermi('project:travelcity:list')") |
| | | // @PreAuthorize("@ss.hasPermi('project:travelcity:list')") |
| | | @GetMapping("/getSubsidy/{cityCode}") |
| | | public AjaxResult getSubsidy(@PathVariable String cityCode) |
| | | { |
| | | BaseTravelcity baseTravelcity=baseTravelcityService.getSubsidy(cityCode); |
| | | public AjaxResult getSubsidy(@PathVariable String cityCode) { |
| | | log.info("æ ¹æ®åºåè·åä¼é£è¡¥å©ãå
¬æè¦è¡¥å©{}ï¼", cityCode); |
| | | BaseTravelcity baseTravelcity = baseTravelcityService.getSubsidy(cityCode); |
| | | return AjaxResult.success(baseTravelcity); |
| | | } |
| | | } |
| | |
| | | import com.taobao.api.ApiException; |
| | | 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.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.PropertySource; |
| | |
| | | * @author liusheng |
| | | * @date 2023-05-15 |
| | | */ |
| | | @Slf4j |
| | | @Api(description = "é鿥å£") |
| | | @RestController |
| | | @RequestMapping("/smartor/dingtalk") |
| | |
| | | @ApiOperation("åéééæ¶æ¯") |
| | | @PostMapping("/sendNotification") |
| | | public AjaxResult sendNotification(@RequestBody DingTalkReqVo dingTalkReqVo) { |
| | | log.info("åéééæ¶æ¯ï¼{}", dingTalkReqVo); |
| | | Boolean aBoolean = dingTalkService.sendNotification(dingTalkReqVo); |
| | | if (aBoolean) { |
| | | return success(); |
| | |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * ä¸å®¶è´¹ç¨ååæ±æ»æç»Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2022-03-01 |
| | | */ |
| | | @Slf4j |
| | | @Api("ä¸å®¶è´¹ç¨ååæ±æ»æç»") |
| | | @RestController |
| | | @RequestMapping("/project/distributedetail") |
| | | public class ServiceDistributedetailController extends BaseController |
| | | { |
| | | public class ServiceDistributedetailController extends BaseController { |
| | | @Autowired |
| | | private IServiceDistributedetailService serviceDistributedetailService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ä¸å®¶è´¹ç¨ååæ±æ»æç»å表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDistributedetail serviceDistributedetail) |
| | | { |
| | | public TableDataInfo list(ServiceDistributedetail serviceDistributedetail) { |
| | | log.info("æ¥è¯¢ä¸å®¶è´¹ç¨ååæ±æ»æç»å表ï¼{}", serviceDistributedetail); |
| | | startPage(); |
| | | List<ServiceDistributedetail> list = serviceDistributedetailService.queryList(serviceDistributedetail); |
| | | return getDataTable(list); |
| | |
| | | @ApiOperation("导åºä¸å®¶è´¹ç¨ååæ±æ»æç»å表") |
| | | @Log(title = "ä¸å®¶è´¹ç¨ååæ±æ»æç»", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDistributedetail serviceDistributedetail) |
| | | { |
| | | public AjaxResult export(ServiceDistributedetail serviceDistributedetail) { |
| | | log.info("导åºä¸å®¶è´¹ç¨ååæ±æ»æç»å表ï¼{}", serviceDistributedetail); |
| | | List<ServiceDistributedetail> list = serviceDistributedetailService.queryList(serviceDistributedetail); |
| | | ExcelUtil<ServiceDistributedetail> util = new ExcelUtil<ServiceDistributedetail>(ServiceDistributedetail.class); |
| | | return util.exportExcel(list, "ä¸å®¶è´¹ç¨ååæ±æ»æç»æ°æ®"); |
| | |
| | | */ |
| | | @ApiOperation("è·åä¸å®¶è´¹ç¨ååæ±æ»æç»è¯¦ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("è·åä¸å®¶è´¹ç¨ååæ±æ»æç»è¯¦ç»ä¿¡æ¯ï¼{}", id); |
| | | return AjaxResult.success(serviceDistributedetailService.getById(id)); |
| | | } |
| | | |
| | |
| | | @Log(title = "ä¸å®¶è´¹ç¨ååæ±æ»æç»", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDistributedetail serviceDistributedetail) |
| | | { |
| | | public AjaxResult add(@RequestBody ServiceDistributedetail serviceDistributedetail) { |
| | | log.info("æ°å¢ä¸å®¶è´¹ç¨ååæ±æ»æç»ï¼{}", serviceDistributedetail); |
| | | return toAjax(serviceDistributedetailService.save(serviceDistributedetail)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹ä¸å®¶è´¹ç¨ååæ±æ»æç»") |
| | | @Log(title = "ä¸å®¶è´¹ç¨ååæ±æ»æç»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDistributedetail serviceDistributedetail) |
| | | { |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDistributedetail serviceDistributedetail) { |
| | | log.info("ä¿®æ¹ä¸å®¶è´¹ç¨ååæ±æ»æç»ï¼{}", serviceDistributedetail); |
| | | return toAjax(serviceDistributedetailService.updateById(serviceDistributedetail)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å é¤ä¸å®¶è´¹ç¨ååæ±æ»æç»") |
| | | @Log(title = "ä¸å®¶è´¹ç¨ååæ±æ»æç»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å é¤ä¸å®¶è´¹ç¨ååæ±æ»æç»ï¼{}", ids); |
| | | return toAjax(serviceDistributedetailService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | } |
| | |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * ä¸å®¶è´¹ç¨ååæ±æ»ä¸»Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2022-03-01 |
| | | */ |
| | | @Slf4j |
| | | @Api("ä¸å®¶è´¹ç¨ååæ±æ»ä¸»") |
| | | @RestController |
| | | @RequestMapping("/project/distributesummary") |
| | | public class ServiceDistributesummaryController extends BaseController |
| | | { |
| | | public class ServiceDistributesummaryController extends BaseController { |
| | | @Autowired |
| | | private IServiceDistributesummaryService serviceDistributesummaryService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢ä¸å®¶è´¹ç¨ååæ±æ»ä¸»å表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDistributesummary serviceDistributesummary) |
| | | { |
| | | public TableDataInfo list(ServiceDistributesummary serviceDistributesummary) { |
| | | log.info("æ¥è¯¢ä¸å®¶è´¹ç¨ååæ±æ»ä¸»å表ï¼{}", serviceDistributesummary); |
| | | startPage(); |
| | | List<ServiceDistributesummary> list = serviceDistributesummaryService.queryList(serviceDistributesummary); |
| | | return getDataTable(list); |
| | |
| | | @ApiOperation("导åºä¸å®¶è´¹ç¨ååæ±æ»ä¸»å表") |
| | | @Log(title = "ä¸å®¶è´¹ç¨ååæ±æ»ä¸»", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDistributesummary serviceDistributesummary) |
| | | { |
| | | public AjaxResult export(ServiceDistributesummary serviceDistributesummary) { |
| | | log.info("导åºä¸å®¶è´¹ç¨ååæ±æ»ä¸»å表ï¼{}", serviceDistributesummary); |
| | | List<ServiceDistributesummary> list = serviceDistributesummaryService.queryList(serviceDistributesummary); |
| | | ExcelUtil<ServiceDistributesummary> util = new ExcelUtil<ServiceDistributesummary>(ServiceDistributesummary.class); |
| | | return util.exportExcel(list, "ä¸å®¶è´¹ç¨ååæ±æ»ä¸»æ°æ®"); |
| | |
| | | */ |
| | | @ApiOperation("è·åä¸å®¶è´¹ç¨ååæ±æ»ä¸»è¯¦ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("è·åä¸å®¶è´¹ç¨ååæ±æ»ä¸»è¯¦ç»ä¿¡æ¯ï¼{}", id); |
| | | return AjaxResult.success(serviceDistributesummaryService.getById(id)); |
| | | } |
| | | |
| | |
| | | @Log(title = "ä¸å®¶è´¹ç¨ååæ±æ»ä¸»", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDistributesummary serviceDistributesummary) |
| | | { |
| | | public AjaxResult add(@RequestBody ServiceDistributesummary serviceDistributesummary) { |
| | | log.info("æ°å¢ä¸å®¶è´¹ç¨ååæ±æ»ä¸»ï¼{}", serviceDistributesummary); |
| | | return toAjax(serviceDistributesummaryService.save(serviceDistributesummary)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹ä¸å®¶è´¹ç¨ååæ±æ»ä¸»") |
| | | @Log(title = "ä¸å®¶è´¹ç¨ååæ±æ»ä¸»", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDistributesummary serviceDistributesummary) |
| | | { |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDistributesummary serviceDistributesummary) { |
| | | log.info("ä¿®æ¹ä¸å®¶è´¹ç¨ååæ±æ»ä¸»ï¼{}", serviceDistributesummary); |
| | | return toAjax(serviceDistributesummaryService.updateById(serviceDistributesummary)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å é¤ä¸å®¶è´¹ç¨ååæ±æ»ä¸»") |
| | | @Log(title = "ä¸å®¶è´¹ç¨ååæ±æ»ä¸»", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å é¤ä¸å®¶è´¹ç¨ååæ±æ»ä¸»ï¼{}", ids); |
| | | return toAjax(serviceDistributesummaryService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | | @GetMapping(value ="/getSummaryByInfoId/{infoid}") |
| | | public AjaxResult getSummaryByInfoId(@PathVariable("infoid") Long infoid){ |
| | | @GetMapping(value = "/getSummaryByInfoId/{infoid}") |
| | | public AjaxResult getSummaryByInfoId(@PathVariable("infoid") Long infoid) { |
| | | log.info("getSummaryByInfoIdçå
¥åï¼{}", infoid); |
| | | return AjaxResult.success(serviceDistributesummaryService.getSummaryByInfoId(infoid)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | |
| | | /** |
| | | * æç®éä»¶Controller |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2022-04-08 |
| | | */ |
| | | @Slf4j |
| | | @Api("æç®éä»¶") |
| | | @RestController |
| | | @RequestMapping("/project/documentfiles") |
| | | public class ServiceDocumentfilesController extends BaseController |
| | | { |
| | | public class ServiceDocumentfilesController extends BaseController { |
| | | @Autowired |
| | | private IServiceDocumentfilesService serviceDocumentfilesService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æç®éä»¶å表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDocumentfiles serviceDocumentfiles) |
| | | { |
| | | public TableDataInfo list(ServiceDocumentfiles serviceDocumentfiles) { |
| | | log.info("æ¥è¯¢æç®éä»¶å表ï¼{}", serviceDocumentfiles); |
| | | startPage(); |
| | | //List<ServiceDocumentfiles> list = serviceDocumentfilesService.queryList(serviceDocumentfiles); |
| | | List<ServiceDocumentfiles> list = serviceDocumentfilesService.selectList(serviceDocumentfiles); |
| | |
| | | @ApiOperation("å¯¼åºæç®éä»¶å表") |
| | | @Log(title = "æç®éä»¶", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDocumentfiles serviceDocumentfiles) |
| | | { |
| | | public AjaxResult export(ServiceDocumentfiles serviceDocumentfiles) { |
| | | log.info("å¯¼åºæç®éä»¶å表ï¼{}", serviceDocumentfiles); |
| | | List<ServiceDocumentfiles> list = serviceDocumentfilesService.queryList(serviceDocumentfiles); |
| | | ExcelUtil<ServiceDocumentfiles> util = new ExcelUtil<ServiceDocumentfiles>(ServiceDocumentfiles.class); |
| | | return util.exportExcel(list, "æç®éä»¶æ°æ®"); |
| | |
| | | */ |
| | | @ApiOperation("è·åæç®é件详ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("è·åæç®é件详ç»ä¿¡æ¯ï¼{}", id); |
| | | return AjaxResult.success(serviceDocumentfilesService.getById(id)); |
| | | } |
| | | |
| | |
| | | @Log(title = "æç®éä»¶", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDocumentfiles serviceDocumentfiles) |
| | | { |
| | | public AjaxResult add(@RequestBody ServiceDocumentfiles serviceDocumentfiles) { |
| | | log.info("æ°å¢æç®éä»¶ï¼{}", serviceDocumentfiles); |
| | | return toAjax(serviceDocumentfilesService.save(serviceDocumentfiles)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("ä¿®æ¹æç®éä»¶") |
| | | @Log(title = "æç®éä»¶", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDocumentfiles serviceDocumentfiles) |
| | | { |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDocumentfiles serviceDocumentfiles) { |
| | | log.info("ä¿®æ¹æç®éä»¶ï¼{}", serviceDocumentfiles); |
| | | return toAjax(serviceDocumentfilesService.updateById(serviceDocumentfiles)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("å 餿ç®éä»¶") |
| | | @Log(title = "æç®éä»¶", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å 餿ç®éä»¶ï¼{}", ids); |
| | | return toAjax(serviceDocumentfilesService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.project.domain.vo.DonateAnnexVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | * @author ruoyi |
| | | * @date 2021-11-11 |
| | | */ |
| | | @Slf4j |
| | | @Api("é件管ç") |
| | | @RestController |
| | | @RequestMapping("/project/donateannex") |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:donateannex:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonateannex serviceDonateannex) { |
| | | log.info("é件管çå表ï¼{}", serviceDonateannex); |
| | | startPage(); |
| | | List<ServiceDonateannex> list = serviceDonateannexService.queryList(serviceDonateannex); |
| | | return getDataTable(list); |
| | |
| | | |
| | | @GetMapping("/listnew") |
| | | public TableDataInfo listnew(DonateAnnexVO donateAnnexVO) { |
| | | log.info("listnewçå
¥åï¼{}", donateAnnexVO); |
| | | startPage(); |
| | | List<DonateAnnexVO> list = serviceDonateannexService.selectVOList(donateAnnexVO); |
| | | return getDataTable(list); |
| | |
| | | @Log(title = "æç®éä»¶", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonateannex serviceDonateannex) { |
| | | log.info("å¯¼åºæç®éä»¶å表ï¼{}", serviceDonateannex); |
| | | List<ServiceDonateannex> list = serviceDonateannexService.queryList(serviceDonateannex); |
| | | ExcelUtil<ServiceDonateannex> util = new ExcelUtil<ServiceDonateannex>(ServiceDonateannex.class); |
| | | return util.exportExcel(list, "æç®éä»¶æ°æ®"); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:donateannex:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("éè¿idè·å¾æç®éä»¶ä¿¡æ¯ï¼{}", id); |
| | | return AjaxResult.success(serviceDonateannexService.getById(id)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody List<ServiceDonateannex> serviceDonateannexs) { |
| | | log.info("æ°å¢æç®éä»¶ä¿¡æ¯ï¼{}", serviceDonateannexs.size()); |
| | | return toAjax(serviceDonateannexService.saveData(serviceDonateannexs)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonateannex serviceDonateannex) { |
| | | log.info("ä¿®æ¹æç®éä»¶ä¿¡æ¯ï¼{}", serviceDonateannex); |
| | | return toAjax(serviceDonateannexService.updateById(serviceDonateannex)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/editannexfiles") |
| | | @RepeatSubmit |
| | | public AjaxResult editannexfiles(@RequestBody List<ServiceDonateannex> serviceDonateannexs) { |
| | | log.info("ä¿®æ¹æ½å¨æç®ã伦ç审æ¥ã宿ç»è®°ãå»å¦è¯ä¼°éä»¶ä¿¡æ¯ï¼{}", serviceDonateannexs.size()); |
| | | return toAjax(serviceDonateannexService.updateOrSave(serviceDonateannexs)); |
| | | } |
| | | |
| | |
| | | @Log(title = "æç®éä»¶", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å é¤æç®æä»¶ä¿¡æ¯ï¼{}", ids); |
| | | return toAjax(serviceDonateannexService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * @author ruoyi |
| | | * @date 2021-11-10 |
| | | */ |
| | | @Slf4j |
| | | @Api("æç®è¦æ±é件管ç") |
| | | @RestController |
| | | @RequestMapping("/project/donateannexrequirement") |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:donateannexrequirement:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonateannexrequirement serviceDonateannexrequirement) { |
| | | log.info("æç®è¦æ±é件管çå表ï¼{}", serviceDonateannexrequirement); |
| | | startPage(); |
| | | List<ServiceDonateannexrequirement> list = serviceDonateannexrequirementService.queryList(serviceDonateannexrequirement); |
| | | return getDataTable(list); |
| | |
| | | @Log(title = "æç®éä»¶è¦æ±", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonateannexrequirement serviceDonateannexrequirement) { |
| | | log.info("å¯¼åºæç®è¦æ±é件管çå表ï¼{}", serviceDonateannexrequirement); |
| | | List<ServiceDonateannexrequirement> list = serviceDonateannexrequirementService.queryList(serviceDonateannexrequirement); |
| | | ExcelUtil<ServiceDonateannexrequirement> util = new ExcelUtil<ServiceDonateannexrequirement>(ServiceDonateannexrequirement.class); |
| | | return util.exportExcel(list, "æç®éä»¶è¦æ±æ°æ®"); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:donateannexrequirement:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("éè¿idè·åæç®è¦æ±éä»¶ï¼{}", id); |
| | | return AjaxResult.success(serviceDonateannexrequirementService.getById(id)); |
| | | } |
| | | |
| | |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonateannexrequirement serviceDonateannexrequirement) { |
| | | log.info("æ°å¢æç®è¦æ±éä»¶ä¿¡æ¯ï¼{}", serviceDonateannexrequirement); |
| | | return toAjax(serviceDonateannexrequirementService.save(serviceDonateannexrequirement)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonateannexrequirement serviceDonateannexrequirement) { |
| | | log.info("ä¿®æ¹æç®è¦æ±éä»¶ä¿¡æ¯ï¼{}", serviceDonateannexrequirement); |
| | | return toAjax(serviceDonateannexrequirementService.updateById(serviceDonateannexrequirement)); |
| | | } |
| | | |
| | |
| | | @Log(title = "æç®éä»¶è¦æ±", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å 餿ç®è¦æ±éä»¶ä¿¡æ¯ï¼{}", ids); |
| | | return toAjax(serviceDonateannexrequirementService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | } |
| | |
| | | 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.web.bind.annotation.*; |
| | | |
| | |
| | | * @author ruoyi |
| | | * @date 2021-11-10 |
| | | */ |
| | | @Slf4j |
| | | @Api("æ½å¨æç®ä¿¡æ¯ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/project/donatebaseinfo") |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:donatebaseinfo:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonatebaseinfo serviceDonatebaseinfo) { |
| | | log.info("æ½å¨æç®ä¿¡æ¯å表ï¼{}", serviceDonatebaseinfo); |
| | | startPage(); |
| | | //List<ServiceDonatebaseinfo> list = serviceDonatebaseinfoService.queryList(serviceDonatebaseinfo); |
| | | List<ServiceDonatebaseinfo> list = serviceDonatebaseinfoService.selectServiceDonatebaseinfoList(serviceDonatebaseinfo); |
| | |
| | | @ApiOperation("å°ç¨åºç«¯æ½å¨æç®ä¿¡æ¯å表") |
| | | @GetMapping("/listForSearch") |
| | | public TableDataInfo listForSearch(ServiceDonatebaseinfo serviceDonatebaseinfo) { |
| | | log.info("å°ç¨åºç«¯æ½å¨æç®ä¿¡æ¯å表ï¼{}", serviceDonatebaseinfo); |
| | | startPage(); |
| | | List<ServiceDonatebaseinfo> list = serviceDonatebaseinfoService.listForSearch(serviceDonatebaseinfo); |
| | | return getDataTable(list); |
| | |
| | | @Log(title = "æç®åºç¡", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonatebaseinfo serviceDonatebaseinfo) { |
| | | log.info("å¯¼åºæ½å¨æç®ä¿¡æ¯å表ï¼{}", serviceDonatebaseinfo); |
| | | List<ServiceDonatebaseinfo> list = serviceDonatebaseinfoService.queryList(serviceDonatebaseinfo); |
| | | ExcelUtil<ServiceDonatebaseinfo> util = new ExcelUtil<ServiceDonatebaseinfo>(ServiceDonatebaseinfo.class); |
| | | return util.exportExcel(list, "æç®åºç¡æ°æ®"); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:donatebaseinfo:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("éè¿idè·å¾æ½å¨æç®ä¿¡æ¯ï¼{}", id); |
| | | return AjaxResult.success(serviceDonatebaseinfoService.getById(id)); |
| | | } |
| | | |
| | |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonatebaseinfo serviceDonatebaseinfo) { |
| | | log.info("æ°å¢æ½å¨æç®ä¿¡æ¯ï¼{}", serviceDonatebaseinfo); |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | |
| | | String bh = ""; |
| | |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceDonatebaseinfo serviceDonatebaseinfo) { |
| | | log.info("ä¿®æ¹æ½å¨æç®ä¿¡æ¯ï¼{}", serviceDonatebaseinfo); |
| | | return toAjax(serviceDonatebaseinfoService.updateById(serviceDonatebaseinfo)); |
| | | } |
| | | |
| | |
| | | @Log(title = "æç®åºç¡", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | log.info("å 餿½å¨æç®ä¿¡æ¯ï¼{}", ids); |
| | | return toAjax(serviceDonatebaseinfoService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | | @ApiOperation("è·åæç®ç¼å·") |
| | | @GetMapping("/donatenumber") |
| | | public AjaxResult getDonateNumber(ServiceDonatebaseinfo serviceDonatebaseinfo) { |
| | | log.info("è·åæç®ç¼å·ï¼{}", serviceDonatebaseinfo); |
| | | return AjaxResult.success(serviceDonatebaseinfoService.getDonateNumber(serviceDonatebaseinfo)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("è·åæç®æ¥å人") |
| | | @GetMapping("/reportName/{usertype}") |
| | | public AjaxResult getReportName(@PathVariable("usertype") String usertype) { |
| | | log.info("è·åæç®æ¥å人ï¼{}", usertype); |
| | | return AjaxResult.success(serviceExternalpersonService.getReportName(usertype)); |
| | | } |
| | | |
| | | @GetMapping(value = "/updateS1S2S3S4/{id}") |
| | | public AjaxResult updateS1S2S3S4(@PathVariable Long id) { |
| | | log.info("updateS1S2S3S4çå
¥åï¼{}", id); |
| | | return AjaxResult.success(serviceDonatebaseinfoService.updateS1S2S3S4(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("éè¿idä¸è½½äººä½å¨å®æ½å¨æç®è
ç»è®°è¡¨") |
| | | @GetMapping(value = "/download/{id}") |
| | | public Map downloadInfo(@PathVariable("id") Long id) throws IOException { |
| | | log.info("éè¿idä¸è½½äººä½å¨å®æ½å¨æç®è
ç»è®°è¡¨ï¼{}", id); |
| | | Map dataMap = new HashMap(); |
| | | getData(dataMap, id); |
| | | String filePath = getClass().getResource("/template/").getPath(); |
| | |
| | | @ApiOperation("è·åç¶æè·å计æ°") |
| | | @GetMapping("/countByRecordState") |
| | | public AjaxResult countByRecordState(TimeVO timeVO) { |
| | | log.info("è·åç¶æè·å计æ°ï¼{}", timeVO); |
| | | return AjaxResult.success(serviceDonatebaseinfoService.countByRecordState(timeVO)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("è·åæç®å·¥ä½æµ") |
| | | @GetMapping(value = "/getWorkFlow/{id}") |
| | | public AjaxResult getWorkFlow(@PathVariable("id") Long id) { |
| | | log.info("è·åæç®å·¥ä½æµï¼{}", id); |
| | | return AjaxResult.success(serviceDonatebaseinfoService.getWorkFlow(id)); |
| | | } |
| | | |
| | |
| | | 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.web.bind.annotation.*; |
| | | |
| | |
| | | * @author ruoyi |
| | | * @date 2021-11-19 |
| | | */ |
| | | @Slf4j |
| | | @Api("æç®å®æç»è®°ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/project/donatecompletioninfo") |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonatecompletioninfo serviceDonatecompletioninfo) { |
| | | log.info("æ¥è¯¢æç®å®æå表ï¼{}", serviceDonatecompletioninfo); |
| | | startPage(); |
| | | List<ServiceDonatecompletioninfo> list = serviceDonatecompletioninfoService.queryList(serviceDonatecompletioninfo); |
| | | return getDataTable(list); |
| | |
| | | @GetMapping("/listnew") |
| | | @Log(title = "æ¥è¯¢æç®å®æåè¡¨ï¼æ°ï¼", businessType = BusinessType.OTHER) |
| | | public TableDataInfo listnew(DonationCompletionVO donationCompletionVO) { |
| | | log.info("æ¥è¯¢æç®å®æåè¡¨ï¼æ°ï¼ï¼{}", donationCompletionVO); |
| | | startPage(); |
| | | List<DonationCompletionVO> list = serviceDonatecompletioninfoService.selectVOList(donationCompletionVO); |
| | | return getDataTable(list); |
| | |
| | | @Log(title = "æç®å®æ", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonatecompletioninfo serviceDonatecompletioninfo) { |
| | | log.info("å¯¼åºæç®å®æåè¡¨ï¼æ°ï¼ï¼{}", serviceDonatecompletioninfo); |
| | | List<ServiceDonatecompletioninfo> list = serviceDonatecompletioninfoService.queryList(serviceDonatecompletioninfo); |
| | | ExcelUtil<ServiceDonatecompletioninfo> util = new ExcelUtil<ServiceDonatecompletioninfo>(ServiceDonatecompletioninfo.class); |
| | | return util.exportExcel(list, "æç®å®ææ°æ®"); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("éè¿idè·åæä¸æ¡æç®å®æä¿¡æ¯ï¼{}", id); |
| | | return AjaxResult.success(serviceDonatecompletioninfoService.getById(id)); |
| | | } |
| | | |
| | |
| | | @PostMapping |
| | | @RepeatSubmit(interval = 5000) |
| | | public AjaxResult add(@RequestBody ServiceDonatecompletioninfo serviceDonatecompletioninfo) { |
| | | log.info("æ°å¢æç®å®æï¼{}", serviceDonatecompletioninfo); |
| | | serviceDonatecompletioninfoService.delDuplicateDonateCompletioninfo(serviceDonatecompletioninfo.getInfoid(), serviceDonatecompletioninfo.getCreateBy()); |
| | | return toAjax(serviceDonatecompletioninfoService.save(serviceDonatecompletioninfo)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.utils.bean.DtoConversionUtils; |
| | | import com.ruoyi.project.domain.*; |
| | | import com.ruoyi.project.domain.vo.DonateOrganVO; |
| | | import com.ruoyi.project.domain.vo.NumberOfOrgans; |
| | | import com.ruoyi.project.domain.vo.TimeVO; |
| | | import com.ruoyi.project.mapper.BaseOrganizationMapper; |
| | | import com.ruoyi.project.service.IServiceDonatebaseinfoService; |
| | | import com.ruoyi.project.service.IServiceOrganallocationService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | 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.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.project.service.IServiceDonateorganService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.bean.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.ServiceDonateorgan; |
| | | import com.ruoyi.project.domain.ServiceDonateorganVO; |
| | | import com.ruoyi.project.domain.ServiceOrganallocation; |
| | | import com.ruoyi.project.domain.vo.DonateOrganVO; |
| | | import com.ruoyi.project.domain.vo.TimeVO; |
| | | import com.ruoyi.project.service.IServiceDonateorganService; |
| | | import com.ruoyi.project.service.IServiceOrganallocationService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®å¨å®ç®¡çController |
| | |
| | | List<ServiceDonateorgan> list = serviceDonateorganService.queryList(serviceDonateorgan); |
| | | if (!CollectionUtils.isEmpty(list)) { |
| | | List<ServiceDonateorganVO> serviceDonateorganVOS = DtoConversionUtils.sourceToTarget(list, ServiceDonateorganVO.class); |
| | | for (ServiceDonateorganVO serviceDonateorganVO : serviceDonateorganVOS) { |
| | | ServiceOrganallocation serviceOrganallocation = new ServiceOrganallocation(); |
| | | serviceOrganallocation.setOrganid(serviceDonateorganVO.getId()); |
| | | List<ServiceOrganallocation> serviceOrganallocations = serviceOrganallocationService.selectServiceOrganallocationList(serviceOrganallocation); |
| | | serviceDonateorganVO.setServiceOrganallocations(serviceOrganallocations); |
| | | } |
| | | // for (ServiceDonateorganVO serviceDonateorganVO : serviceDonateorganVOS) { |
| | | // ServiceOrganallocation serviceOrganallocation = new ServiceOrganallocation(); |
| | | // serviceOrganallocation.setOrganid(serviceDonateorganVO.getId()); |
| | | // List<ServiceOrganallocation> serviceOrganallocations = serviceOrganallocationService.selectServiceOrganallocationList(serviceOrganallocation); |
| | | // serviceDonateorganVO.setServiceOrganallocations(serviceOrganallocations); |
| | | // } |
| | | return getDataTable(serviceDonateorganVOS); |
| | | } |
| | | |
| | |
| | | return saveDataTable(serviceDonateorgans1); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * ä¿®æ¹å¨å®åé
|
| | | */ |
| | | @ApiOperation("ä¿®æ¹å¨å®åé
ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('project:organallocation:edit')") |
| | | @Log(title = "å¨å®åé
", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/editarraydata") |
| | | @RepeatSubmit |
| | | public AjaxResult editArrayData(@RequestBody List<ServiceDonateorgan> serviceDonateorgans) { |
| | | return AjaxResult.success(serviceDonateorganService.editArrayData(serviceDonateorgans)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æç®å¨å®ç®¡ç |
| | | */ |
| | |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.enums.OrganEnum; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.project.domain.BaseOnlyvalue; |
| | | import com.ruoyi.project.domain.ServiceDonatecompletioninfo; |
| | | import com.ruoyi.project.domain.ServiceDonateorgan; |
| | | import com.ruoyi.project.domain.vo.DonationWitnessVO; |
| | | import com.ruoyi.project.domain.vo.TimeVO; |
| | | import com.ruoyi.project.mapper.BaseOnlyvalueMapper; |
| | | import com.ruoyi.project.service.IBaseOnlyvalueService; |
| | | import com.ruoyi.project.service.IServiceDonatebaseinfoService; |
| | | import com.ruoyi.project.service.IServiceDonateorganService; |
| | | import com.ruoyi.project.service.impl.BaseOnlyvalueServiceImpl; |
| | | import com.ruoyi.web.controller.common.OnlyValueCommon; |
| | | import freemarker.template.Configuration; |
| | | import freemarker.template.Template; |
| | | import freemarker.template.TemplateException; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | 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; |
| | |
| | | return toAjax(false); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å é¤è´¹ç¨ç³è¯·ä¸» |
| | | */ |
| | |
| | | @RepeatSubmit |
| | | public AjaxResult totaltax(@RequestBody TotalTaxVO totalTaxVO) { |
| | | Boolean totaltax = serviceFundService.totaltax(totalTaxVO); |
| | | if(totaltax){ |
| | | if (totaltax) { |
| | | return AjaxResult.success("åè®¡ä¸ªç¨æå,请å»E:\\OPO\\WEB\\Upload\\download 䏿¥æ¾æä»¶"); |
| | | } |
| | | |
| | |
| | | import com.ruoyi.common.enums.Education; |
| | | import com.ruoyi.common.enums.NationalityEnum; |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.project.domain.vo.RelativeConfirmationVO; |
| | | import com.ruoyi.project.mapper.ServiceDonatebaseinfoMapper; |
| | | import com.ruoyi.project.mapper.ServiceRelativesconfirmationMapper; |
| | |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceRelativesconfirmation serviceRelativesconfirmation) { |
| | | ServiceRelativesconfirmation serviceRelativesconfirmation1 = new ServiceRelativesconfirmation(); |
| | | serviceRelativesconfirmation1.setInfoid(serviceRelativesconfirmation.getInfoid()); |
| | | List<ServiceRelativesconfirmation> list = serviceRelativesconfirmationService.queryList(serviceRelativesconfirmation1); |
| | | if (CollectionUtils.isEmpty(list)) { |
| | | return error("æç®äº²å±ç¡®è®¤æ°æ®ä¸åå¨,è¯·æ£æ¥å忬¡ä¿®æ¹"); |
| | | if (serviceRelativesconfirmation.getInfoid() == null || serviceRelativesconfirmation.getId() == null) { |
| | | throw new BaseException("请è系工ç¨å¸æ£æ¥IDæ¯å¦ä¸ºç©º"); |
| | | } |
| | | serviceRelativesconfirmation.setId(list.get(0).getId()); |
| | | // ServiceRelativesconfirmation serviceRelativesconfirmation1 = new ServiceRelativesconfirmation(); |
| | | // serviceRelativesconfirmation1.setInfoid(serviceRelativesconfirmation.getInfoid()); |
| | | // List<ServiceRelativesconfirmation> list = serviceRelativesconfirmationService.queryList(serviceRelativesconfirmation1); |
| | | // if (CollectionUtils.isEmpty(list)) { |
| | | // return error("æç®äº²å±ç¡®è®¤æ°æ®ä¸åå¨,è¯·æ£æ¥å忬¡ä¿®æ¹"); |
| | | // } |
| | | // serviceRelativesconfirmation.setId(list.get(0).getId()); |
| | | return toAjax(serviceRelativesconfirmationService.updateById(serviceRelativesconfirmation)); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.utils; |
| | | |
| | | public class ChineseUtils { |
| | | |
| | | /** |
| | | * æ ¡éªæ¯å¦æ¯ä¸æ |
| | | * |
| | | * @param str |
| | | * @return |
| | | */ |
| | | public static boolean isChinese(String str) { |
| | | String regex = "[\\u4e00-\\u9fa5]+"; |
| | | return str.matches(regex); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.domain; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * æç®é件对象 base_annextype |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-11-10 |
| | | */ |
| | | @Data |
| | | @ApiModel("æç®éä»¶") |
| | | public class BaseAnnextype extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | @ApiModelProperty("$column.columnComment") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** æç®ç±»å« æ ¹æ®åå
¸sys_DonationCategoryï¼DBDãDCDãDBCDï¼ */ |
| | | @ApiModelProperty("æç®ç±»å« æ ¹æ®åå
¸sys_DonationCategoryï¼DBDãDCDãDBCDï¼") |
| | | @Excel(name = "æç®ç±»å« æ ¹æ®åå
¸sys_DonationCategory", readConverterExp = "D=BDãDCDãDBCD") |
| | | private String donationcategory; |
| | | |
| | | /** éä»¶ç±»åï¼0 æ½å¨æç®ï¼1 å»å¦è¯ä¼°ï¼2 æç®ç¡®è®¤ï¼3伦ç审æ¥ï¼6 宿ç»è®°ï¼é¡ºåºæ¯å页é¢ä¸ç顺åºä¿æä¸è´ï¼æ²¡æåºå·ç说æä¸éè¦éä»¶ */ |
| | | @ApiModelProperty("éä»¶ç±»åï¼0 æ½å¨æç®ï¼1 å»å¦è¯ä¼°ï¼2 æç®ç¡®è®¤ï¼3伦ç审æ¥ï¼6 宿ç»è®°ï¼é¡ºåºæ¯å页é¢ä¸ç顺åºä¿æä¸è´ï¼æ²¡æåºå·ç说æä¸éè¦éä»¶") |
| | | @Excel(name = "éä»¶ç±»å", readConverterExp = "0=,æ½=卿ç®ï¼1,å»=å¦è¯ä¼°ï¼2,æ=ç®ç¡®è®¤ï¼3伦ç审æ¥ï¼6,å®=æç»è®°") |
| | | private String annextype; |
| | | |
| | | /** éä»¶åç§° */ |
| | | @ApiModelProperty("éä»¶åç§°") |
| | | @Excel(name = "éä»¶åç§°") |
| | | private String annexname; |
| | | |
| | | /** å¿
é¡»éä»¶çæ è¯ */ |
| | | @ApiModelProperty("å¿
é¡»éä»¶çæ è¯") |
| | | @Excel(name = "å¿
é¡»éä»¶çæ è¯") |
| | | private Long need; |
| | | |
| | | /** åºå· */ |
| | | @ApiModelProperty("åºå·") |
| | | @Excel(name = "åºå·") |
| | | private Long seqno; |
| | | |
| | | } |
| | | |
| | |
| | | @ApiModelProperty("å
³èservice_donatebaseinfo表çID") |
| | | private Long infoid; |
| | | |
| | | |
| | | @ApiModelProperty("å
³èbase_annextype表çID") |
| | | private Long annextypeid; |
| | | |
| | | /** |
| | | * æç®è
ç¼å· |
| | | */ |
| | |
| | | private Integer transplantstate; |
| | | |
| | | |
| | | |
| | | /** ç³»ç»ç¼å· */ |
| | | @ApiModelProperty("ç³»ç»ç¼å·") |
| | | @Excel(name = "ç³»ç»ç¼å·") |
| | | private String caseno; |
| | | |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.mapper; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.project.domain.BaseAnnextype; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®éä»¶Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-11-10 |
| | | */ |
| | | @Mapper |
| | | public interface BaseAnnextypeMapper extends BaseMapper<BaseAnnextype> |
| | | { |
| | | /** |
| | | * æ¥è¯¢æç®éä»¶å表 |
| | | * |
| | | * @param baseAnnextype æç®éä»¶ |
| | | * @return æç®éä»¶éå |
| | | */ |
| | | public List<BaseAnnextype> selectBaseAnnextypeList(BaseAnnextype baseAnnextype); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.project.domain.BaseAnnextype; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®éä»¶Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-11-10 |
| | | */ |
| | | public interface IBaseAnnextypeService extends IService<BaseAnnextype> |
| | | { |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®éä»¶å表 |
| | | * |
| | | * @param baseAnnextype æç®éä»¶ |
| | | * @return æç®éä»¶éå |
| | | */ |
| | | public List<BaseAnnextype> queryList(BaseAnnextype baseAnnextype); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.project.domain.ServiceDonateorgan; |
| | | import com.ruoyi.project.domain.ServiceOrganallocation; |
| | | import com.ruoyi.project.domain.vo.*; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | |
| | |
| | | |
| | | List<ServiceDonateorgan> saveData(List<ServiceDonateorgan> serviceDonateorgans); |
| | | |
| | | Boolean editArrayData(List<ServiceDonateorgan> serviceDonateorgans); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.BaseAnnextype; |
| | | import com.ruoyi.project.mapper.BaseAnnextypeMapper; |
| | | import com.ruoyi.project.service.IBaseAnnextypeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æç®éä»¶Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-11-10 |
| | | */ |
| | | @Service |
| | | public class BaseAnnextypeServiceImpl extends ServiceImpl<BaseAnnextypeMapper, BaseAnnextype> implements IBaseAnnextypeService |
| | | { |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æç®éä»¶å表 |
| | | * |
| | | * @param baseAnnextype æç®éä»¶ |
| | | * @return æç®éä»¶ |
| | | */ |
| | | @Override |
| | | public List<BaseAnnextype> queryList(BaseAnnextype baseAnnextype) { |
| | | LambdaQueryWrapper<BaseAnnextype> wrappers = Wrappers.lambdaQuery(); |
| | | if (StringUtils.isNotBlank(baseAnnextype.getDonationcategory())){ |
| | | wrappers.eq(BaseAnnextype::getDonationcategory ,baseAnnextype.getDonationcategory()); |
| | | } |
| | | if (StringUtils.isNotBlank(baseAnnextype.getAnnextype())){ |
| | | wrappers.eq(BaseAnnextype::getAnnextype ,baseAnnextype.getAnnextype()); |
| | | } |
| | | if (StringUtils.isNotBlank(baseAnnextype.getAnnexname())){ |
| | | wrappers.like(BaseAnnextype::getAnnexname ,baseAnnextype.getAnnexname()); |
| | | } |
| | | if (baseAnnextype.getNeed() != null){ |
| | | wrappers.eq(BaseAnnextype::getNeed ,baseAnnextype.getNeed()); |
| | | } |
| | | if (baseAnnextype.getSeqno() != null){ |
| | | wrappers.eq(BaseAnnextype::getSeqno ,baseAnnextype.getSeqno()); |
| | | } |
| | | return this.list(wrappers); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.project.domain.vo.DonateAnnexVO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | |
| | | * @author ruoyi |
| | | * @date 2021-11-11 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ServiceDonateannexServiceImpl extends ServiceImpl<ServiceDonateannexMapper, ServiceDonateannex> implements IServiceDonateannexService { |
| | | |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Boolean saveData(List<ServiceDonateannex> serviceDonateannexs) { |
| | | for (ServiceDonateannex serviceDonateannex : serviceDonateannexs) { |
| | | log.info("serviceDonateannexçä¿¡æ¯ï¼{}", serviceDonateannex); |
| | | if (serviceDonateannex.getInfoid() == null || serviceDonateannex.getAnnexfilestype() == null) { |
| | | throw new BaseException("主表idæéä»¶ç±»åID为空ï¼è¯·æ£æ¥ååä¿å"); |
| | | } |
| | |
| | | private IServiceOrganallocationService serviceOrganallocationService; |
| | | |
| | | @Autowired |
| | | private IServiceDonateorganService serviceDonateorganService; |
| | | |
| | | @Autowired |
| | | private IServiceDonationwitnessService serviceDonationwitnessService; |
| | | |
| | | @Autowired |
| | |
| | | return null; |
| | | } |
| | | //å°è£
serviceDonateorganæ½å¨æç®æ°æ® |
| | | Map<String, String> donateorgan = new HashMap<>(); |
| | | donateorgan.put("createtime", DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonatebaseinfo.getCreateTime())); |
| | | donateorgan.put("updatetime", serviceDonatebaseinfo.getUpdateTime() != null ? DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonatebaseinfo.getUpdateTime()) : ""); |
| | | donateorgan.put("process", ""); |
| | | Map<String, String> donatebaseinfo = new HashMap<>(); |
| | | donatebaseinfo.put("createtime", DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonatebaseinfo.getCreateTime())); |
| | | donatebaseinfo.put("updatetime", serviceDonatebaseinfo.getUpdateTime() != null ? DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonatebaseinfo.getUpdateTime()) : ""); |
| | | donatebaseinfo.put("process", ""); |
| | | //å°è£
serviceDonateorganæ½å¨æç®è¿åæ°æ® |
| | | map.put("donateorgan", donateorgan); |
| | | map.put("donatebaseinfo", donatebaseinfo); |
| | | |
| | | //å°è£
å»å¦è¯ä¼° |
| | | Map<String, String> medicalevaluation = new HashMap<>(); |
| | |
| | | map.put("ethicalreviewopinions", ethicalreviewopinions); |
| | | |
| | | //å°è£
å¨å®åé
|
| | | Map<String, String> organallocationService = new HashMap<>(); |
| | | Map<String, String> donateorgansService = new HashMap<>(); |
| | | if (serviceDonatebaseinfo.getWorkflow() >= 4) { |
| | | ServiceOrganallocation serviceOrganallocation = new ServiceOrganallocation(); |
| | | serviceOrganallocation.setOrganid(id); |
| | | List<ServiceOrganallocation> serviceOrganallocations = serviceOrganallocationService.selectServiceOrganallocationList(serviceOrganallocation); |
| | | if (!CollectionUtils.isEmpty(serviceOrganallocations)) { |
| | | organallocationService.put("createtime", DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceOrganallocations.get(0).getCreateTime())); |
| | | organallocationService.put("updatetime", serviceOrganallocations.get(0).getUpdateTime() != null ? DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceOrganallocations.get(0).getUpdateTime()) : ""); |
| | | organallocationService.put("process", ""); |
| | | ServiceDonateorgan serviceDonateorgan = new ServiceDonateorgan(); |
| | | serviceDonateorgan.setInfoid(id); |
| | | List<ServiceDonateorgan> serviceDonateorgans = serviceDonateorganService.queryList(serviceDonateorgan); |
| | | if (!CollectionUtils.isEmpty(serviceDonateorgans)) { |
| | | donateorgansService.put("createtime", DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonateorgans.get(0).getCreateTime())); |
| | | donateorgansService.put("updatetime", serviceDonateorgans.get(0).getUpdateTime() != null ? DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", serviceDonateorgans.get(0).getUpdateTime()) : ""); |
| | | donateorgansService.put("process", ""); |
| | | } |
| | | } |
| | | //å°è£
å¨å®åé
è¿åæ°æ® |
| | | map.put("organallocationService", organallocationService); |
| | | map.put("donateorgansService", donateorgansService); |
| | | |
| | | //å°è£
è·åè§è¯ |
| | | Map<String, String> donationwitness = new HashMap<>(); |
| | |
| | | donateNumber.setNumberOfDonate(serviceDonatebaseinfoMapper.countNumber(timeVO)); |
| | | donateNumber.setNumberOfMedicalEvaluation(serviceMedicalevaluationMapper.countNumber(timeVO)); |
| | | donateNumber.setNumberOfRelativeConfirmation(serviceRelativesconfirmationMapper.countNumber(timeVO)); |
| | | donateNumber.setNumberOfDonatePeople(serviceOrganallocationMapper.countNumber(timeVO)); |
| | | // donateNumber.setNumberOfDonatePeople(serviceOrganallocationMapper.countNumber(timeVO)); |
| | | donateNumber.setNumberOfDonatePeople(serviceDonateorganMapper.countNumber(timeVO)); |
| | | donateNumber.setNumberOfOrgans(serviceDonateorganMapper.countNumber(timeVO)); |
| | | donateNumber.setNumberOfWitness(serviceDonationwitnessMapper.countNumber(timeVO)); |
| | | donateNumber.setNumberOfEthicalReview(serviceEthicalreviewopinionsMapper.countNumber(timeVO)); |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public List<ServiceDonateorgan> saveData(List<ServiceDonateorgan> serviceDonateorgans) { |
| | | for (ServiceDonateorgan serviceDonateorgan : serviceDonateorgans) { |
| | | if (serviceDonateorgan.getInfoid() == null) { |
| | | throw new BaseException("æªå
³èæç®åºç¡ä¿¡æ¯ï¼infoid为空äº" + serviceDonateorgan); |
| | | } |
| | | |
| | | String organNumber = serviceDonateorgan.getDonorno() + "." + serviceDonateorgan.getOrganno(); |
| | | if (StringUtils.isEmpty(serviceDonateorgan.getDonorno()) || StringUtils.isEmpty(serviceDonateorgan.getOrganno())) { |
| | | throw new BaseException("æ°å¢æ¶çæçç¼å·ä¸ºç©º,å建失败(è¯·æ£æ¥æç®è
ç¼å·åå¨å®ç±»å«)! ï¼" + serviceDonateorgan.toString()); |
| | |
| | | boolean save = this.save(serviceDonateorgan); |
| | | |
| | | |
| | | //ä¿åservice_organallocation |
| | | ServiceOrganallocation serviceOrganallocation = new ServiceOrganallocation(); |
| | | serviceOrganallocation.setAgeunit(serviceDonateorgan.getAgeunit()); |
| | | serviceOrganallocation.setApplicanttime(serviceDonateorgan.getApplicanttime()); |
| | | serviceOrganallocation.setIdcardno(serviceDonateorgan.getIdcardno()); |
| | | serviceOrganallocation.setIdcardtype(Long.valueOf(serviceDonateorgan.getIdcardtype())); |
| | | serviceOrganallocation.setOrganid(serviceDonateorgan.getId()); |
| | | serviceOrganallocation.setOrgannumber(serviceDonateorgan.getOrgannumber()); |
| | | log.info("serviceOrganallocationçæ°æ®ä¸º: {}", serviceOrganallocation); |
| | | serviceOrganallocationService.save(serviceOrganallocation); |
| | | // //ä¿åservice_organallocation |
| | | // ServiceOrganallocation serviceOrganallocation = new ServiceOrganallocation(); |
| | | // serviceOrganallocation.setAgeunit(serviceDonateorgan.getAgeunit()); |
| | | // serviceOrganallocation.setApplicanttime(serviceDonateorgan.getApplicanttime()); |
| | | // serviceOrganallocation.setIdcardno(serviceDonateorgan.getIdcardno()); |
| | | // serviceOrganallocation.setIdcardtype(Long.valueOf(serviceDonateorgan.getIdcardtype())); |
| | | // serviceOrganallocation.setOrganid(serviceDonateorgan.getId()); |
| | | // serviceOrganallocation.setOrgannumber(serviceDonateorgan.getOrgannumber()); |
| | | // log.info("serviceOrganallocationçæ°æ®ä¸º: {}", serviceOrganallocation); |
| | | // serviceOrganallocationService.save(serviceOrganallocation); |
| | | } |
| | | return serviceDonateorgans; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Boolean editArrayData(List<ServiceDonateorgan> serviceDonateorgans) { |
| | | for (ServiceDonateorgan serviceDonateorgan : serviceDonateorgans) { |
| | | if (serviceDonateorgan.getId() == null) { |
| | | throw new BaseException("idä¸ºç©ºäº ï¼" + serviceDonateorgan); |
| | | } |
| | | this.updateById(serviceDonateorgan); |
| | | } |
| | | //å°å¸¦IDçæ°æ®è¿å |
| | | return true; |
| | | } |
| | | |
| | | |
| | | // @Override |
| | | // public List<DonateByRegionVO> OrgansOfHospitalByMonth() { |
| | |
| | | package com.ruoyi.project.service.impl; |
| | | |
| | | import java.io.File; |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.concurrent.locks.Lock; |
| | | import java.util.concurrent.locks.LockSupport; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.tax.TaxtUtils; |
| | | import com.ruoyi.common.utils.ChineseUtils; |
| | | import com.ruoyi.common.utils.HttpClientKit; |
| | | import com.ruoyi.common.utils.bean.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | |
| | | |
| | | List<ServiceFunddetailVO> serviceFunddetails = serviceFundVO.getServiceFunddetails(); |
| | | if (CollectionUtils.isEmpty(serviceFunddetails)) { |
| | | System.out.println("serviceFunddetails为空å½"); |
| | | return null; |
| | | throw new BaseException("serviceFunddetails为空å½"); |
| | | } |
| | | // ä¿å详æ
æ°æ® |
| | | for (ServiceFunddetailVO serviceFunddetailVO : serviceFunddetails) { |
| | | if (StringUtils.isEmpty(serviceFunddetailVO.getIdcardno())) { |
| | | throw new BaseException("è¯·æ£æ¥èº«ä»½è¯å·,身份è¯å·ä¸ºç©ºäº,å§åï¼" + serviceFunddetailVO.getBeneficiaryname()); |
| | | } |
| | | if (StringUtils.isEmpty(serviceFunddetailVO.getTitle()) || ChineseUtils.isChinese(serviceFunddetailVO.getTitle())) { |
| | | throw new BaseException("è¯·æ£æ¥èç§°æ¯å¦ä¸ºç©ºï¼æä¸æ¯ä¸æï¼,å§åï¼" + serviceFunddetailVO.getBeneficiaryname() + " èç§°:" + serviceFunddetailVO.getTitle()); |
| | | } |
| | | if (StringUtils.isEmpty(serviceFunddetailVO.getBankcardno())) { |
| | | throw new BaseException("è¯·æ£æ¥é¶è¡å¡å·æ¯å¦ä¸ºç©º,å§åï¼" + serviceFunddetailVO.getBeneficiaryname()); |
| | | } |
| | | serviceFunddetailVO.setFundid(id); |
| | | //å°é件转æjson |
| | | if (!CollectionUtils.isEmpty(serviceFunddetailVO.getAnnexfilesList())) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.BaseAnnextypeMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.project.domain.BaseAnnextype" id="BaseAnnextypeResult"> |
| | | <result property="id" column="ID" /> |
| | | <result property="donationcategory" column="donationcategory" /> |
| | | <result property="annextype" column="annextype" /> |
| | | <result property="annexname" column="annexname" /> |
| | | <result property="need" column="need" /> |
| | | <result property="seqno" column="seqno" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="del_flag" 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="selectBaseAnnextypeVo"> |
| | | select ID, donationcategory, annextype, annexname, need, seqno, remark, del_flag, create_by, create_time, update_by, update_time from base_annextype |
| | | </sql> |
| | | |
| | | <select id="selectBaseAnnextypeList" parameterType="com.ruoyi.project.domain.BaseAnnextype" resultMap="BaseAnnextypeResult"> |
| | | <include refid="selectBaseAnnextypeVo"/> |
| | | <where> |
| | | <if test="donationcategory != null and donationcategory != ''"> and donationcategory = #{donationcategory}</if> |
| | | <if test="annextype != null and annextype != ''"> and annextype = #{annextype}</if> |
| | | <if test="annexname != null and annexname != ''"> and annexname like concat('%', #{annexname}, '%')</if> |
| | | <if test="need != null "> and need = #{need}</if> |
| | | <if test="seqno != null "> and seqno = #{seqno}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <result property="annexno" column="AnnexNo" /> |
| | | <result property="annexurl" column="AnnexUrl" /> |
| | | <result property="annexfilestype" column="AnnexfilesType" /> |
| | | <result property="annextypeid" column="annextypeid" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceDonateannexVo"> |
| | | select ID, InfoID, DonorNo, del_flag, create_by, create_time, update_by, update_time, AnnexName, AnnexNo, AnnexUrl,AnnexfilesType from service_donateannex |
| | | select ID, InfoID, DonorNo, del_flag, create_by, create_time, update_by, update_time, AnnexName, AnnexNo, AnnexUrl,AnnexfilesType,annextypeid from service_donateannex |
| | | </sql> |
| | | |
| | | <select id="selectServiceDonateannexList" parameterType="com.ruoyi.project.domain.ServiceDonateannex" resultMap="ServiceDonateannexResult"> |
| | |
| | | <result property="applicantusername" column="ApplicantUserName"/> |
| | | <result property="applicanttime" column="ApplicantTime"/> |
| | | <result property="checkuserid" column="CheckUserID"/> |
| | | <result property="caseno" column="CaseNo" /> |
| | | <result property="checkusername" column="CheckUserName"/> |
| | | <result property="checktime" column="CheckTime"/> |
| | | <result property="checksuggestion" column="CheckSuggestion"/> |
| | |
| | | OrganState, |
| | | OrganNumber, |
| | | OrganGetTime, |
| | | CaseNo, |
| | | OrganGetDoct, |
| | | GainHospitalNo, |
| | | GainHospitalName, |