| | |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.data.ExportDataDto; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.dto.userDownloadFile.UserDownloadFileDto; |
| | | import com.java110.dto.user.UserDownloadFileDto; |
| | | import com.java110.intf.job.IUserDownloadFileV1InnerServiceSMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.job.export.ExportDataQueue; |
| | | import com.java110.po.userDownloadFile.UserDownloadFilePo; |
| | | import com.java110.po.user.UserDownloadFilePo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.DateUtil; |
| | |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException { |
| | | |
| | | String userId = context.getReqHeaders().get("user-id"); |
| | | String storeId = context.getReqHeaders().get("store-id"); |
| | | |
| | | UserDto userDto = new UserDto(); |
| | | userDto.setUserId(userId); |
| | |
| | | |
| | | Assert.listOnlyOne(userDtos, "用户不存在"); |
| | | |
| | | //这里放入 员工ID 和 商户ID |
| | | |
| | | reqJson.put("userId",userId); |
| | | reqJson.put("storeId",storeId); |
| | | |
| | | ExportDataDto exportDataDto = new ExportDataDto(); |
| | | exportDataDto.setBusinessAdapt(reqJson.getString("pagePath")); |
| | | exportDataDto.setReqJson(reqJson); |
| | | String fileName = DateUtil.getyyyyMMddhhmmssDateString() |
| | | String fileName = GenerateCodeFactory.getUUID() |
| | | + ".xlsx"; |
| | | exportDataDto.setFileName(EXPORT_DATA_PRE |
| | | + reqJson.getString("pagePath") |