|  |  |  | 
|---|
|  |  |  | import com.doumee.api.BaseController; | 
|---|
|  |  |  | import com.doumee.core.annotation.excel.ExcelExporter; | 
|---|
|  |  |  | import com.doumee.core.annotation.pr.PreventRepeat; | 
|---|
|  |  |  | import com.doumee.core.constants.ResponseStatus; | 
|---|
|  |  |  | import com.doumee.core.exception.BusinessException; | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import javax.servlet.http.HttpServletResponse; | 
|---|
|  |  |  | import java.util.ArrayList; | 
|---|
|  |  |  | import java.util.Calendar; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("手动同步微信某天账单信息") | 
|---|
|  |  |  | @PostMapping("/syncWxBill") | 
|---|
|  |  |  | //    @RequiresPermissions("business:wxbill:create") | 
|---|
|  |  |  | @RequiresPermissions("business:wxbill:create") | 
|---|
|  |  |  | public ApiResponse syncWxBill(@RequestBody WxBill wxBill) { | 
|---|
|  |  |  | wxBillService.getWxBill(wxBill.getCreateDate()); | 
|---|
|  |  |  | return ApiResponse.success(wxBillService.create(wxBill)); | 
|---|
|  |  |  | if( wxBill.getCreateDate() == null){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Calendar calendar = Calendar.getInstance(); | 
|---|
|  |  |  | calendar.setTime( wxBill.getCreateDate()); | 
|---|
|  |  |  | calendar.set(Calendar.HOUR_OF_DAY,9); | 
|---|
|  |  |  | wxBillService.getWxBill(calendar.getTime()); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("根据ID删除") | 
|---|