| | |
| | | <version>${ruoyi.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.apache.httpcomponents</groupId> |
| | | <artifactId>httpcore</artifactId> |
| | | <version>4.4.10</version> |
| | | </dependency> |
| | | |
| | | |
| | | </dependencies> |
| | | </dependencyManagement> |
| | |
| | | |
| | | <dependencies> |
| | | |
| | | <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient --> |
| | | <dependency> |
| | | <groupId>org.apache.httpcomponents</groupId> |
| | | <artifactId>httpclient</artifactId> |
| | | <version>4.5</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.apache.httpcomponents</groupId> |
| | | <artifactId>httpmime</artifactId> |
| | | <version>4.5</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>commons-httpclient</groupId> |
| | | <artifactId>commons-httpclient</artifactId> |
| | | <version>3.1</version> |
| | | </dependency> |
| | | |
| | | </dependencies> |
| | | |
| | | <build> |
| | |
| | | <optional>true</optional> <!-- 表示ä¾èµä¸ä¼ä¼ é --> |
| | | </dependency> |
| | | |
| | | |
| | | <!-- swagger3--> |
| | | <dependency> |
| | | <groupId>io.springfox</groupId> |
| | |
| | | <version>2.3.30</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.apache.httpcomponents</groupId> |
| | | <artifactId>httpclient</artifactId> |
| | | <version>4.5.12</version> |
| | | </dependency> |
| | | |
| | | </dependencies> |
| | | |
| | | <build> |
| | |
| | | package com.ruoyi.web.controller.common; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.constant.Constants; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.file.FileUploadUtils; |
| | | import com.ruoyi.common.utils.file.FileUtils; |
| | | import com.ruoyi.framework.config.ServerConfig; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.constant.Constants; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.file.FileUploadUtils; |
| | | import com.ruoyi.common.utils.file.FileUtils; |
| | | import com.ruoyi.framework.config.ServerConfig; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * éç¨è¯·æ±å¤ç |
| | |
| | | } |
| | | |
| | | /** |
| | | * éç¨ä¸ä¼ è¯·æ± |
| | | * éç¨ä¸ä¼ 请æ±,type 为0 代表æ¯å·®æ
æ¥éï¼ä¸º1代表费ç¨ç³è¯·,å
¶å®å¼ä¸å |
| | | */ |
| | | @PostMapping("/common/upload") |
| | | public AjaxResult uploadFile(MultipartFile file) throws Exception |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¬å°èµæºéç¨ä¸è½½ |
| | | */ |
| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import java.io.*; |
| | | import java.net.URLEncoder; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.file.FileUploadUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.framework.config.ServerConfig; |
| | | import com.ruoyi.project.domain.ServiceDonateannex; |
| | | import com.ruoyi.project.domain.ServiceDonatebaseinfo; |
| | | import com.ruoyi.project.domain.vo.TimeVO; |
| | | import com.ruoyi.project.service.IServiceDonatebaseinfoService; |
| | | import com.ruoyi.project.service.IServiceExternalpersonService; |
| | | import com.ruoyi.system.mapper.SysDeptMapper; |
| | | import freemarker.core.XMLOutputFormat; |
| | | import freemarker.template.Configuration; |
| | | import freemarker.template.Template; |
| | | import freemarker.template.TemplateException; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | //import javafx.scene.input.DataFormat; |
| | | import net.sf.jsqlparser.expression.DateTimeLiteralExpression; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.core.parameters.P; |
| | | import org.springframework.web.bind.annotation.*; |
| | | 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.domain.ServiceDonatebaseinfo; |
| | | import com.ruoyi.project.service.IServiceDonatebaseinfoService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import freemarker.template.Configuration; |
| | | |
| | | import javax.servlet.ServletInputStream; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.xml.crypto.Data; |
| | | import java.io.*; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | //import javafx.scene.input.DataFormat; |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | serviceDonatebaseinfo.setDonorno(bh); |
| | | serviceDonatebaseinfo.setDeptid(user.getDeptId()); |
| | | serviceDonatebaseinfo.setDeptname(sysDeptMapper.getDeptNameByDeptId(user.getDeptId())); |
| | | //serviceDonatebaseinfo.setDeptid(user.getDeptId()); |
| | | //serviceDonatebaseinfo.setDeptname(sysDeptMapper.getDeptNameByDeptId(user.getDeptId())); |
| | | |
| | | return toAjax(serviceDonatebaseinfoService.save(serviceDonatebaseinfo)); |
| | | } |
| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import java.io.*; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | 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.enums.OrganEnum; |
| | | 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.domain.vo.DonationWitnessVO; |
| | | import com.ruoyi.project.service.IServiceDonatecompletioninfoService; |
| | | import com.ruoyi.project.service.IServiceDonateorganService; |
| | | import freemarker.template.Configuration; |
| | | import freemarker.template.Template; |
| | | import freemarker.template.TemplateException; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.omg.CORBA.INTERNAL; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.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.domain.ServiceDonatecompletioninfo; |
| | | import com.ruoyi.project.service.IServiceDonatecompletioninfoService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import freemarker.template.Configuration; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.io.*; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | |
| | | /** |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.ServiceFundShared; |
| | | import com.ruoyi.project.service.IServiceFundSharedService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | //import com.ruoyi.project.domain.ServiceFundShared; |
| | | //import com.ruoyi.project.service.IServiceFundSharedService; |
| | | |
| | | /** |
| | | * è´¹ç¨ç³è¯·ä¸»Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-01-10 |
| | | */ |
| | | @Api("è´¹ç¨ç³è¯·ä¸»") |
| | | @RestController |
| | | @RequestMapping("/project/shared") |
| | | public class ServiceFundSharedController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IServiceFundSharedService serviceFundSharedService; |
| | | |
| | | /** |
| | | * æ¥è¯¢è´¹ç¨ç³è¯·ä¸»å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢è´¹ç¨ç³è¯·ä¸»å表") |
| | | @PreAuthorize("@ss.hasPermi('system:shared:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceFundShared serviceFundShared) |
| | | { |
| | | startPage(); |
| | | List<ServiceFundShared> list = serviceFundSharedService.queryList(serviceFundShared); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè´¹ç¨ç³è¯·ä¸»å表 |
| | | */ |
| | | @ApiOperation("导åºè´¹ç¨ç³è¯·ä¸»å表") |
| | | @PreAuthorize("@ss.hasPermi('system:shared:export')") |
| | | @Log(title = "è´¹ç¨ç³è¯·ä¸»", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceFundShared serviceFundShared) |
| | | { |
| | | List<ServiceFundShared> list = serviceFundSharedService.queryList(serviceFundShared); |
| | | ExcelUtil<ServiceFundShared> util = new ExcelUtil<ServiceFundShared>(ServiceFundShared.class); |
| | | return util.exportExcel(list, "è´¹ç¨ç³è¯·ä¸»æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åè´¹ç¨ç³è¯·ä¸»è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åè´¹ç¨ç³è¯·ä¸»è¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:shared:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return AjaxResult.success(serviceFundSharedService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è´¹ç¨ç³è¯·ä¸» |
| | | */ |
| | | @ApiOperation("æ°å¢è´¹ç¨ç³è¯·ä¸»") |
| | | @PreAuthorize("@ss.hasPermi('system:shared:add')") |
| | | @Log(title = "è´¹ç¨ç³è¯·ä¸»", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceFundShared serviceFundShared) |
| | | { |
| | | return toAjax(serviceFundSharedService.save(serviceFundShared)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è´¹ç¨ç³è¯·ä¸» |
| | | */ |
| | | @ApiOperation("ä¿®æ¹è´¹ç¨ç³è¯·ä¸»") |
| | | @PreAuthorize("@ss.hasPermi('system:shared:edit')") |
| | | @Log(title = "è´¹ç¨ç³è¯·ä¸»", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceFundShared serviceFundShared) |
| | | { |
| | | return toAjax(serviceFundSharedService.updateById(serviceFundShared)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è´¹ç¨ç³è¯·ä¸» |
| | | */ |
| | | @ApiOperation("å é¤è´¹ç¨ç³è¯·ä¸»") |
| | | @PreAuthorize("@ss.hasPermi('system:shared:remove')") |
| | | @Log(title = "è´¹ç¨ç³è¯·ä¸»", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(serviceFundSharedService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import java.io.*; |
| | | import java.text.DecimalFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.common.utils.HttpClientKit; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.*; |
| | | import com.ruoyi.project.domain.dto.ServiceReimbursementDto; |
| | | import com.ruoyi.project.domain.vo.CheckFundVO; |
| | | import com.ruoyi.project.domain.vo.SpFinancialExpensesIn; |
| | | import com.ruoyi.project.domain.vo.SpFinancialExpensesReimbursementOut; |
| | | import com.ruoyi.project.service.*; |
| | | import com.ruoyi.system.domain.SysPost; |
| | | import com.ruoyi.system.service.ISysPostService; |
| | | import freemarker.template.Configuration; |
| | | import freemarker.template.Template; |
| | | import freemarker.template.TemplateException; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang.ArrayUtils; |
| | | import org.apache.ibatis.annotations.Options; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.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.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import freemarker.template.Configuration; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.io.*; |
| | | import java.math.BigDecimal; |
| | | import java.text.DecimalFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | |
| | | |
| | | /** |
| | | * æ¥éç³è¯·Controller |
| | |
| | | { |
| | | @Autowired |
| | | private IServiceReimbursementService serviceReimbursementService; |
| | | |
| | | @Autowired |
| | | private IServiceReimbursementSharedService serviceReimbursementServiceShare; |
| | | |
| | | @Autowired |
| | | private IServiceReimbursementdetailService serviceReimbursementdetailService; |
| | |
| | | @Options(useGeneratedKeys = true, keyProperty = "id") |
| | | public AjaxResult add(@RequestBody ServiceReimbursement serviceReimbursement) |
| | | { |
| | | |
| | | boolean b = serviceReimbursementService.save(serviceReimbursement); |
| | | if(b) |
| | | { |
| | | addReiSharedDatd(serviceReimbursement,1); |
| | | } |
| | | Long id = serviceReimbursement.getId(); |
| | | return AjaxResult.success(id); |
| | | } |
| | | |
| | | public int addReiSharedDatd(ServiceReimbursement serviceReimbursement,int nType) |
| | | { |
| | | //remShare = ; |
| | | ServiceReimbursementShared remShare = null; |
| | | if(nType == 1) |
| | | { |
| | | remShare = new ServiceReimbursementShared(); |
| | | remShare.setReimid(serviceReimbursement.getId()); |
| | | } |
| | | else //modify |
| | | { |
| | | List<ServiceReimbursementShared> remlist = serviceReimbursementServiceShare.getRemShareInfoByRemId(serviceReimbursement.getId()); |
| | | if(remlist!=null) |
| | | remShare =remlist.get(0); |
| | | } |
| | | |
| | | remShare.setUserno(serviceReimbursement.getUserno()); |
| | | remShare.setUsername(serviceReimbursement.getUsername()); |
| | | remShare.setTravelers(serviceReimbursement.getTravelers()); |
| | | remShare.setIdcardtype(serviceReimbursement.getIdcardtype()); |
| | | remShare.setIdcardno(serviceReimbursement.getIdcardno()); |
| | | remShare.setPhone(serviceReimbursement.getPhone()); |
| | | remShare.setDepositbank(serviceReimbursement.getDepositbank()); |
| | | remShare.setBankcardno(serviceReimbursement.getBankcardno()); |
| | | remShare.setBranchbankname(serviceReimbursement.getBranchbankname()); |
| | | remShare.setAnnexbankcard(serviceReimbursement.getAnnexbankcard()); |
| | | remShare.setAnnexfiles(serviceReimbursement.getAnnexfiles()); |
| | | // remShare.setAmountrequested(BigDecimal.valueOf(serviceReimbursement.getAmountrequested())); |
| | | |
| | | Double nTemp = serviceReimbursement.getAmountrequested(); |
| | | if( nTemp == null) nTemp = 0d; |
| | | remShare.setAmountrequested(BigDecimal.valueOf(nTemp)); |
| | | |
| | | nTemp = serviceReimbursement.getPrepaidamount(); |
| | | if(nTemp == null) nTemp = 0.0; |
| | | remShare.setPrepaidamount(BigDecimal.valueOf(nTemp)); |
| | | |
| | | remShare.setInvoicecount(serviceReimbursement.getInvoicecount()); |
| | | remShare.setAttachcount(serviceReimbursement.getAttachcount()); |
| | | remShare.setManagerno(serviceReimbursement.getManagerno()); |
| | | remShare.setManagername(serviceReimbursement.getManagername()); |
| | | remShare.setDeptmentno(serviceReimbursement.getDeptmentno()); |
| | | remShare.setDeptmentname(serviceReimbursement.getDeptmentname()); |
| | | remShare.setOpochecker(serviceReimbursement.getOpochecker()); |
| | | remShare.setFinvicepresident(serviceReimbursement.getFinvicepresident()); |
| | | remShare.setBusvicepresident(serviceReimbursement.getBusvicepresident()); |
| | | remShare.setOfficedirector(serviceReimbursement.getOfficedirector()); |
| | | remShare.setFinancedirector(serviceReimbursement.getFinancedirector()); |
| | | remShare.setFinancechecher(serviceReimbursement.getFinancechecher()); |
| | | remShare.setInfoid(serviceReimbursement.getInfoid()); |
| | | remShare.setDonorno(serviceReimbursement.getDonorno()); |
| | | |
| | | remShare.setDonorname(serviceReimbursement.getDonorname()); |
| | | remShare.setReason(serviceReimbursement.getReason()); |
| | | remShare.setRecordstatus(serviceReimbursement.getRecordstatus()); |
| | | remShare.setUploadflag(serviceReimbursement.getUploadflag()); |
| | | remShare.setUploadtime(serviceReimbursement.getUploadtime()); |
| | | |
| | | nTemp = serviceReimbursement.getTotalamount(); |
| | | if(nTemp == null) nTemp = 0.0; |
| | | remShare.setTotalamount(BigDecimal.valueOf(nTemp)); |
| | | |
| | | remShare.setBigstrmoney(serviceReimbursement.getBigstrmoney()); |
| | | remShare.setFlowlevel(serviceReimbursement.getFlowlevel()); |
| | | remShare.setCosttype(serviceReimbursement.getCosttype()); |
| | | remShare.setCosttypename(serviceReimbursement.getCosttypename()); |
| | | remShare.setFileurl(serviceReimbursement.getFileurl()); |
| | | //remShare.setOaid(serviceReimbursement.getOaid()); |
| | | //remShare.setDonorno(serviceReimbursement.getDonorno()); |
| | | |
| | | boolean bRet = false; |
| | | if(nType==1) |
| | | { |
| | | bRet = serviceReimbursementServiceShare.save(remShare); |
| | | } |
| | | else |
| | | { |
| | | //remShare.setId(serviceReimbursement.); |
| | | bRet = serviceReimbursementServiceShare.updateById(remShare); |
| | | } |
| | | |
| | | //if(!bRet) return -1; |
| | | String strMutfileUrl = remShare.getFileurl(); |
| | | //æéä»¶æ¶æè°ç¨ç¬¬ä¸æ¹è¿è¡ä¸ä¼ |
| | | if(strMutfileUrl == null) return 0; |
| | | if(strMutfileUrl.isEmpty()) return 0; |
| | | |
| | | try |
| | | { |
| | | uploadOAFileAndUpdateDb(remShare); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | logger.error("è°ç¨ç¬¬ä¸æ¹æ¥å£åºé!"); |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | //æ¤å¤ä¿åæååè¦ä¸ä¼ OAï¼ä¿åè¿åå¼ |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | int uploadOAFileAndUpdateDb(ServiceReimbursementShared remShare) |
| | | { |
| | | //ä¸ä¼ OAæä»¶ |
| | | //String strUrl = "http://129.88.242.39:8899/seeyon/rest/token?userName=opo&password=127814f8-84e8-4304-84a5-a71573567efd&loginName=demo3"; |
| | | String strUrl = "http://129.88.242.39:8899/seeyon/rest/token"; |
| | | //String strUrl = "http://slb.hospitalstar.com:8899/seeyon/rest/token"; |
| | | //ä¸ä¼ æä»¶æååï¼å»æ´æ°ç¸å
³çæ°æ®åº |
| | | |
| | | |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | map.put("userName","opo"); |
| | | map.put("password","4126407a-9821-4874-be41-6568abd6dbe5"); |
| | | map.put("loginName","demo3"); |
| | | |
| | | JSONObject jsonObj = new JSONObject(map); |
| | | |
| | | System.out.println("uploadOAFileAndUpdateDb + jsonObject"+jsonObj.toString() + "\r\n" + jsonObj.toJSONString()); |
| | | String strRes = HttpClientKit.postOpr(strUrl,jsonObj.toString());// |
| | | //String strRes = HttpClientKit.postMsg(strUrl,jsonObj);//å¾å°è¿åçtoken? |
| | | |
| | | JSONObject json1 = JSONObject.parseObject(strRes); |
| | | strRes = json1.get("id").toString(); |
| | | |
| | | ///if(strRes.isEmpty() || "" == strRes) return -1;// 为空代表失败 |
| | | |
| | | //ä¸é¢éæ±è°ç¨æä»¶çæ¥å£ï¼è°ç¨æåè¿ååï¼å¾å°filenameåfileid ç¨è¿äºä¸ªå¼å»æ´æ°æ°æ® |
| | | |
| | | String filePath = RuoYiConfig.getUploadPath(); |
| | | String strMutfileUrl = remShare.getFileurl();//å¯è½åå¨å¤ä¸ªå°åï¼ä»¥,åå¼ |
| | | |
| | | String strFUrl = "http://129.88.242.39:8899/seeyon/rest/attachment?token=%s"+strRes; |
| | | //String strFUrl = "http://slb.hospitalstar.com:8899/seeyon/rest/attachment?token="+strRes; |
| | | //strFUrl = String.format(strFUrl, strRes); |
| | | |
| | | /*File test = null; |
| | | File file = new File("E:\\YYJQ\\OPO\\WEB\\Upload\\upload\\2023\\02\\17"); |
| | | if (file.exists() && file.isDirectory()) { |
| | | // è·åææç²çæä»¶å¤¹ |
| | | File[] ones = file.listFiles(); |
| | | for (File one : ones) { |
| | | test = one; |
| | | } |
| | | }*/ |
| | | |
| | | String filename = ""; |
| | | String fileid = ""; |
| | | |
| | | String[] urlArray = strMutfileUrl.split(","); |
| | | for (int i = 0; i < urlArray.length; i++) |
| | | { |
| | | String strOneFileName = urlArray[i]; |
| | | String strTemp = strOneFileName.substring(15); |
| | | String strFile = filePath + strTemp ; |
| | | //FileUploadUtils.getAbsoluteFile(filePath,strOneFileName); |
| | | String struploadResult = ""; |
| | | File filetest = new File(strFile); |
| | | try |
| | | { |
| | | struploadResult = HttpClientKit.sendPostWithFile(filetest,strFUrl); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | |
| | | /*CloseableHttpClient httpClient = HttpClients.createDefault(); |
| | | //å建postæ¹æ³è¿æ¥å®ä¾ï¼å¨postæ¹æ³ä¸ä¼ å
¥å¾
è¿æ¥å°å |
| | | HttpPost httpPost = new HttpPost(strFUrl); |
| | | CloseableHttpResponse response = null; |
| | | |
| | | String struploadResult = ""; |
| | | try { |
| | | //设置请æ±åæ°ï¼ç±»ä¼¼html页é¢ä¸name屿§ï¼ |
| | | MultipartEntityBuilder entity = MultipartEntityBuilder.create(); |
| | | //entity.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); |
| | | entity.setCharset(Charset.forName("UTF-8")); |
| | | |
| | | byte[] fileBytes = Files.readAllBytes(Paths.get(strFile)); |
| | | if (fileBytes != null) { |
| | | //å
容类åï¼ç¨äºå®ä¹ç½ç»æä»¶çç±»ååç½é¡µçç¼ç ï¼å³å®æä»¶æ¥æ¶æ¹å°ä»¥ä»ä¹å½¢å¼ãä»ä¹ç¼ç 读åè¿ä¸ªæä»¶ |
| | | ContentType OCTEC_STREAM = ContentType.create("application/octet-stream", Charset.forName("UTF-8")); |
| | | //æ·»å æä»¶ |
| | | entity.addBinaryBody("file", fileBytes, OCTEC_STREAM, strTemp); |
| | | } |
| | | |
| | | httpPost.setEntity(entity.build()); |
| | | //å起请æ±ï¼å¹¶è¿å请æ±ååº |
| | | response = httpClient.execute(httpPost); |
| | | struploadResult = EntityUtils.toString(response.getEntity(), "utf-8"); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | e.printStackTrace(); |
| | | }*/ |
| | | |
| | | //String strFRes = HttpClientKit.postMsg(strFUrl,jsonFObj); |
| | | if(struploadResult == null) return 0; |
| | | if(struploadResult.isEmpty()) return 0; |
| | | |
| | | JSONObject jsonR = JSONObject.parseObject(struploadResult); |
| | | |
| | | JSONArray jsonArr = jsonR.getJSONArray("atts"); |
| | | for(int j=0;j<jsonArr.size();j++) |
| | | { |
| | | JSONObject jsonRet = jsonArr.getJSONObject(j); |
| | | String name1= jsonRet.get("filename").toString(); |
| | | String id1 = jsonRet.get("fileUrl").toString(); |
| | | filename+=name1; |
| | | fileid+=id1; |
| | | if(i!=urlArray.length-1) |
| | | { |
| | | filename+=","; |
| | | fileid+=","; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | long nId = remShare.getId(); |
| | | remShare.setId(nId); |
| | | remShare.setFilename(filename); |
| | | remShare.setFileid(fileid); |
| | | boolean bRet = serviceReimbursementServiceShare.updateById(remShare); |
| | | if(!bRet) return -1; |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | if(!postids.contains(2)) |
| | | { |
| | | serviceReimbursement.setFlowlevel(1); |
| | | serviceReimbursement.setFlowlevel(1L); |
| | | serviceReimbursement.setRecordstatus(2); |
| | | } |
| | | else |
| | | { |
| | | serviceReimbursement.setFlowlevel(0); |
| | | serviceReimbursement.setFlowlevel(0L); |
| | | serviceReimbursement.setRecordstatus(0); |
| | | } |
| | | |
| | |
| | | } |
| | | Integer CheckFlag=0; |
| | | Integer RecordStatus=serviceReimbursement.getRecordstatus(); |
| | | Integer FlowLevel=serviceReimbursement.getFlowlevel(); |
| | | Integer FlowLevel = Integer.valueOf(serviceReimbursement.getFlowlevel().toString()); |
| | | Integer OriginalFlowLevel=FlowLevel; |
| | | if(checkFundVO.getFlowconclusion()==1) |
| | | { |
| | |
| | | } |
| | | |
| | | serviceReimbursement.setRecordstatus(RecordStatus); |
| | | serviceReimbursement.setFlowlevel(FlowLevel); |
| | | serviceReimbursement.setFlowlevel(Long.valueOf(FlowLevel.toString())); |
| | | |
| | | ServiceFundflow serviceFundflow=new ServiceFundflow(); |
| | | SysUser user = loginUser.getUser(); |
| | |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceReimbursement serviceReimbursement) |
| | | { |
| | | return toAjax(serviceReimbursementService.updateById(serviceReimbursement)); |
| | | boolean b= serviceReimbursementService.updateById(serviceReimbursement); |
| | | if(b) |
| | | { |
| | | addReiSharedDatd(serviceReimbursement,2); |
| | | } |
| | | return toAjax(b); |
| | | } |
| | | |
| | | /** |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.domain.ServiceReimbursementShared; |
| | | import com.ruoyi.project.service.IServiceReimbursementSharedService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥éç³è¯·Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-01-10 |
| | | */ |
| | | @Api("æ¥éç³è¯·") |
| | | @RestController |
| | | @RequestMapping("/project/reimshared") |
| | | public class ServiceReimbursementSharedController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IServiceReimbursementSharedService serviceReimbursementSharedService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¥éç³è¯·å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ¥éç³è¯·å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:shared:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceReimbursementShared serviceReimbursementShared) |
| | | { |
| | | startPage(); |
| | | List<ServiceReimbursementShared> list = serviceReimbursementSharedService.queryList(serviceReimbursementShared); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ¥éç³è¯·å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ¥éç³è¯·å表") |
| | | //@PreAuthorize("@ss.hasPermi('system:shared:export')") |
| | | @Log(title = "æ¥éç³è¯·", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceReimbursementShared serviceReimbursementShared) |
| | | { |
| | | List<ServiceReimbursementShared> list = serviceReimbursementSharedService.queryList(serviceReimbursementShared); |
| | | ExcelUtil<ServiceReimbursementShared> util = new ExcelUtil<ServiceReimbursementShared>(ServiceReimbursementShared.class); |
| | | return util.exportExcel(list, "æ¥éç³è¯·æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¥éç³è¯·è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ¥éç³è¯·è¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('system:shared:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return AjaxResult.success(serviceReimbursementSharedService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¥éç³è¯· |
| | | */ |
| | | @ApiOperation("æ°å¢æ¥éç³è¯·") |
| | | //@PreAuthorize("@ss.hasPermi('system:shared:add')") |
| | | @Log(title = "æ¥éç³è¯·", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceReimbursementShared serviceReimbursementShared) |
| | | { |
| | | return toAjax(serviceReimbursementSharedService.save(serviceReimbursementShared)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¥éç³è¯· |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ¥éç³è¯·") |
| | | //@PreAuthorize("@ss.hasPermi('system:shared:edit')") |
| | | @Log(title = "æ¥éç³è¯·", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceReimbursementShared serviceReimbursementShared) |
| | | { |
| | | return toAjax(serviceReimbursementSharedService.updateById(serviceReimbursementShared)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¥éç³è¯· |
| | | */ |
| | | @ApiOperation("å 餿¥éç³è¯·") |
| | | @PreAuthorize("@ss.hasPermi('system:shared:remove')") |
| | | @Log(title = "æ¥éç³è¯·", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(serviceReimbursementSharedService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | } |
| | |
| | | druid: |
| | | # ä¸»åºæ°æ®æº |
| | | master: |
| | | #url: jdbc:mysql://47.118.79.3:3308/opozj?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | #username: JQ |
| | | #password: DQt1solAOB&= |
| | | #url: jdbc:mysql://129.88.242.37:3308/opo?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | #username: JQ |
| | | #password: Jqserver88 |
| | | url: jdbc:mysql://172.29.9.23:3306/oposvr?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | #url: jdbc:mysql://47.118.79.3:3308/opozj?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | #username: JQ |
| | | #password: DQt1solAOB&= |
| | | url: jdbc:mysql://172.29.74.70:3306/opo?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8 |
| | | username: sendo |
| | | password: sendohill |
| | | #url: jdbc:mysql://192.168.2.98:3306/opo-v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8 |
| | | #username: root |
| | | #password: 1 |
| | | # ä»åºæ°æ®æº |
| | | slave: |
| | | # 仿°æ®æºå¼å
³/é»è®¤å
³é |
| | |
| | | # æä»¶è·¯å¾ 示ä¾ï¼ Windowsé
ç½®D:/ruoyi/uploadPathï¼Linuxé
ç½® /home/ruoyi/uploadPathï¼ |
| | | #profile: /Users/dongshicun/IdeaProjects/JQ.OPO/testDoc/ruoyi/uploadPath |
| | | #profile: C:/YYJQ/OPO/WEB/Upload |
| | | profile: D:/YYJQ/OPO/WEB/Upload |
| | | #profile: E:/YYJQ/OPO/WEB/Upload |
| | | #profile: D:/YYJQ/OPO/WEB/Upload |
| | | profile: E:/YYJQ/OPO/WEB/Upload |
| | | # è·åipå°åå¼å
³ |
| | | addressEnabled: false |
| | | # éªè¯ç ç±»å math æ°ç»è®¡ç® char å符éªè¯ |
| | |
| | | # å°å |
| | | host: 47.118.79.3 |
| | | #host: 129.88.242.37 |
| | | #host: 127.0.0.1 |
| | | |
| | | # 端å£ï¼é»è®¤ä¸º6379 |
| | | port: 6379 |
| | |
| | | <version>1.6.2</version> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.httpcomponents</groupId> |
| | | <artifactId>httpclient</artifactId> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | </project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.utils; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | import org.apache.commons.httpclient.methods.PostMethod; |
| | | import org.apache.commons.httpclient.methods.RequestEntity; |
| | | import org.apache.commons.httpclient.methods.StringRequestEntity; |
| | | import org.apache.http.HttpResponse; |
| | | import org.apache.http.client.methods.HttpPost; |
| | | import org.apache.http.entity.StringEntity; |
| | | import org.apache.http.entity.mime.HttpMultipartMode; |
| | | import org.apache.http.entity.mime.MultipartEntity; |
| | | import org.apache.http.entity.mime.content.FileBody; |
| | | import org.apache.http.impl.client.CloseableHttpClient; |
| | | import org.apache.http.impl.client.DefaultHttpClient; |
| | | import org.apache.http.impl.client.HttpClients; |
| | | import org.apache.http.message.BasicHeader; |
| | | import org.apache.http.protocol.HTTP; |
| | | |
| | | import java.io.BufferedReader; |
| | | import java.io.File; |
| | | import java.io.InputStream; |
| | | import java.io.InputStreamReader; |
| | | import java.nio.charset.Charset; |
| | | |
| | | public class HttpClientKit { |
| | | |
| | | public static String post(String url, JSONObject json) { |
| | | |
| | | CloseableHttpClient client = HttpClients.createDefault(); |
| | | HttpPost post = new HttpPost(url); |
| | | |
| | | post.setHeader("Content-Type", "application/json"); |
| | | post.addHeader("Authorization", "Basic YWRtaW46"); |
| | | String result = ""; |
| | | |
| | | try { |
| | | |
| | | StringEntity s = new StringEntity(json.toString(), "utf-8"); |
| | | s.setContentEncoding(new BasicHeader(HTTP.CONTENT_TYPE, |
| | | "application/json")); |
| | | post.setEntity(s); |
| | | |
| | | // åéè¯·æ± |
| | | HttpResponse httpResponse = client.execute(post); |
| | | |
| | | // è·åååºè¾å
¥æµ |
| | | InputStream inStream = httpResponse.getEntity().getContent(); |
| | | BufferedReader reader = new BufferedReader(new InputStreamReader( |
| | | inStream, "utf-8")); |
| | | StringBuilder strber = new StringBuilder(); |
| | | String line = null; |
| | | while ((line = reader.readLine()) != null) |
| | | strber.append(line + "\n"); |
| | | inStream.close(); |
| | | |
| | | result = strber.toString(); |
| | | System.out.println(result); |
| | | |
| | | if (httpResponse.getStatusLine().getStatusCode() == HttpStatus.SUCCESS) { |
| | | // System.out.println("è¯·æ±æå¡å¨æåï¼åç¸åºå¤ç"); |
| | | } else { |
| | | System.out.println("è¯·æ±æå¡ç«¯å¤±è´¥"); |
| | | } |
| | | } catch (Exception e) { |
| | | System.out.println("请æ±å¼å¸¸"); |
| | | throw new RuntimeException(e); |
| | | } |
| | | finally { |
| | | //client. |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | public static String sendPostWithFile(File lrcFile, String urlStr) throws Exception { |
| | | String BOUNDARY = java.util.UUID.randomUUID().toString(); |
| | | MultipartEntity multipartEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE, "--------------------" + BOUNDARY, Charset.defaultCharset()); |
| | | multipartEntity.addPart("lyricsUpload", new FileBody(lrcFile)); //lyricsUploadæä»¶å |
| | | HttpPost request = new HttpPost(urlStr); //è¿ç¨æ¥å£ |
| | | request.setEntity(multipartEntity); |
| | | request.addHeader("Content-Type", "multipart/form-data; boundary=--------------------" + BOUNDARY); |
| | | |
| | | DefaultHttpClient httpClient = new DefaultHttpClient(); |
| | | HttpResponse response = httpClient.execute(request); |
| | | InputStream is = response.getEntity().getContent(); |
| | | BufferedReader in = new BufferedReader(new InputStreamReader(is)); |
| | | StringBuffer buffer = new StringBuffer(); |
| | | String line = ""; |
| | | while ((line = in.readLine()) != null) { |
| | | buffer.append(line); |
| | | } |
| | | //Flogger.info("åéæ¶æ¯æ¶å°çè¿åï¼" + buffer.toString()); |
| | | String remark = ""; |
| | | return buffer.toString(); |
| | | // org.json.JSONObject JSONObject = new org.json.JSONObject(buffer.toString()); |
| | | } |
| | | public static String postOpr(String url,String json) |
| | | { |
| | | //HttpClient httpClient = new HttpClient(); |
| | | org.apache.commons.httpclient.HttpClient httpClient = new org.apache.commons.httpclient.HttpClient(); |
| | | PostMethod httpPost = new PostMethod(url); |
| | | httpPost.setRequestHeader("Content-Type","application/json;charset=utf-8"); |
| | | |
| | | try |
| | | { |
| | | RequestEntity entity = new StringRequestEntity(json,"Content-Type","UTF-8"); |
| | | httpPost.setRequestEntity(entity); |
| | | httpClient.executeMethod(httpPost); |
| | | |
| | | return httpPost.getResponseBodyAsString(); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | e.printStackTrace(); |
| | | } |
| | | return ""; |
| | | } |
| | | public static String postMsg(String url, JSONObject json) { |
| | | |
| | | CloseableHttpClient client = HttpClients.createDefault(); |
| | | HttpPost post = new HttpPost(url); |
| | | |
| | | post.setHeader("Content-Type", "application/json"); |
| | | //post.addHeader("Authorization", "Basic YWRtaW46"); |
| | | //post.addHeader("ApiKey", "hswl"); |
| | | post.addHeader("PostMethod", "POST"); |
| | | String result = ""; |
| | | |
| | | try { |
| | | |
| | | StringEntity s = new StringEntity(json.toJSONString(), "utf-8"); |
| | | s.setContentEncoding(new BasicHeader(HTTP.CONTENT_TYPE, |
| | | "application/json")); |
| | | post.setEntity(s); |
| | | |
| | | // åéè¯·æ± |
| | | HttpResponse httpResponse = client.execute(post); |
| | | |
| | | // è·åååºè¾å
¥æµ |
| | | InputStream inStream = httpResponse.getEntity().getContent(); |
| | | BufferedReader reader = new BufferedReader(new InputStreamReader( |
| | | inStream, "utf-8")); |
| | | StringBuilder strber = new StringBuilder(); |
| | | String line = null; |
| | | while ((line = reader.readLine()) != null) |
| | | strber.append(line + "\n"); |
| | | inStream.close(); |
| | | |
| | | result = strber.toString(); |
| | | System.out.println(result); |
| | | |
| | | if (httpResponse.getStatusLine().getStatusCode() == HttpStatus.SUCCESS) { |
| | | //System.out.println("è¯·æ±æå¡å¨æåï¼åç¸åºå¤ç"); |
| | | } else { |
| | | System.out.println("è¯·æ±æå¡ç«¯å¤±è´¥"); |
| | | } |
| | | } catch (Exception e) { |
| | | System.out.println("请æ±å¼å¸¸"); |
| | | throw new RuntimeException(e); |
| | | } |
| | | finally { |
| | | //client. |
| | | } |
| | | return result; |
| | | } |
| | | } |
| | |
| | | public CorsFilter corsFilter() |
| | | { |
| | | CorsConfiguration config = new CorsConfiguration(); |
| | | // config.setAllowCredentials(true);20230302 |
| | | config.setAllowCredentials(true); |
| | | // è®¾ç½®è®¿é®æºå°å |
| | | config.addAllowedOriginPattern("*"); |
| | | // è®¾ç½®è®¿é®æºè¯·æ±å¤´ |
| | |
| | | package com.ruoyi.project.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æç®åºç¡å¯¹è±¡ service_donatebaseinfo |
| | |
| | | |
| | | private Long deptid; |
| | | |
| | | |
| | | @ApiModelProperty("é¨é¨åç§°") |
| | | @Excel(name = "é¨é¨åç§°") |
| | | private String deptname; |
| | | |
| | | @ApiModelProperty("ç»é¿ç¼ç ") |
| | | @Excel(name = "ç»é¿ç¼ç ") |
| | | private String leaderno; |
| | | |
| | | @ApiModelProperty("ç»é¿åç§°") |
| | | @Excel(name = "ç»é¿åç§°") |
| | | private String leadername; |
| | | |
| | | @ApiModelProperty("ä¸å¡å°åº") |
| | | @Excel(name = "ä¸å¡å°åº") |
| | | private String businessarea; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | //package com.ruoyi.system.domain; |
| | | package com.ruoyi.project.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è´¹ç¨ç³è¯·ä¸»å¯¹è±¡ service_fund_shared |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-01-10 |
| | | */ |
| | | @Data |
| | | @ApiModel("è´¹ç¨ç³è¯·ä¸»") |
| | | public class ServiceFundShared 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; |
| | | |
| | | /** æç®è
å§å */ |
| | | @ApiModelProperty("æç®è
å§å") |
| | | @Excel(name = "æç®è
å§å") |
| | | private String donorname; |
| | | |
| | | /** ç³è¯·äººç¼å· */ |
| | | @ApiModelProperty("ç³è¯·äººç¼å·") |
| | | @Excel(name = "ç³è¯·äººç¼å·") |
| | | private String userno; |
| | | |
| | | /** ç³è¯·äººå§å */ |
| | | @ApiModelProperty("ç³è¯·äººå§å") |
| | | @Excel(name = "ç³è¯·äººå§å") |
| | | private String username; |
| | | |
| | | /** å·¥ä½åä½ */ |
| | | @ApiModelProperty("å·¥ä½åä½") |
| | | @Excel(name = "å·¥ä½åä½") |
| | | private String unitname; |
| | | |
| | | /** å·¥ä½åä½ç¼å· */ |
| | | @ApiModelProperty("å·¥ä½åä½ç¼å·") |
| | | @Excel(name = "å·¥ä½åä½ç¼å·") |
| | | private String unitno; |
| | | |
| | | /** å·¥ä½åä½ç¨æ·ç¼å· */ |
| | | @ApiModelProperty("å·¥ä½åä½ç¨æ·ç¼å·") |
| | | @Excel(name = "å·¥ä½åä½ç¨æ·ç¼å·") |
| | | private String unituserno; |
| | | |
| | | /** å®¶å±èç³»çµè¯ */ |
| | | @ApiModelProperty("å®¶å±èç³»çµè¯") |
| | | @Excel(name = "å®¶å±èç³»çµè¯") |
| | | private String phone; |
| | | |
| | | /** é¶è¡å¡ç
§çè·¯å¾ å¤ä¸ªç¨;åå¼ */ |
| | | @ApiModelProperty("é¶è¡å¡ç
§çè·¯å¾ å¤ä¸ªç¨;åå¼") |
| | | @Excel(name = "é¶è¡å¡ç
§çè·¯å¾ å¤ä¸ªç¨;åå¼") |
| | | private String annexbankcard; |
| | | |
| | | /** ç»è®°è¡¨ç
§çè·¯å¾ å¤ä¸ªç¨;åå¼ */ |
| | | @ApiModelProperty("ç»è®°è¡¨ç
§çè·¯å¾ å¤ä¸ªç¨;åå¼") |
| | | @Excel(name = "ç»è®°è¡¨ç
§çè·¯å¾ å¤ä¸ªç¨;åå¼") |
| | | private String annexregistform; |
| | | |
| | | /** ç¨åéé¢å计 */ |
| | | @ApiModelProperty("ç¨åéé¢å计") |
| | | @Excel(name = "ç¨åéé¢å计") |
| | | private BigDecimal pretaxcost; |
| | | |
| | | /** ç¨åéé¢å计 */ |
| | | @ApiModelProperty("ç¨åéé¢å计") |
| | | @Excel(name = "ç¨åéé¢å计") |
| | | private BigDecimal taxedcost; |
| | | |
| | | /** è´¹ç¨æ»éé¢ */ |
| | | @ApiModelProperty("è´¹ç¨æ»éé¢") |
| | | @Excel(name = "è´¹ç¨æ»éé¢") |
| | | private BigDecimal totalcost; |
| | | |
| | | /** è·åä¸å®¶æ»è´¹ç¨ */ |
| | | @ApiModelProperty("è·åä¸å®¶æ»è´¹ç¨") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | //@TableId(type = IdType.AUTO) |
| | | private BigDecimal procurementcost; |
| | | |
| | | /** ä¸å®¶è´¹ç¨æ»éé¢ */ |
| | | @ApiModelProperty("ä¸å®¶è´¹ç¨æ»éé¢") |
| | | @Excel(name = "ä¸å®¶è´¹ç¨æ»éé¢") |
| | | private BigDecimal expertcost; |
| | | |
| | | /** 伦ç审æ¥è´¹ç¨æ»éé¢ */ |
| | | @ApiModelProperty("伦ç审æ¥è´¹ç¨æ»éé¢") |
| | | @Excel(name = "伦ç审æ¥è´¹ç¨æ»éé¢") |
| | | private BigDecimal ethicscost; |
| | | |
| | | /** æç®è
å»å¦ææ¬æ»éé¢ */ |
| | | @ApiModelProperty("æç®è
å»å¦ææ¬æ»éé¢") |
| | | @Excel(name = "æç®è
å»å¦ææ¬æ»éé¢") |
| | | private BigDecimal medicalcost; |
| | | |
| | | /** æç®è
å®¶å±é£å®¿è´¹æ»éé¢ */ |
| | | @ApiModelProperty("æç®è
å®¶å±é£å®¿è´¹æ»éé¢") |
| | | @Excel(name = "æç®è
å®¶å±é£å®¿è´¹æ»éé¢") |
| | | private BigDecimal familycost; |
| | | |
| | | /** æç®è
ååææ¬æ»éé¢ */ |
| | | @ApiModelProperty("æç®è
ååææ¬æ»éé¢") |
| | | @Excel(name = "æç®è
ååææ¬æ»éé¢") |
| | | private BigDecimal aftercarecost; |
| | | |
| | | /** ç³è¯·éé¢ */ |
| | | @ApiModelProperty("ç³è¯·éé¢") |
| | | @Excel(name = "ç³è¯·éé¢") |
| | | private BigDecimal amountrequested; |
| | | |
| | | /** èµéç±»å« è§åå
¸sys_ConsolationType */ |
| | | @ApiModelProperty("èµéç±»å« è§åå
¸sys_ConsolationType") |
| | | @Excel(name = "èµéç±»å« è§åå
¸sys_ConsolationType") |
| | | private String applytype; |
| | | |
| | | /** 颿¯è´¹ç¨ */ |
| | | @ApiModelProperty("颿¯è´¹ç¨") |
| | | @Excel(name = "颿¯è´¹ç¨") |
| | | private BigDecimal prepaidamount; |
| | | |
| | | /** åç¥¨å¼ æ° */ |
| | | @ApiModelProperty("åç¥¨å¼ æ°") |
| | | @Excel(name = "åç¥¨å¼ æ°") |
| | | private Long invoicecount; |
| | | |
| | | /** éä»¶æ° */ |
| | | @ApiModelProperty("éä»¶æ°") |
| | | @Excel(name = "éä»¶æ°") |
| | | private Long attachcount; |
| | | |
| | | /** é¨é¨ä¸»ç®¡å·¥å· */ |
| | | @ApiModelProperty("é¨é¨ä¸»ç®¡å·¥å·") |
| | | @Excel(name = "é¨é¨ä¸»ç®¡å·¥å·") |
| | | private String managerno; |
| | | |
| | | /** é¨é¨ä¸»ç®¡åå */ |
| | | @ApiModelProperty("é¨é¨ä¸»ç®¡åå") |
| | | @Excel(name = "é¨é¨ä¸»ç®¡åå") |
| | | private String managername; |
| | | |
| | | /** é¨é¨ç¼å· */ |
| | | @ApiModelProperty("é¨é¨ç¼å·") |
| | | @Excel(name = "é¨é¨ç¼å·") |
| | | private String deptmentno; |
| | | |
| | | /** é¨é¨åç§° */ |
| | | @ApiModelProperty("é¨é¨åç§°") |
| | | @Excel(name = "é¨é¨åç§°") |
| | | private String deptmentname; |
| | | |
| | | /** ä¸å¿ç¾å */ |
| | | @ApiModelProperty("ä¸å¿ç¾å") |
| | | @Excel(name = "ä¸å¿ç¾å") |
| | | private String opochecker; |
| | | |
| | | /** è´¢å¡å¯é¢é¿ç¾å */ |
| | | @ApiModelProperty("è´¢å¡å¯é¢é¿ç¾å") |
| | | @Excel(name = "è´¢å¡å¯é¢é¿ç¾å") |
| | | private String finvicepresident; |
| | | |
| | | /** ä¸å¡å¯é¢é¿ç¾å */ |
| | | @ApiModelProperty("ä¸å¡å¯é¢é¿ç¾å") |
| | | @Excel(name = "ä¸å¡å¯é¢é¿ç¾å") |
| | | private String busvicepresident; |
| | | |
| | | /** åå
¬å®¤ä¸»ä»»ç¾å */ |
| | | @ApiModelProperty("åå
¬å®¤ä¸»ä»»ç¾å") |
| | | @Excel(name = "åå
¬å®¤ä¸»ä»»ç¾å") |
| | | private String officedirector; |
| | | |
| | | /** è´¢å¡å®¤ä¸»ä»»ç¾å */ |
| | | @ApiModelProperty("è´¢å¡å®¤ä¸»ä»»ç¾å") |
| | | @Excel(name = "è´¢å¡å®¤ä¸»ä»»ç¾å") |
| | | private String financedirector; |
| | | |
| | | /** è´¢å¡å®¡æ ¸ */ |
| | | @ApiModelProperty("è´¢å¡å®¡æ ¸") |
| | | @Excel(name = "è´¢å¡å®¡æ ¸") |
| | | private String financechecher; |
| | | |
| | | /** åæ¾ç¶æ */ |
| | | @ApiModelProperty("åæ¾ç¶æ") |
| | | @Excel(name = "åæ¾ç¶æ") |
| | | private String isdistribute; |
| | | |
| | | /** è®°å½ç¶æ */ |
| | | @ApiModelProperty("è®°å½ç¶æ") |
| | | @Excel(name = "è®°å½ç¶æ") |
| | | private Integer recordstatus; |
| | | |
| | | /** ä¸ä¼ æ å¿ */ |
| | | @ApiModelProperty("ä¸ä¼ æ å¿") |
| | | @Excel(name = "ä¸ä¼ æ å¿") |
| | | private String uploadflag; |
| | | |
| | | /** ä¸ä¼ æ¶é´ */ |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "ä¸ä¼ æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date uploadtime; |
| | | |
| | | /** å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç */ |
| | | @ApiModelProperty("å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç") |
| | | @Excel(name = "å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç") |
| | | private Long flowlevel; |
| | | |
| | | /** 对æ¥ç³»ç»è¡¨åid */ |
| | | @ApiModelProperty("对æ¥ç³»ç»è¡¨åid") |
| | | @Excel(name = "对æ¥ç³»ç»è¡¨åid") |
| | | private String oaid; |
| | | |
| | | /** 对æ¥ç³»ç»è¡¨åç¶æ */ |
| | | @ApiModelProperty("对æ¥ç³»ç»è¡¨åç¶æ") |
| | | @Excel(name = "对æ¥ç³»ç»è¡¨åç¶æ") |
| | | private String oabdzt; |
| | | |
| | | /** è´¢å¡æ¥å£è¿åçæä»¶åç§° */ |
| | | @ApiModelProperty("è´¢å¡æ¥å£è¿åçæä»¶åç§°") |
| | | @Excel(name = "è´¢å¡æ¥å£è¿åçæä»¶åç§°") |
| | | private String filename; |
| | | |
| | | /** è´¢å¡æ¥å£è¿åçæä»¶åç§° */ |
| | | @ApiModelProperty("è´¢å¡æ¥å£è¿åçæä»¶åç§°") |
| | | @Excel(name = "è´¢å¡æ¥å£è¿åçæä»¶åç§°") |
| | | private String fileid; |
| | | |
| | | } |
| | | |
| | |
| | | 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.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ¥éç³è¯·å¯¹è±¡ service_reimbursement |
| | |
| | | @ApiModelProperty("æ»éé¢ç大å") |
| | | private String bigstrmoney; |
| | | |
| | | /** éä»¶å°åï¼add by yangjb 20221124 */ |
| | | @ApiModelProperty("éä»¶å°å") |
| | | private String fileurl; |
| | | |
| | | private String remark; |
| | | |
| | | /** å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç */ |
| | | @ApiModelProperty("å½åå®¡æ ¸çº§å«") |
| | | private int flowlevel; |
| | | private Long flowlevel; |
| | | |
| | | |
| | | /** è´¹ç¨å½å±ï¼0ï¼å
¶ä»äººåï¼1ï¼ä¸è人åï¼2ï¼åè°åï¼3ï¼ä¸å®¶ï¼4ï¼æç®è
å®¶å± */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ¥éç³è¯·å¯¹è±¡ service_reimbursement_shared |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-01-10 |
| | | */ |
| | | @Data |
| | | @ApiModel("æ¥éç³è¯·") |
| | | public class ServiceReimbursementShared extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | @ApiModelProperty("$column.columnComment") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** æ¥é人ç¼å· */ |
| | | @ApiModelProperty("æ¥é人ç¼å·") |
| | | @Excel(name = "æ¥é人ç¼å·") |
| | | private String userno; |
| | | |
| | | /** æ¥é人å§å */ |
| | | @ApiModelProperty("æ¥é人å§å") |
| | | @Excel(name = "æ¥é人å§å") |
| | | private String username; |
| | | |
| | | /** åºå·®äººå */ |
| | | @ApiModelProperty("åºå·®äººå") |
| | | @Excel(name = "åºå·®äººå") |
| | | private String travelers; |
| | | |
| | | /** è¯ä»¶ç±»å æ ¹æ®åå
¸sys_IDType */ |
| | | @ApiModelProperty("è¯ä»¶ç±»å æ ¹æ®åå
¸sys_IDType") |
| | | @Excel(name = "è¯ä»¶ç±»å æ ¹æ®åå
¸sys_IDType") |
| | | private String idcardtype; |
| | | |
| | | /** è¯ä»¶å·ç */ |
| | | @ApiModelProperty("è¯ä»¶å·ç ") |
| | | @Excel(name = "è¯ä»¶å·ç ") |
| | | private String idcardno; |
| | | |
| | | /** èç³»çµè¯ */ |
| | | @ApiModelProperty("èç³»çµè¯") |
| | | @Excel(name = "èç³»çµè¯") |
| | | private String phone; |
| | | |
| | | /** 弿·é¶è¡ */ |
| | | @ApiModelProperty("弿·é¶è¡") |
| | | @Excel(name = "弿·é¶è¡") |
| | | private String depositbank; |
| | | |
| | | /** å¡å· */ |
| | | @ApiModelProperty("å¡å·") |
| | | @Excel(name = "å¡å·") |
| | | private String bankcardno; |
| | | |
| | | /** åè¡åç§° */ |
| | | @ApiModelProperty("åè¡åç§°") |
| | | @Excel(name = "åè¡åç§°") |
| | | private String branchbankname; |
| | | |
| | | /** é¶è¡å¡ç
§çè·¯å¾ å¤ä¸ªç¨;åå¼ */ |
| | | @ApiModelProperty("é¶è¡å¡ç
§çè·¯å¾ å¤ä¸ªç¨;åå¼") |
| | | @Excel(name = "é¶è¡å¡ç
§çè·¯å¾ å¤ä¸ªç¨;åå¼") |
| | | private String annexbankcard; |
| | | |
| | | /** éä»¶è·¯å¾ å¤ä¸ªç¨;åå¼ */ |
| | | @ApiModelProperty("éä»¶è·¯å¾ å¤ä¸ªç¨;åå¼") |
| | | @Excel(name = "éä»¶è·¯å¾ å¤ä¸ªç¨;åå¼") |
| | | private String annexfiles; |
| | | |
| | | /** ç³è¯·éé¢ */ |
| | | @ApiModelProperty("ç³è¯·éé¢") |
| | | @Excel(name = "ç³è¯·éé¢") |
| | | private BigDecimal amountrequested; |
| | | |
| | | /** 颿¯è´¹ç¨ */ |
| | | @ApiModelProperty("颿¯è´¹ç¨") |
| | | @Excel(name = "颿¯è´¹ç¨") |
| | | private BigDecimal prepaidamount; |
| | | |
| | | /** åç¥¨å¼ æ° */ |
| | | @ApiModelProperty("åç¥¨å¼ æ°") |
| | | @Excel(name = "åç¥¨å¼ æ°") |
| | | private Long invoicecount; |
| | | |
| | | /** éä»¶æ° */ |
| | | @ApiModelProperty("éä»¶æ°") |
| | | @Excel(name = "éä»¶æ°") |
| | | private Long attachcount; |
| | | |
| | | /** é¨é¨ä¸»ç®¡å·¥å· */ |
| | | @ApiModelProperty("é¨é¨ä¸»ç®¡å·¥å·") |
| | | @Excel(name = "é¨é¨ä¸»ç®¡å·¥å·") |
| | | private String managerno; |
| | | |
| | | /** é¨é¨ä¸»ç®¡åå */ |
| | | @ApiModelProperty("é¨é¨ä¸»ç®¡åå") |
| | | @Excel(name = "é¨é¨ä¸»ç®¡åå") |
| | | private String managername; |
| | | |
| | | /** é¨é¨ç¼å· */ |
| | | @ApiModelProperty("é¨é¨ç¼å·") |
| | | @Excel(name = "é¨é¨ç¼å·") |
| | | private String deptmentno; |
| | | |
| | | /** é¨é¨åç§° */ |
| | | @ApiModelProperty("é¨é¨åç§°") |
| | | @Excel(name = "é¨é¨åç§°") |
| | | private String deptmentname; |
| | | |
| | | /** ä¸å¿ç¾å */ |
| | | @ApiModelProperty("ä¸å¿ç¾å") |
| | | @Excel(name = "ä¸å¿ç¾å") |
| | | private String opochecker; |
| | | |
| | | /** è´¢å¡å¯é¢é¿ç¾å */ |
| | | @ApiModelProperty("è´¢å¡å¯é¢é¿ç¾å") |
| | | @Excel(name = "è´¢å¡å¯é¢é¿ç¾å") |
| | | private String finvicepresident; |
| | | |
| | | /** ä¸å¡å¯é¢é¿ç¾å */ |
| | | @ApiModelProperty("ä¸å¡å¯é¢é¿ç¾å") |
| | | @Excel(name = "ä¸å¡å¯é¢é¿ç¾å") |
| | | private String busvicepresident; |
| | | |
| | | /** åå
¬å®¤ä¸»ä»»ç¾å */ |
| | | @ApiModelProperty("åå
¬å®¤ä¸»ä»»ç¾å") |
| | | @Excel(name = "åå
¬å®¤ä¸»ä»»ç¾å") |
| | | private String officedirector; |
| | | |
| | | /** è´¢å¡å®¤ä¸»ä»»ç¾å */ |
| | | @ApiModelProperty("è´¢å¡å®¤ä¸»ä»»ç¾å") |
| | | @Excel(name = "è´¢å¡å®¤ä¸»ä»»ç¾å") |
| | | private String financedirector; |
| | | |
| | | /** è´¢å¡å®¡æ ¸ */ |
| | | @ApiModelProperty("è´¢å¡å®¡æ ¸") |
| | | @Excel(name = "è´¢å¡å®¡æ ¸") |
| | | private String financechecher; |
| | | |
| | | /** å
³èservice_donatebaseinfo表çID */ |
| | | @ApiModelProperty("å
³èservice_donatebaseinfo表çID") |
| | | @Excel(name = "å
³èservice_donatebaseinfo表çID") |
| | | private Long infoid; |
| | | |
| | | /** æç®è
ç¼å· */ |
| | | @ApiModelProperty("æç®è
ç¼å·") |
| | | @Excel(name = "æç®è
ç¼å·") |
| | | private String donorno; |
| | | |
| | | /** æç®è
å§å */ |
| | | @ApiModelProperty("æç®è
å§å") |
| | | @Excel(name = "æç®è
å§å") |
| | | private String donorname; |
| | | |
| | | /** äºç± */ |
| | | @ApiModelProperty("äºç±") |
| | | @Excel(name = "äºç±") |
| | | private String reason; |
| | | |
| | | /** è®°å½ç¶æ 详è§åå
¸sys_travelexpensestatus */ |
| | | @ApiModelProperty("è®°å½ç¶æ 详è§åå
¸sys_travelexpensestatus") |
| | | @Excel(name = "è®°å½ç¶æ 详è§åå
¸sys_travelexpensestatus") |
| | | private Integer recordstatus; |
| | | |
| | | /** ä¸ä¼ æ å¿ */ |
| | | @ApiModelProperty("ä¸ä¼ æ å¿") |
| | | @Excel(name = "ä¸ä¼ æ å¿") |
| | | private String uploadflag; |
| | | |
| | | /** ä¸ä¼ æ¶é´ */ |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "ä¸ä¼ æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date uploadtime; |
| | | |
| | | /** æ»éé¢ */ |
| | | @ApiModelProperty("æ»éé¢") |
| | | @Excel(name = "æ»éé¢") |
| | | private BigDecimal totalamount; |
| | | |
| | | /** æ»éé¢ç大å */ |
| | | @ApiModelProperty("æ»éé¢ç大å") |
| | | @Excel(name = "æ»éé¢ç大å") |
| | | private String bigstrmoney; |
| | | |
| | | /** å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç */ |
| | | @ApiModelProperty("å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç") |
| | | @Excel(name = "å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç") |
| | | private Long flowlevel; |
| | | |
| | | /** è´¹ç¨å½å±ï¼åå
¸è¡¨ï¼sys_travelexpensebelongï¼ï¼0ï¼å
¶ä»äººåï¼1ï¼ä¸è人åï¼2ï¼åè°åï¼3ï¼ä¸å®¶ï¼4ï¼æç®è
å®¶å± */ |
| | | @ApiModelProperty("è´¹ç¨å½å±ï¼åå
¸è¡¨ï¼sys_travelexpensebelongï¼ï¼0ï¼å
¶ä»äººåï¼1ï¼ä¸è人åï¼2ï¼åè°åï¼3ï¼ä¸å®¶ï¼4ï¼æç®è
å®¶å±") |
| | | @Excel(name = "è´¹ç¨å½å±", readConverterExp = "å=å
¸è¡¨ï¼sys_travelexpensebelong") |
| | | private String costtype; |
| | | |
| | | /** $column.columnComment */ |
| | | @ApiModelProperty("$column.columnComment") |
| | | @Excel(name = "è´¹ç¨å½å±", readConverterExp = "$column.readConverterExp()") |
| | | private String costtypename; |
| | | |
| | | /** 对æ¥ç³»ç»ç表åid */ |
| | | @ApiModelProperty("对æ¥ç³»ç»ç表åid") |
| | | @Excel(name = "对æ¥ç³»ç»ç表åid") |
| | | private String oaid; |
| | | |
| | | /** 对æ¥ç³»ç»ç表åç¶æ */ |
| | | @ApiModelProperty("对æ¥ç³»ç»ç表åç¶æ") |
| | | @Excel(name = "对æ¥ç³»ç»ç表åç¶æ") |
| | | private String oabdzt; |
| | | |
| | | /** éä»¶å°åï¼add by yangjb 20230109 */ |
| | | @ApiModelProperty("éä»¶å°å") |
| | | private String fileurl; |
| | | |
| | | /** è´¢å¡æ¥å£è¿åçæä»¶åç§° */ |
| | | @ApiModelProperty("è´¢å¡æ¥å£è¿åçæä»¶åç§°") |
| | | @Excel(name = "è´¢å¡æ¥å£è¿åçæä»¶åç§°") |
| | | private String filename; |
| | | |
| | | /** è´¢å¡æ¥å£è¿åçæä»¶åç§° */ |
| | | @ApiModelProperty("è´¢å¡æ¥å£è¿åçæä»¶åç§°") |
| | | @Excel(name = "è´¢å¡æ¥å£è¿åçæä»¶åç§°") |
| | | private String fileid; |
| | | |
| | | /** service reimbursementçä¸»é® */ |
| | | @ApiModelProperty("service reimbursementçid") |
| | | private Long reimid; |
| | | |
| | | @ApiModelProperty("å 餿 è¯") |
| | | private Long delFlag; |
| | | |
| | | } |
| | | |
| | |
| | | private Date update_time; |
| | | private String abandonreason; |
| | | private String reallocationreason; |
| | | private String leaderno; |
| | | private String leadername; |
| | | private String businessarea; |
| | | private String gainHospitalname; |
| | | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date startorgangettime; |
| | | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date endorgangettime; |
| | | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date starttransplanttime; |
| | | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date endtransplanttime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | //package com.ruoyi.system.mapper; |
| | | package com.ruoyi.project.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.project.domain.ServiceFundShared; |
| | | |
| | | import java.util.List; |
| | | |
| | | //import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | //import com.ruoyi.system.domain.ServiceFundShared; |
| | | |
| | | /** |
| | | * è´¹ç¨ç³è¯·ä¸»Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-01-10 |
| | | */ |
| | | public interface ServiceFundSharedMapper extends BaseMapper<ServiceFundShared> |
| | | { |
| | | /** |
| | | * æ¥è¯¢è´¹ç¨ç³è¯·ä¸»å表 |
| | | * |
| | | * @param serviceFundShared è´¹ç¨ç³è¯·ä¸» |
| | | * @return è´¹ç¨ç³è¯·ä¸»éå |
| | | */ |
| | | public List<ServiceFundShared> selectServiceFundSharedList(ServiceFundShared serviceFundShared); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.mapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.project.domain.ServiceReimbursementShared; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | |
| | | /** |
| | | * æ¥éç³è¯·Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-01-10 |
| | | */ |
| | | public interface ServiceReimbursementSharedMapper extends BaseMapper<ServiceReimbursementShared> |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¥éç³è¯·å表 |
| | | * |
| | | * @param serviceReimbursementShared æ¥éç³è¯· |
| | | * @return æ¥éç³è¯·éå |
| | | */ |
| | | public List<ServiceReimbursementShared> selectServiceReimbursementSharedList(ServiceReimbursementShared serviceReimbursementShared); |
| | | |
| | | List<ServiceReimbursementShared> getRemShareInfoByRemId(Long RemId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.project.domain.ServiceFundShared; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¹ç¨ç³è¯·ä¸»Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-01-10 |
| | | */ |
| | | public interface IServiceFundSharedService extends IService<ServiceFundShared> |
| | | { |
| | | |
| | | /** |
| | | * æ¥è¯¢è´¹ç¨ç³è¯·ä¸»å表 |
| | | * |
| | | * @param serviceFundShared è´¹ç¨ç³è¯·ä¸» |
| | | * @return è´¹ç¨ç³è¯·ä¸»éå |
| | | */ |
| | | public List<ServiceFundShared> queryList(ServiceFundShared serviceFundShared); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.project.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.project.domain.ServiceReimbursementShared; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥éç³è¯·Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-01-10 |
| | | */ |
| | | public interface IServiceReimbursementSharedService extends IService<ServiceReimbursementShared> |
| | | { |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¥éç³è¯·å表 |
| | | * |
| | | * @param serviceReimbursementShared æ¥éç³è¯· |
| | | * @return æ¥éç³è¯·éå |
| | | */ |
| | | public List<ServiceReimbursementShared> queryList(ServiceReimbursementShared serviceReimbursementShared); |
| | | List<ServiceReimbursementShared> getRemShareInfoByRemId(Long remeid); |
| | | } |
| | |
| | | package com.ruoyi.project.service.impl; |
| | | |
| | | import java.sql.Time; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.BasePrcaddressDict; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.common.core.domain.entity.SysRole; |
| | | 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.*; |
| | | import com.ruoyi.project.domain.vo.*; |
| | | import com.ruoyi.project.mapper.*; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.core.parameters.P; |
| | | 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 com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.project.domain.*; |
| | | import com.ruoyi.project.domain.vo.*; |
| | | import com.ruoyi.project.mapper.*; |
| | | import com.ruoyi.project.service.IServiceDonateorganService; |
| | | import com.ruoyi.system.mapper.SysDictDataMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * æç®å¨å®ç®¡çServiceä¸å¡å±å¤ç |
| | |
| | | int countDBCD = 0; |
| | | for(ServiceDonateorgan l : list){ |
| | | Long InfoId = l.getInfoid(); |
| | | |
| | | String category = serviceDonationwitnessMapper.getDonationCategoryByInfoId(InfoId); |
| | | if(category != null && category.equals("DBD")){ |
| | | countDBD += 1; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.ServiceFundShared; |
| | | import com.ruoyi.project.mapper.ServiceFundSharedMapper; |
| | | import com.ruoyi.project.service.IServiceFundSharedService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¹ç¨ç³è¯·ä¸»Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-01-10 |
| | | */ |
| | | @Service |
| | | public class ServiceFundSharedServiceImpl extends ServiceImpl<ServiceFundSharedMapper, ServiceFundShared> implements IServiceFundSharedService |
| | | { |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢è´¹ç¨ç³è¯·ä¸»å表 |
| | | * |
| | | * @param serviceFundShared è´¹ç¨ç³è¯·ä¸» |
| | | * @return è´¹ç¨ç³è¯·ä¸» |
| | | */ |
| | | @Override |
| | | public List<ServiceFundShared> queryList(ServiceFundShared serviceFundShared) { |
| | | LambdaQueryWrapper<ServiceFundShared> wrappers = Wrappers.lambdaQuery(); |
| | | if (serviceFundShared.getInfoid() != null){ |
| | | wrappers.eq(ServiceFundShared::getInfoid ,serviceFundShared.getInfoid()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getDonorno())){ |
| | | wrappers.eq(ServiceFundShared::getDonorno ,serviceFundShared.getDonorno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getDonorname())){ |
| | | wrappers.like(ServiceFundShared::getDonorname ,serviceFundShared.getDonorname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getUserno())){ |
| | | wrappers.eq(ServiceFundShared::getUserno ,serviceFundShared.getUserno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getUsername())){ |
| | | wrappers.like(ServiceFundShared::getUsername ,serviceFundShared.getUsername()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getUnitname())){ |
| | | wrappers.like(ServiceFundShared::getUnitname ,serviceFundShared.getUnitname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getUnitno())){ |
| | | wrappers.eq(ServiceFundShared::getUnitno ,serviceFundShared.getUnitno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getUnituserno())){ |
| | | wrappers.eq(ServiceFundShared::getUnituserno ,serviceFundShared.getUnituserno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getPhone())){ |
| | | wrappers.eq(ServiceFundShared::getPhone ,serviceFundShared.getPhone()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getAnnexbankcard())){ |
| | | wrappers.eq(ServiceFundShared::getAnnexbankcard ,serviceFundShared.getAnnexbankcard()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getAnnexregistform())){ |
| | | wrappers.eq(ServiceFundShared::getAnnexregistform ,serviceFundShared.getAnnexregistform()); |
| | | } |
| | | if (serviceFundShared.getPretaxcost() != null){ |
| | | wrappers.eq(ServiceFundShared::getPretaxcost ,serviceFundShared.getPretaxcost()); |
| | | } |
| | | if (serviceFundShared.getTaxedcost() != null){ |
| | | wrappers.eq(ServiceFundShared::getTaxedcost ,serviceFundShared.getTaxedcost()); |
| | | } |
| | | if (serviceFundShared.getTotalcost() != null){ |
| | | wrappers.eq(ServiceFundShared::getTotalcost ,serviceFundShared.getTotalcost()); |
| | | } |
| | | if (serviceFundShared.getExpertcost() != null){ |
| | | wrappers.eq(ServiceFundShared::getExpertcost ,serviceFundShared.getExpertcost()); |
| | | } |
| | | if (serviceFundShared.getEthicscost() != null){ |
| | | wrappers.eq(ServiceFundShared::getEthicscost ,serviceFundShared.getEthicscost()); |
| | | } |
| | | if (serviceFundShared.getMedicalcost() != null){ |
| | | wrappers.eq(ServiceFundShared::getMedicalcost ,serviceFundShared.getMedicalcost()); |
| | | } |
| | | if (serviceFundShared.getFamilycost() != null){ |
| | | wrappers.eq(ServiceFundShared::getFamilycost ,serviceFundShared.getFamilycost()); |
| | | } |
| | | if (serviceFundShared.getAftercarecost() != null){ |
| | | wrappers.eq(ServiceFundShared::getAftercarecost ,serviceFundShared.getAftercarecost()); |
| | | } |
| | | if (serviceFundShared.getAmountrequested() != null){ |
| | | wrappers.eq(ServiceFundShared::getAmountrequested ,serviceFundShared.getAmountrequested()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getApplytype())){ |
| | | wrappers.eq(ServiceFundShared::getApplytype ,serviceFundShared.getApplytype()); |
| | | } |
| | | if (serviceFundShared.getPrepaidamount() != null){ |
| | | wrappers.eq(ServiceFundShared::getPrepaidamount ,serviceFundShared.getPrepaidamount()); |
| | | } |
| | | if (serviceFundShared.getInvoicecount() != null){ |
| | | wrappers.eq(ServiceFundShared::getInvoicecount ,serviceFundShared.getInvoicecount()); |
| | | } |
| | | if (serviceFundShared.getAttachcount() != null){ |
| | | wrappers.eq(ServiceFundShared::getAttachcount ,serviceFundShared.getAttachcount()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getManagerno())){ |
| | | wrappers.eq(ServiceFundShared::getManagerno ,serviceFundShared.getManagerno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getManagername())){ |
| | | wrappers.like(ServiceFundShared::getManagername ,serviceFundShared.getManagername()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getDeptmentno())){ |
| | | wrappers.eq(ServiceFundShared::getDeptmentno ,serviceFundShared.getDeptmentno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getDeptmentname())){ |
| | | wrappers.like(ServiceFundShared::getDeptmentname ,serviceFundShared.getDeptmentname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getOpochecker())){ |
| | | wrappers.eq(ServiceFundShared::getOpochecker ,serviceFundShared.getOpochecker()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getFinvicepresident())){ |
| | | wrappers.eq(ServiceFundShared::getFinvicepresident ,serviceFundShared.getFinvicepresident()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getBusvicepresident())){ |
| | | wrappers.eq(ServiceFundShared::getBusvicepresident ,serviceFundShared.getBusvicepresident()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getOfficedirector())){ |
| | | wrappers.eq(ServiceFundShared::getOfficedirector ,serviceFundShared.getOfficedirector()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getFinancedirector())){ |
| | | wrappers.eq(ServiceFundShared::getFinancedirector ,serviceFundShared.getFinancedirector()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getFinancechecher())){ |
| | | wrappers.eq(ServiceFundShared::getFinancechecher ,serviceFundShared.getFinancechecher()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getRemark())){ |
| | | wrappers.eq(ServiceFundShared::getRemark ,serviceFundShared.getRemark()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getIsdistribute())){ |
| | | wrappers.eq(ServiceFundShared::getIsdistribute ,serviceFundShared.getIsdistribute()); |
| | | } |
| | | if (serviceFundShared.getRecordstatus() != null){ |
| | | wrappers.eq(ServiceFundShared::getRecordstatus ,serviceFundShared.getRecordstatus()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getUploadflag())){ |
| | | wrappers.eq(ServiceFundShared::getUploadflag ,serviceFundShared.getUploadflag()); |
| | | } |
| | | if (serviceFundShared.getUploadtime() != null){ |
| | | wrappers.eq(ServiceFundShared::getUploadtime ,serviceFundShared.getUploadtime()); |
| | | } |
| | | if (serviceFundShared.getFlowlevel() != null){ |
| | | wrappers.eq(ServiceFundShared::getFlowlevel ,serviceFundShared.getFlowlevel()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getOaid())){ |
| | | wrappers.eq(ServiceFundShared::getOaid ,serviceFundShared.getOaid()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getOabdzt())){ |
| | | wrappers.eq(ServiceFundShared::getOabdzt ,serviceFundShared.getOabdzt()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getFilename())){ |
| | | wrappers.like(ServiceFundShared::getFilename ,serviceFundShared.getFilename()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceFundShared.getFileid())){ |
| | | wrappers.eq(ServiceFundShared::getFileid ,serviceFundShared.getFileid()); |
| | | } |
| | | 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.ServiceReimbursementShared; |
| | | import com.ruoyi.project.mapper.ServiceReimbursementSharedMapper; |
| | | import com.ruoyi.project.service.IServiceReimbursementSharedService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥éç³è¯·Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-01-10 |
| | | */ |
| | | @Service |
| | | public class ServiceReimbursementSharedServiceImpl extends ServiceImpl<ServiceReimbursementSharedMapper, ServiceReimbursementShared> implements IServiceReimbursementSharedService |
| | | { |
| | | |
| | | |
| | | @Autowired |
| | | ServiceReimbursementSharedMapper serviceReimbursementSharedMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¥éç³è¯·å表 |
| | | * |
| | | * @param serviceReimbursementShared æ¥éç³è¯· |
| | | * @return æ¥éç³è¯· |
| | | */ |
| | | @Override |
| | | public List<ServiceReimbursementShared> queryList(ServiceReimbursementShared serviceReimbursementShared) { |
| | | LambdaQueryWrapper<ServiceReimbursementShared> wrappers = Wrappers.lambdaQuery(); |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getUserno())){ |
| | | wrappers.eq(ServiceReimbursementShared::getUserno ,serviceReimbursementShared.getUserno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getUsername())){ |
| | | wrappers.like(ServiceReimbursementShared::getUsername ,serviceReimbursementShared.getUsername()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getTravelers())){ |
| | | wrappers.eq(ServiceReimbursementShared::getTravelers ,serviceReimbursementShared.getTravelers()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getIdcardtype())){ |
| | | wrappers.eq(ServiceReimbursementShared::getIdcardtype ,serviceReimbursementShared.getIdcardtype()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getIdcardno())){ |
| | | wrappers.eq(ServiceReimbursementShared::getIdcardno ,serviceReimbursementShared.getIdcardno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getPhone())){ |
| | | wrappers.eq(ServiceReimbursementShared::getPhone ,serviceReimbursementShared.getPhone()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getDepositbank())){ |
| | | wrappers.eq(ServiceReimbursementShared::getDepositbank ,serviceReimbursementShared.getDepositbank()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getBankcardno())){ |
| | | wrappers.eq(ServiceReimbursementShared::getBankcardno ,serviceReimbursementShared.getBankcardno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getBranchbankname())){ |
| | | wrappers.like(ServiceReimbursementShared::getBranchbankname ,serviceReimbursementShared.getBranchbankname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getAnnexbankcard())){ |
| | | wrappers.eq(ServiceReimbursementShared::getAnnexbankcard ,serviceReimbursementShared.getAnnexbankcard()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getAnnexfiles())){ |
| | | wrappers.eq(ServiceReimbursementShared::getAnnexfiles ,serviceReimbursementShared.getAnnexfiles()); |
| | | } |
| | | if (serviceReimbursementShared.getAmountrequested() != null){ |
| | | wrappers.eq(ServiceReimbursementShared::getAmountrequested ,serviceReimbursementShared.getAmountrequested()); |
| | | } |
| | | if (serviceReimbursementShared.getPrepaidamount() != null){ |
| | | wrappers.eq(ServiceReimbursementShared::getPrepaidamount ,serviceReimbursementShared.getPrepaidamount()); |
| | | } |
| | | if (serviceReimbursementShared.getInvoicecount() != null){ |
| | | wrappers.eq(ServiceReimbursementShared::getInvoicecount ,serviceReimbursementShared.getInvoicecount()); |
| | | } |
| | | if (serviceReimbursementShared.getAttachcount() != null){ |
| | | wrappers.eq(ServiceReimbursementShared::getAttachcount ,serviceReimbursementShared.getAttachcount()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getManagerno())){ |
| | | wrappers.eq(ServiceReimbursementShared::getManagerno ,serviceReimbursementShared.getManagerno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getManagername())){ |
| | | wrappers.like(ServiceReimbursementShared::getManagername ,serviceReimbursementShared.getManagername()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getDeptmentno())){ |
| | | wrappers.eq(ServiceReimbursementShared::getDeptmentno ,serviceReimbursementShared.getDeptmentno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getDeptmentname())){ |
| | | wrappers.like(ServiceReimbursementShared::getDeptmentname ,serviceReimbursementShared.getDeptmentname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getOpochecker())){ |
| | | wrappers.eq(ServiceReimbursementShared::getOpochecker ,serviceReimbursementShared.getOpochecker()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getFinvicepresident())){ |
| | | wrappers.eq(ServiceReimbursementShared::getFinvicepresident ,serviceReimbursementShared.getFinvicepresident()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getBusvicepresident())){ |
| | | wrappers.eq(ServiceReimbursementShared::getBusvicepresident ,serviceReimbursementShared.getBusvicepresident()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getOfficedirector())){ |
| | | wrappers.eq(ServiceReimbursementShared::getOfficedirector ,serviceReimbursementShared.getOfficedirector()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getFinancedirector())){ |
| | | wrappers.eq(ServiceReimbursementShared::getFinancedirector ,serviceReimbursementShared.getFinancedirector()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getFinancechecher())){ |
| | | wrappers.eq(ServiceReimbursementShared::getFinancechecher ,serviceReimbursementShared.getFinancechecher()); |
| | | } |
| | | if (serviceReimbursementShared.getInfoid() != null){ |
| | | wrappers.eq(ServiceReimbursementShared::getInfoid ,serviceReimbursementShared.getInfoid()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getDonorno())){ |
| | | wrappers.eq(ServiceReimbursementShared::getDonorno ,serviceReimbursementShared.getDonorno()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getDonorname())){ |
| | | wrappers.like(ServiceReimbursementShared::getDonorname ,serviceReimbursementShared.getDonorname()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getReason())){ |
| | | wrappers.eq(ServiceReimbursementShared::getReason ,serviceReimbursementShared.getReason()); |
| | | } |
| | | if (serviceReimbursementShared.getRecordstatus() != null){ |
| | | wrappers.eq(ServiceReimbursementShared::getRecordstatus ,serviceReimbursementShared.getRecordstatus()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getUploadflag())){ |
| | | wrappers.eq(ServiceReimbursementShared::getUploadflag ,serviceReimbursementShared.getUploadflag()); |
| | | } |
| | | if (serviceReimbursementShared.getUploadtime() != null){ |
| | | wrappers.eq(ServiceReimbursementShared::getUploadtime ,serviceReimbursementShared.getUploadtime()); |
| | | } |
| | | if (serviceReimbursementShared.getTotalamount() != null){ |
| | | wrappers.eq(ServiceReimbursementShared::getTotalamount ,serviceReimbursementShared.getTotalamount()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getBigstrmoney())){ |
| | | wrappers.eq(ServiceReimbursementShared::getBigstrmoney ,serviceReimbursementShared.getBigstrmoney()); |
| | | } |
| | | if (serviceReimbursementShared.getFlowlevel() != null){ |
| | | wrappers.eq(ServiceReimbursementShared::getFlowlevel ,serviceReimbursementShared.getFlowlevel()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getCosttype())){ |
| | | wrappers.eq(ServiceReimbursementShared::getCosttype ,serviceReimbursementShared.getCosttype()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getCosttypename())){ |
| | | wrappers.like(ServiceReimbursementShared::getCosttypename ,serviceReimbursementShared.getCosttypename()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getOaid())){ |
| | | wrappers.eq(ServiceReimbursementShared::getOaid ,serviceReimbursementShared.getOaid()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getOabdzt())){ |
| | | wrappers.eq(ServiceReimbursementShared::getOabdzt ,serviceReimbursementShared.getOabdzt()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getFilename())){ |
| | | wrappers.like(ServiceReimbursementShared::getFilename ,serviceReimbursementShared.getFilename()); |
| | | } |
| | | if (StringUtils.isNotBlank(serviceReimbursementShared.getFileid())){ |
| | | wrappers.eq(ServiceReimbursementShared::getFileid ,serviceReimbursementShared.getFileid()); |
| | | } |
| | | return this.list(wrappers); |
| | | } |
| | | |
| | | @Override |
| | | public List<ServiceReimbursementShared> getRemShareInfoByRemId(Long remeid) |
| | | { |
| | | return serviceReimbursementSharedMapper.getRemShareInfoByRemId(remeid); |
| | | // return null; |
| | | } |
| | | |
| | | } |
| | |
| | | <result property="infophone" column="infoPhone" /> |
| | | <result property="deptid" column="deptid" /> |
| | | <result property="deptname" column="deptname" /> |
| | | <result property="leaderno" column="leaderno" /> |
| | | <result property="leadername" column="leadername" /> |
| | | <result property="businessarea" column="businessarea" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | <if test="city != null and city != ''"> and `base_organization`.`City` = #{city}</if> |
| | | <if test="deptid != null "> and deptid = #{deptid}</if> |
| | | <if test="deptname != null "> and deptname = #{deptname}</if> |
| | | <if test="leaderno != null "> and leaderno = #{leaderno}</if> |
| | | <if test="leadername != null "> and leadername = #{leadername}</if> |
| | | <if test="businessarea != null "> and businessarea = #{businessarea}</if> |
| | | </where> |
| | | |
| | | order by ReportTime desc |
| | |
| | | `service_donateorgan`.`create_by` AS `create_by`, |
| | | `service_donateorgan`.`create_time` AS `create_time`, |
| | | `service_donateorgan`.`update_by` AS `update_by`, |
| | | `service_donateorgan`.`update_time` AS `update_time` |
| | | `service_donateorgan`.`update_time` AS `update_time`, |
| | | `service_donatebaseinfo`.`leadername` AS `leadername`, |
| | | `service_donatebaseinfo`.`leaderno` AS `leaderno`, |
| | | `service_donatebaseinfo`.`businessarea` AS `businessarea` |
| | | FROM |
| | | ( |
| | | `service_donatebaseinfo` |
| | |
| | | <if test="transplanthospitalno != null and transplanthospitalno != ''"> and `service_donateorgan`.`TransplantHospitalNo` = #{transplanthospitalno}</if> |
| | | <if test="transplanthospitalname != null and transplanthospitalname != ''"> and `service_donateorgan`.`TransplantHospitalName` = #{transplanthospitalname}</if> |
| | | <if test="organstate != null and organstate != ''"> and `service_donateorgan`.`OrganState` = #{organstate}</if> |
| | | <if test="reportername != null and reportername != ''"> and `service_donatebaseinfo`.`ReporterName` = #{reportername}</if> |
| | | <if test="leadername != null and leadername != ''"> and `service_donatebaseinfo`.`leadername` = #{leadername}</if> |
| | | <if test="leaderno != null and leaderno != ''"> and `service_donatebaseinfo`.`leaderno` = #{leaderno}</if> |
| | | <if test="businessarea != null and businessarea != ''"> and `service_donatebaseinfo`.`businessarea` = #{businessarea}</if> |
| | | <if test="gainHospitalname != null and gainHospitalname != ''"> and `service_donateorgan`.`GainHospitalName` = #{gainHospitalname}</if> |
| | | <if test="treatmenthospitalname != null and treatmenthospitalname != ''"> and `service_donatebaseinfo`.`TreatmentHospitalName` = #{treatmenthospitalname}</if> |
| | | <if test="startorgangettime != null and endorgangettime != null "> and `service_donateorgan`.`OrganGetTime` >= #{startorgangettime} and `service_donateorgan`.`OrganGetTime` <= #{endorgangettime} </if> |
| | | <if test="starttransplanttime != null and endtransplanttime != null "> and `service_donateorgan`.`TransplantTime` >= #{starttransplanttime} and `service_donateorgan`.`TransplantTime` <= #{endtransplanttime}</if> |
| | | |
| | | </where> |
| | | </select> |
| | |
| | | </select> |
| | | <select id="getDonationCategoryByInfoId" resultType="java.lang.String"> |
| | | select DonationCategory from service_donationwitness |
| | | where InfoID = #{infoId} |
| | | where InfoID = #{infoId} and del_flag = 0 |
| | | </select> |
| | | <select id="countNumber" resultType="java.lang.Integer"> |
| | | select count(*) from service_donationwitness |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.ServiceFundSharedMapper"> |
| | | |
| | | <resultMap type="ServiceFundShared" id="ServiceFundSharedResult"> |
| | | <result property="id" column="ID" /> |
| | | <result property="infoid" column="InfoID" /> |
| | | <result property="donorno" column="DonorNo" /> |
| | | <result property="donorname" column="DonorName" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="userno" column="UserNo" /> |
| | | <result property="username" column="UserName" /> |
| | | <result property="unitname" column="UnitName" /> |
| | | <result property="unitno" column="UnitNo" /> |
| | | <result property="unituserno" column="UnitUserNo" /> |
| | | <result property="phone" column="Phone" /> |
| | | <result property="annexbankcard" column="AnnexBankCard" /> |
| | | <result property="annexregistform" column="AnnexRegistForm" /> |
| | | <result property="pretaxcost" column="PretaxCost" /> |
| | | <result property="taxedcost" column="TaxedCost" /> |
| | | <result property="totalcost" column="TotalCost" /> |
| | | <result property="procurementcost" column="ProcurementCost" /> |
| | | <result property="expertcost" column="ExpertCost" /> |
| | | <result property="ethicscost" column="EthicsCost" /> |
| | | <result property="medicalcost" column="MedicalCost" /> |
| | | <result property="familycost" column="FamilyCost" /> |
| | | <result property="aftercarecost" column="AftercareCost" /> |
| | | <result property="amountrequested" column="AmountRequested" /> |
| | | <result property="applytype" column="ApplyType" /> |
| | | <result property="prepaidamount" column="PrepaidAmount" /> |
| | | <result property="invoicecount" column="InvoiceCount" /> |
| | | <result property="attachcount" column="AttachCount" /> |
| | | <result property="managerno" column="ManagerNo" /> |
| | | <result property="managername" column="ManagerName" /> |
| | | <result property="deptmentno" column="DeptmentNo" /> |
| | | <result property="deptmentname" column="DeptmentName" /> |
| | | <result property="opochecker" column="OPOchecker" /> |
| | | <result property="finvicepresident" column="FinVicePresident" /> |
| | | <result property="busvicepresident" column="BusVicePresident" /> |
| | | <result property="officedirector" column="OfficeDirector" /> |
| | | <result property="financedirector" column="FinanceDirector" /> |
| | | <result property="financechecher" column="FinanceChecher" /> |
| | | <result property="remark" column="Remark" /> |
| | | <result property="isdistribute" column="Isdistribute" /> |
| | | <result property="recordstatus" column="RecordStatus" /> |
| | | <result property="uploadflag" column="uploadflag" /> |
| | | <result property="uploadtime" column="uploadtime" /> |
| | | <result property="flowlevel" column="FlowLevel" /> |
| | | <result property="oaid" column="oaid" /> |
| | | <result property="oabdzt" column="oabdzt" /> |
| | | <result property="filename" column="filename" /> |
| | | <result property="fileid" column="fileid" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceFundSharedVo"> |
| | | select ID, InfoID, DonorNo, DonorName, del_flag, create_by, create_time, update_by, update_time, UserNo, UserName, UnitName, UnitNo, UnitUserNo, Phone, AnnexBankCard, AnnexRegistForm, PretaxCost, TaxedCost, TotalCost, ProcurementCost, ExpertCost, EthicsCost, MedicalCost, FamilyCost, AftercareCost, AmountRequested, ApplyType, PrepaidAmount, InvoiceCount, AttachCount, ManagerNo, ManagerName, DeptmentNo, DeptmentName, OPOchecker, FinVicePresident, BusVicePresident, OfficeDirector, FinanceDirector, FinanceChecher, Remark, Isdistribute, RecordStatus, uploadflag, uploadtime, FlowLevel, oaid, oabdzt, filename, fileid from service_fund_shared |
| | | </sql> |
| | | |
| | | <select id="selectServiceFundSharedList" parameterType="ServiceFundShared" resultMap="ServiceFundSharedResult"> |
| | | <include refid="selectServiceFundSharedVo"/> |
| | | <where> |
| | | <if test="infoid != null "> and InfoID = #{infoid}</if> |
| | | <if test="donorno != null and donorno != ''"> and DonorNo = #{donorno}</if> |
| | | <if test="donorname != null and donorname != ''"> and DonorName like concat('%', #{donorname}, '%')</if> |
| | | <if test="userno != null and userno != ''"> and UserNo = #{userno}</if> |
| | | <if test="username != null and username != ''"> and UserName like concat('%', #{username}, '%')</if> |
| | | <if test="unitname != null and unitname != ''"> and UnitName like concat('%', #{unitname}, '%')</if> |
| | | <if test="unitno != null and unitno != ''"> and UnitNo = #{unitno}</if> |
| | | <if test="unituserno != null and unituserno != ''"> and UnitUserNo = #{unituserno}</if> |
| | | <if test="phone != null and phone != ''"> and Phone = #{phone}</if> |
| | | <if test="annexbankcard != null and annexbankcard != ''"> and AnnexBankCard = #{annexbankcard}</if> |
| | | <if test="annexregistform != null and annexregistform != ''"> and AnnexRegistForm = #{annexregistform}</if> |
| | | <if test="pretaxcost != null "> and PretaxCost = #{pretaxcost}</if> |
| | | <if test="taxedcost != null "> and TaxedCost = #{taxedcost}</if> |
| | | <if test="totalcost != null "> and TotalCost = #{totalcost}</if> |
| | | <if test="expertcost != null "> and ExpertCost = #{expertcost}</if> |
| | | <if test="ethicscost != null "> and EthicsCost = #{ethicscost}</if> |
| | | <if test="medicalcost != null "> and MedicalCost = #{medicalcost}</if> |
| | | <if test="familycost != null "> and FamilyCost = #{familycost}</if> |
| | | <if test="aftercarecost != null "> and AftercareCost = #{aftercarecost}</if> |
| | | <if test="amountrequested != null "> and AmountRequested = #{amountrequested}</if> |
| | | <if test="applytype != null and applytype != ''"> and ApplyType = #{applytype}</if> |
| | | <if test="prepaidamount != null "> and PrepaidAmount = #{prepaidamount}</if> |
| | | <if test="invoicecount != null "> and InvoiceCount = #{invoicecount}</if> |
| | | <if test="attachcount != null "> and AttachCount = #{attachcount}</if> |
| | | <if test="managerno != null and managerno != ''"> and ManagerNo = #{managerno}</if> |
| | | <if test="managername != null and managername != ''"> and ManagerName like concat('%', #{managername}, '%')</if> |
| | | <if test="deptmentno != null and deptmentno != ''"> and DeptmentNo = #{deptmentno}</if> |
| | | <if test="deptmentname != null and deptmentname != ''"> and DeptmentName like concat('%', #{deptmentname}, '%')</if> |
| | | <if test="opochecker != null and opochecker != ''"> and OPOchecker = #{opochecker}</if> |
| | | <if test="finvicepresident != null and finvicepresident != ''"> and FinVicePresident = #{finvicepresident}</if> |
| | | <if test="busvicepresident != null and busvicepresident != ''"> and BusVicePresident = #{busvicepresident}</if> |
| | | <if test="officedirector != null and officedirector != ''"> and OfficeDirector = #{officedirector}</if> |
| | | <if test="financedirector != null and financedirector != ''"> and FinanceDirector = #{financedirector}</if> |
| | | <if test="financechecher != null and financechecher != ''"> and FinanceChecher = #{financechecher}</if> |
| | | <if test="remark != null and remark != ''"> and Remark = #{remark}</if> |
| | | <if test="isdistribute != null and isdistribute != ''"> and Isdistribute = #{isdistribute}</if> |
| | | <if test="recordstatus != null "> and RecordStatus = #{recordstatus}</if> |
| | | <if test="uploadflag != null and uploadflag != ''"> and uploadflag = #{uploadflag}</if> |
| | | <if test="uploadtime != null "> and uploadtime = #{uploadtime}</if> |
| | | <if test="flowlevel != null "> and FlowLevel = #{flowlevel}</if> |
| | | <if test="oaid != null and oaid != ''"> and oaid = #{oaid}</if> |
| | | <if test="oabdzt != null and oabdzt != ''"> and oabdzt = #{oabdzt}</if> |
| | | <if test="filename != null and filename != ''"> and filename like concat('%', #{filename}, '%')</if> |
| | | <if test="fileid != null and fileid != ''"> and fileid = #{fileid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <result property="flowlevel" column="FlowLevel" /> |
| | | <result property="costtype" column="costtype" /> |
| | | <result property="costtypename" column="costtypename" /> |
| | | <result property="fileurl" column="fileurl" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceReimbursementVo"> |
| | | select ID, del_flag, create_by, create_time, update_by, update_time, UserNo, UserName, IDCardType, IDCardNo, Phone, DepositBank, BankCardNo, BranchBankName, AnnexBankCard, AnnexFiles, AmountRequested, PrepaidAmount, InvoiceCount, AttachCount, ManagerNo, ManagerName, DeptmentNo, DeptmentName, OPOchecker, FinVicePresident, BusVicePresident, OfficeDirector, FinanceDirector, FinanceChecher, InfoID, DonorNo, remark, RecordStatus, uploadflag, uploadtime, Travelers, DonorName, Reason, FlowLevel, costtype, costtypename from service_reimbursement |
| | | select ID, del_flag, create_by, create_time, update_by, update_time, UserNo, UserName, IDCardType, IDCardNo, Phone, DepositBank, BankCardNo, BranchBankName, AnnexBankCard, AnnexFiles, AmountRequested, PrepaidAmount, InvoiceCount, AttachCount, ManagerNo, ManagerName, DeptmentNo, DeptmentName, OPOchecker, FinVicePresident, BusVicePresident, OfficeDirector, FinanceDirector, FinanceChecher, InfoID, DonorNo, remark, RecordStatus, uploadflag, uploadtime, Travelers, DonorName, Reason, FlowLevel, costtype, costtypename,fileurl from service_reimbursement |
| | | </sql> |
| | | |
| | | <select id="selectServiceReimbursementList" parameterType="ServiceReimbursement" resultMap="ServiceReimbursementResult"> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.ServiceReimbursementSharedMapper"> |
| | | |
| | | <resultMap type="ServiceReimbursementShared" id="ServiceReimbursementSharedResult"> |
| | | <result property="id" column="ID" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="userno" column="UserNo" /> |
| | | <result property="username" column="UserName" /> |
| | | <result property="travelers" column="Travelers" /> |
| | | <result property="idcardtype" column="IDCardType" /> |
| | | <result property="idcardno" column="IDCardNo" /> |
| | | <result property="phone" column="Phone" /> |
| | | <result property="depositbank" column="DepositBank" /> |
| | | <result property="bankcardno" column="BankCardNo" /> |
| | | <result property="branchbankname" column="BranchBankName" /> |
| | | <result property="annexbankcard" column="AnnexBankCard" /> |
| | | <result property="annexfiles" column="AnnexFiles" /> |
| | | <result property="amountrequested" column="AmountRequested" /> |
| | | <result property="prepaidamount" column="PrepaidAmount" /> |
| | | <result property="invoicecount" column="InvoiceCount" /> |
| | | <result property="attachcount" column="AttachCount" /> |
| | | <result property="managerno" column="ManagerNo" /> |
| | | <result property="managername" column="ManagerName" /> |
| | | <result property="deptmentno" column="DeptmentNo" /> |
| | | <result property="deptmentname" column="DeptmentName" /> |
| | | <result property="opochecker" column="OPOchecker" /> |
| | | <result property="finvicepresident" column="FinVicePresident" /> |
| | | <result property="busvicepresident" column="BusVicePresident" /> |
| | | <result property="officedirector" column="OfficeDirector" /> |
| | | <result property="financedirector" column="FinanceDirector" /> |
| | | <result property="financechecher" column="FinanceChecher" /> |
| | | <result property="infoid" column="InfoID" /> |
| | | <result property="donorno" column="DonorNo" /> |
| | | <result property="donorname" column="DonorName" /> |
| | | <result property="reason" column="Reason" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="recordstatus" column="RecordStatus" /> |
| | | <result property="uploadflag" column="uploadflag" /> |
| | | <result property="uploadtime" column="uploadtime" /> |
| | | <result property="totalamount" column="totalAmount" /> |
| | | <result property="bigstrmoney" column="bigStrMoney" /> |
| | | <result property="flowlevel" column="FlowLevel" /> |
| | | <result property="costtype" column="costtype" /> |
| | | <result property="costtypename" column="costtypename" /> |
| | | <result property="oaid" column="oaid" /> |
| | | <result property="oabdzt" column="oabdzt" /> |
| | | <result property="filename" column="filename" /> |
| | | <result property="fileid" column="fileid" /> |
| | | <result property="reimid" column="reimid" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceReimbursementSharedVo"> |
| | | select ID, del_flag, create_by, create_time, update_by, update_time, UserNo, UserName, Travelers, IDCardType, IDCardNo, Phone, DepositBank, BankCardNo, BranchBankName, AnnexBankCard, AnnexFiles, AmountRequested, PrepaidAmount, InvoiceCount, AttachCount, ManagerNo, ManagerName, DeptmentNo, DeptmentName, OPOchecker, FinVicePresident, BusVicePresident, OfficeDirector, FinanceDirector, FinanceChecher, InfoID, DonorNo, DonorName, Reason, remark, RecordStatus, uploadflag, uploadtime, totalAmount, bigStrMoney, FlowLevel, costtype, costtypename, oaid, oabdzt, filename, fileid,reimid from service_reimbursement_shared |
| | | </sql> |
| | | |
| | | <select id="getRemShareInfoByRemId" resultType="com.ruoyi.project.domain.ServiceReimbursementShared" resultMap="ServiceReimbursementSharedResult"> |
| | | <include refid="selectServiceReimbursementSharedVo"/> |
| | | where reimid = #{RemId} |
| | | </select> |
| | | |
| | | <select id="selectServiceReimbursementSharedList" parameterType="ServiceReimbursementShared" resultMap="ServiceReimbursementSharedResult"> |
| | | <include refid="selectServiceReimbursementSharedVo"/> |
| | | <where> |
| | | <if test="userno != null and userno != ''"> and UserNo = #{userno}</if> |
| | | <if test="username != null and username != ''"> and UserName like concat('%', #{username}, '%')</if> |
| | | <if test="travelers != null and travelers != ''"> and Travelers = #{travelers}</if> |
| | | <if test="idcardtype != null and idcardtype != ''"> and IDCardType = #{idcardtype}</if> |
| | | <if test="idcardno != null and idcardno != ''"> and IDCardNo = #{idcardno}</if> |
| | | <if test="phone != null and phone != ''"> and Phone = #{phone}</if> |
| | | <if test="depositbank != null and depositbank != ''"> and DepositBank = #{depositbank}</if> |
| | | <if test="bankcardno != null and bankcardno != ''"> and BankCardNo = #{bankcardno}</if> |
| | | <if test="branchbankname != null and branchbankname != ''"> and BranchBankName like concat('%', #{branchbankname}, '%')</if> |
| | | <if test="annexbankcard != null and annexbankcard != ''"> and AnnexBankCard = #{annexbankcard}</if> |
| | | <if test="annexfiles != null and annexfiles != ''"> and AnnexFiles = #{annexfiles}</if> |
| | | <if test="amountrequested != null "> and AmountRequested = #{amountrequested}</if> |
| | | <if test="prepaidamount != null "> and PrepaidAmount = #{prepaidamount}</if> |
| | | <if test="invoicecount != null "> and InvoiceCount = #{invoicecount}</if> |
| | | <if test="attachcount != null "> and AttachCount = #{attachcount}</if> |
| | | <if test="managerno != null and managerno != ''"> and ManagerNo = #{managerno}</if> |
| | | <if test="managername != null and managername != ''"> and ManagerName like concat('%', #{managername}, '%')</if> |
| | | <if test="deptmentno != null and deptmentno != ''"> and DeptmentNo = #{deptmentno}</if> |
| | | <if test="deptmentname != null and deptmentname != ''"> and DeptmentName like concat('%', #{deptmentname}, '%')</if> |
| | | <if test="opochecker != null and opochecker != ''"> and OPOchecker = #{opochecker}</if> |
| | | <if test="finvicepresident != null and finvicepresident != ''"> and FinVicePresident = #{finvicepresident}</if> |
| | | <if test="busvicepresident != null and busvicepresident != ''"> and BusVicePresident = #{busvicepresident}</if> |
| | | <if test="officedirector != null and officedirector != ''"> and OfficeDirector = #{officedirector}</if> |
| | | <if test="financedirector != null and financedirector != ''"> and FinanceDirector = #{financedirector}</if> |
| | | <if test="financechecher != null and financechecher != ''"> and FinanceChecher = #{financechecher}</if> |
| | | <if test="infoid != null "> and InfoID = #{infoid}</if> |
| | | <if test="donorno != null and donorno != ''"> and DonorNo = #{donorno}</if> |
| | | <if test="donorname != null and donorname != ''"> and DonorName like concat('%', #{donorname}, '%')</if> |
| | | <if test="reason != null and reason != ''"> and Reason = #{reason}</if> |
| | | <if test="recordstatus != null "> and RecordStatus = #{recordstatus}</if> |
| | | <if test="uploadflag != null and uploadflag != ''"> and uploadflag = #{uploadflag}</if> |
| | | <if test="uploadtime != null "> and uploadtime = #{uploadtime}</if> |
| | | <if test="totalamount != null "> and totalAmount = #{totalamount}</if> |
| | | <if test="bigstrmoney != null and bigstrmoney != ''"> and bigStrMoney = #{bigstrmoney}</if> |
| | | <if test="flowlevel != null "> and FlowLevel = #{flowlevel}</if> |
| | | <if test="costtype != null and costtype != ''"> and costtype = #{costtype}</if> |
| | | <if test="costtypename != null and costtypename != ''"> and costtypename like concat('%', #{costtypename}, '%')</if> |
| | | <if test="oaid != null and oaid != ''"> and oaid = #{oaid}</if> |
| | | <if test="oabdzt != null and oabdzt != ''"> and oabdzt = #{oabdzt}</if> |
| | | <if test="filename != null and filename != ''"> and filename like concat('%', #{filename}, '%')</if> |
| | | <if test="fileid != null and fileid != ''"> and fileid = #{fileid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |