This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StringUtils.join(ownerDetailDTO.getPhones(), ",") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jdbcTemplate.batchUpdate(sql, new BatchPreparedStatementSetter() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.fangyou.service.transaction.utils; | |
import com.fangyou.common.exception.biz.BizException; | |
import com.fangyou.service.transaction.constant.ReturnCode; | |
import com.fangyou.service.transaction.model.tms.NetContractInfo; | |
import com.fangyou.service.transaction.model.tms.PreparationResultData; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.core.ParameterizedTypeReference; | |
import org.springframework.http.*; | |
import org.springframework.web.client.RestTemplate; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.fangyou.service.transaction.utils.convert; | |
import com.fangyou.repo.transaction.model.Preparation; | |
import com.fangyou.service.transaction.model.dto.PreparationDto; | |
import com.fasterxml.jackson.annotation.JsonFormat; | |
import io.swagger.annotations.ApiModelProperty; | |
import org.mapstruct.Mapper; | |
import org.mapstruct.Mapping; | |
import org.mapstruct.Mappings; | |
import org.mapstruct.factory.Mappers; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.mapstruct</groupId> | |
<artifactId>mapstruct</artifactId> | |
<version>${org.mapstruct.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.mapstruct</groupId> | |
<artifactId>mapstruct-processor</artifactId> | |
<version>${org.mapstruct.version}</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void saveData(InputStream is, File file) { | |
try (BufferedInputStream bis = new BufferedInputStream(is); | |
BufferedOutputStream bos = new BufferedOutputStream( | |
new FileOutputStream(file));) { | |
byte[] buffer = new byte[1024]; | |
int len = -1; | |
while ((len = bis.read(buffer)) != -1) { | |
bos.write(buffer, 0, len); | |
bos.flush(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//jqGrid的配置信息 | |
$.jgrid.defaults.width = 1000; | |
$.jgrid.defaults.responsive = true; | |
$.jgrid.defaults.styleUI = 'Bootstrap'; | |
//工具集合Tools | |
window.T = {}; | |
// 获取请求参数 | |
// 使用示例 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response.setContentType("application/x-msdownload"); | |
response.setHeader("Content-disposition", "attachment; filename=" + URLDecoder.decode(System.currentTimeMillis() + ".xls", "UTF-8")); | |
outputStream.flush(); | |
outputStream.close(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<version>1.16.8</version> | |
</dependency> |
NewerOlder