wanghc
2023-03-09 f429658e8bf3c88c4550171f61d6984033940b54
cmci-pfcs-gateway/src/main/java/com/jttech/pfcs/controller/BillController.java
@@ -2,16 +2,14 @@
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.services.IPublicService;
import com.jttech.pfcs.vo.ResponseVo;
import com.jttech.pfcs.vo.resp.ResponseVo;
import org.springframework.web.multipart.MultipartFile;
/**
 * 账单
@@ -35,7 +33,19 @@
            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));
        }
    }
}