| | |
| | | |
| | | import com.jttech.pfcs.services.IBillService; |
| | | import com.jttech.pfcs.vo.req.bill.BillApiReqVo; |
| | | import com.jttech.pfcs.vo.req.bill.FtpServerParam; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.jttech.pfcs.vo.resp.ResponseVo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * 账单 |
| | |
| | | return mBillService.post(reqVo); |
| | | } finally { |
| | | final long endTime = System.currentTimeMillis(); |
| | | mLogger.info("Execute heart the result is {} time spent is {} ", result, (endTime - beginTime)); |
| | | mLogger.info("Execute post the result is {} time spent is {} ", result, (endTime - beginTime)); |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/fileUpload") |
| | | public ResponseVo fileUpload(MultipartFile[] files, FtpServerParam ftpServer) { |
| | | final long beginTime = System.currentTimeMillis(); |
| | | ResponseVo result = new ResponseVo(); |
| | | try { |
| | | return mBillService.fileUpload(files, ftpServer); |
| | | } finally { |
| | | final long endTime = System.currentTimeMillis(); |
| | | mLogger.info("Execute fileUpload the result is {} time spent is {} ", result, (endTime - beginTime)); |
| | | } |
| | | } |
| | | } |