| | |
| | | package com.consum.base.controller; |
| | | |
| | | import com.consum.base.BaseController; |
| | | import com.consum.base.service.FinFileServiceImpl; |
| | | import com.consum.base.service.FinFileService; |
| | | import com.consum.model.po.FinFile; |
| | | import com.walker.file.FileInfo; |
| | | import com.walker.infrastructure.utils.DateUtils; |
| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.text.NumberFormat; |
| | | |
| | | /** |
| | | * @Description 文件上传 |
| | | * @Author wh |
| | |
| | | @RequestMapping("/pc/fin/file") |
| | | public class FinFileController extends BaseController { |
| | | |
| | | public static void main(String[] args) { |
| | | NumberFormat nf = NumberFormat.getPercentInstance(); |
| | | nf.setMaximumFractionDigits(2); // 将小数保留 2 位 |
| | | System.out.println(nf.format(0.123456));; |
| | | } |
| | | |
| | | @Autowired |
| | | private FinFileServiceImpl finFileService; |
| | | private FinFileService finFileService; |
| | | |
| | | /** |
| | | * @Description |
| | | * fileContentType 组件中uploadf 为文件 其他为图片 |
| | | * groupId 1客服对话聊天 |
| | | * owner 所属人 |
| | | * @Description fileContentType 组件中uploadf 为文件 其他为图片 groupId 1客服对话聊天 owner 所属人 |
| | | * @Author wh |
| | | * @Date 2023/8/1 10:45 |
| | | */ |