| | |
| | | import com.consum.base.BaseController; |
| | | import com.consum.base.service.FinFileService; |
| | | import com.consum.model.po.FinFile; |
| | | import com.iplatform.base.IdUtil; |
| | | import com.walker.file.FileInfo; |
| | | import com.walker.infrastructure.utils.DateUtils; |
| | | import com.walker.infrastructure.utils.NumberGenerator; |
| | | import com.walker.web.ResponseValue; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | * @Author wh |
| | | * @Date 2023/8/1 10:33 |
| | | */ |
| | | @Api(value = "文件上传", tags = "文件上传") |
| | | // @Api(value = "文件上传", tags = "文件上传") |
| | | @RestController |
| | | @RequestMapping("/pc/fin/file") |
| | | public class FinFileController extends BaseController { |
| | |
| | | } |
| | | if (fileInfo != null) { |
| | | FinFile finFile = new FinFile(); |
| | | finFile.setId(NumberGenerator.getLongSequenceNumberNano()); |
| | | finFile.setId(IdUtil.generateId()); |
| | | finFile.setCreateTime(DateUtils.getDateTimeNumber(System.currentTimeMillis())); |
| | | finFile.setUserName("-1"); |
| | | finFile.setContentType(finFile.getContentType()); |
| | |
| | | for (int i = 0; i < uploadfs.length; i++) { |
| | | FileInfo fileInfo = uploadfs[i]; |
| | | FinFile finFile = new FinFile(); |
| | | finFile.setId(NumberGenerator.getLongSequenceNumberNano()); |
| | | finFile.setId(IdUtil.generateId()); |
| | | finFile.setCreateTime(DateUtils.getDateTimeNumber(System.currentTimeMillis())); |
| | | finFile.setUserName("-1"); |
| | | finFile.setContentType(finFile.getContentType()); |