异步任务相关的类和删除一些没用的生成代码
parent
0cc653eed2
commit
1ebfa27940
@ -0,0 +1,33 @@
|
||||
package me.zhengjie.utils;
|
||||
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import cn.hutool.http.HttpResponse;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
|
||||
/**
|
||||
* 继承于
|
||||
* @see cn.hutool.http.HttpUtil
|
||||
* Http请求发送类,实现具体的Http发送逻辑
|
||||
*/
|
||||
public class HttpUtil extends cn.hutool.http.HttpUtil {
|
||||
|
||||
@Value(value = "req.db.url")
|
||||
private String reqDBUrl;
|
||||
|
||||
private HttpUtil(){}
|
||||
|
||||
/**
|
||||
* 调用HTTP请求发送Post请求
|
||||
*
|
||||
* @param json 请求的body内容
|
||||
* @return 返回请求结果
|
||||
*/
|
||||
private HttpResponse sendPostReq(String url, String json){
|
||||
HttpResponse httpResponse = HttpRequest
|
||||
.post(url)
|
||||
.body(json)
|
||||
.execute();
|
||||
return httpResponse;
|
||||
}
|
||||
|
||||
}
|
@ -1,112 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019-2020 Zheng Jie
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package eladmin-system.domain;
|
||||
|
||||
import lombok.Data;
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import cn.hutool.core.bean.copier.CopyOptions;
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.*;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.*;
|
||||
import java.sql.Timestamp;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @website https://el-admin.vip
|
||||
* @description /
|
||||
* @author x
|
||||
* @date 2020-09-07
|
||||
**/
|
||||
@Entity
|
||||
@Data
|
||||
@Table(name="t_form_message")
|
||||
public class FormMessage implements Serializable {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id")
|
||||
@ApiModelProperty(value = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "gmt_create")
|
||||
@CreationTimestamp
|
||||
@ApiModelProperty(value = "gmtCreate")
|
||||
private Timestamp gmtCreate;
|
||||
|
||||
@Column(name = "gmt_modified")
|
||||
@UpdateTimestamp
|
||||
@ApiModelProperty(value = "gmtModified")
|
||||
private Timestamp gmtModified;
|
||||
|
||||
@Column(name = "rec_id")
|
||||
@ApiModelProperty(value = "记录id")
|
||||
private Long recId;
|
||||
|
||||
@Column(name = "uid")
|
||||
@ApiModelProperty(value = "uid")
|
||||
private String uid;
|
||||
|
||||
@Column(name = "act_name")
|
||||
@ApiModelProperty(value = "业务名")
|
||||
private String actName;
|
||||
|
||||
@Column(name = "stu_name")
|
||||
@ApiModelProperty(value = "报课学生名")
|
||||
private String stuName;
|
||||
|
||||
@Column(name = "stu_grade")
|
||||
@ApiModelProperty(value = "报课年级")
|
||||
private Integer stuGrade;
|
||||
|
||||
@Column(name = "stu_sub")
|
||||
@ApiModelProperty(value = "报课学科")
|
||||
private Integer stuSub;
|
||||
|
||||
@Column(name = "province_code")
|
||||
@ApiModelProperty(value = "所在省份编码")
|
||||
private Integer provinceCode;
|
||||
|
||||
@Column(name = "city")
|
||||
@ApiModelProperty(value = "所在城市")
|
||||
private String city;
|
||||
|
||||
@Column(name = "city_code")
|
||||
@ApiModelProperty(value = "所在城市编码")
|
||||
private Integer cityCode;
|
||||
|
||||
@Column(name = "device")
|
||||
@ApiModelProperty(value = "听课设备(0.没有以上设备 1.平板电脑 2.笔记本电脑 3.台式设备+耳麦)")
|
||||
private Integer device;
|
||||
|
||||
@Column(name = "appointment_time")
|
||||
@ApiModelProperty(value = "预约听课时间(0.近期没有学习安排 1.三天内 2.一周内 3.一周以后)")
|
||||
private Integer appointmentTime;
|
||||
|
||||
@Column(name = "start_time")
|
||||
@ApiModelProperty(value = "业务开始时间")
|
||||
private Timestamp startTime;
|
||||
|
||||
@Column(name = "push_time")
|
||||
@ApiModelProperty(value = "最新推送时间")
|
||||
private Timestamp pushTime;
|
||||
|
||||
public void copy(FormMessage source){
|
||||
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
||||
}
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019-2020 Zheng Jie
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package eladmin-system.repository;
|
||||
|
||||
import eladmin-system.domain.FormMessage;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
|
||||
/**
|
||||
* @website https://el-admin.vip
|
||||
* @author x
|
||||
* @date 2020-09-07
|
||||
**/
|
||||
public interface FormMessageRepository extends JpaRepository<FormMessage, Long>, JpaSpecificationExecutor<FormMessage> {
|
||||
}
|
@ -1,87 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019-2020 Zheng Jie
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package eladmin-system.rest;
|
||||
|
||||
import me.zhengjie.annotation.Log;
|
||||
import eladmin-system.domain.FormMessage;
|
||||
import eladmin-system.service.FormMessageService;
|
||||
import eladmin-system.service.dto.FormMessageQueryCriteria;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.annotations.*;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* @website https://el-admin.vip
|
||||
* @author x
|
||||
* @date 2020-09-07
|
||||
**/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@Api(tags = "form管理")
|
||||
@RequestMapping("/api/formMessage")
|
||||
public class FormMessageController {
|
||||
|
||||
private final FormMessageService formMessageService;
|
||||
|
||||
@Log("导出数据")
|
||||
@ApiOperation("导出数据")
|
||||
@GetMapping(value = "/download")
|
||||
@PreAuthorize("@el.check('formMessage:list')")
|
||||
public void download(HttpServletResponse response, FormMessageQueryCriteria criteria) throws IOException {
|
||||
formMessageService.download(formMessageService.queryAll(criteria), response);
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
@Log("查询form")
|
||||
@ApiOperation("查询form")
|
||||
@PreAuthorize("@el.check('formMessage:list')")
|
||||
public ResponseEntity<Object> query(FormMessageQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity<>(formMessageService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@Log("新增form")
|
||||
@ApiOperation("新增form")
|
||||
@PreAuthorize("@el.check('formMessage:add')")
|
||||
public ResponseEntity<Object> create(@Validated @RequestBody FormMessage resources){
|
||||
return new ResponseEntity<>(formMessageService.create(resources),HttpStatus.CREATED);
|
||||
}
|
||||
|
||||
@PutMapping
|
||||
@Log("修改form")
|
||||
@ApiOperation("修改form")
|
||||
@PreAuthorize("@el.check('formMessage:edit')")
|
||||
public ResponseEntity<Object> update(@Validated @RequestBody FormMessage resources){
|
||||
formMessageService.update(resources);
|
||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
@Log("删除form")
|
||||
@ApiOperation("删除form")
|
||||
@PreAuthorize("@el.check('formMessage:del')")
|
||||
@DeleteMapping
|
||||
public ResponseEntity<Object> delete(@RequestBody Long[] ids) {
|
||||
formMessageService.deleteAll(ids);
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
}
|
@ -1,83 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019-2020 Zheng Jie
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package eladmin-system.service;
|
||||
|
||||
import eladmin-system.domain.FormMessage;
|
||||
import eladmin-system.service.dto.FormMessageDto;
|
||||
import eladmin-system.service.dto.FormMessageQueryCriteria;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* @website https://el-admin.vip
|
||||
* @description 服务接口
|
||||
* @author x
|
||||
* @date 2020-09-07
|
||||
**/
|
||||
public interface FormMessageService {
|
||||
|
||||
/**
|
||||
* 查询数据分页
|
||||
* @param criteria 条件
|
||||
* @param pageable 分页参数
|
||||
* @return Map<String,Object>
|
||||
*/
|
||||
Map<String,Object> queryAll(FormMessageQueryCriteria criteria, Pageable pageable);
|
||||
|
||||
/**
|
||||
* 查询所有数据不分页
|
||||
* @param criteria 条件参数
|
||||
* @return List<FormMessageDto>
|
||||
*/
|
||||
List<FormMessageDto> queryAll(FormMessageQueryCriteria criteria);
|
||||
|
||||
/**
|
||||
* 根据ID查询
|
||||
* @param id ID
|
||||
* @return FormMessageDto
|
||||
*/
|
||||
FormMessageDto findById(Long id);
|
||||
|
||||
/**
|
||||
* 创建
|
||||
* @param resources /
|
||||
* @return FormMessageDto
|
||||
*/
|
||||
FormMessageDto create(FormMessage resources);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
* @param resources /
|
||||
*/
|
||||
void update(FormMessage resources);
|
||||
|
||||
/**
|
||||
* 多选删除
|
||||
* @param ids /
|
||||
*/
|
||||
void deleteAll(Long[] ids);
|
||||
|
||||
/**
|
||||
* 导出数据
|
||||
* @param all 待导出的数据
|
||||
* @param response /
|
||||
* @throws IOException /
|
||||
*/
|
||||
void download(List<FormMessageDto> all, HttpServletResponse response) throws IOException;
|
||||
}
|
@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019-2020 Zheng Jie
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package eladmin-system.service.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import java.sql.Timestamp;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @website https://el-admin.vip
|
||||
* @description /
|
||||
* @author x
|
||||
* @date 2020-09-07
|
||||
**/
|
||||
@Data
|
||||
public class FormMessageDto implements Serializable {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Timestamp gmtCreate;
|
||||
|
||||
private Timestamp gmtModified;
|
||||
|
||||
/** 记录id */
|
||||
private Long recId;
|
||||
|
||||
/** uid */
|
||||
private String uid;
|
||||
|
||||
/** 业务名 */
|
||||
private String actName;
|
||||
|
||||
/** 报课学生名 */
|
||||
private String stuName;
|
||||
|
||||
/** 报课年级 */
|
||||
private Integer stuGrade;
|
||||
|
||||
/** 报课学科 */
|
||||
private Integer stuSub;
|
||||
|
||||
/** 所在省份编码 */
|
||||
private Integer provinceCode;
|
||||
|
||||
/** 所在城市 */
|
||||
private String city;
|
||||
|
||||
/** 所在城市编码 */
|
||||
private Integer cityCode;
|
||||
|
||||
/** 听课设备(0.没有以上设备 1.平板电脑 2.笔记本电脑 3.台式设备+耳麦) */
|
||||
private Integer device;
|
||||
|
||||
/** 预约听课时间(0.近期没有学习安排 1.三天内 2.一周内 3.一周以后) */
|
||||
private Integer appointmentTime;
|
||||
|
||||
/** 业务开始时间 */
|
||||
private Timestamp startTime;
|
||||
|
||||
/** 最新推送时间 */
|
||||
private Timestamp pushTime;
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019-2020 Zheng Jie
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package eladmin-system.service.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.List;
|
||||
import me.zhengjie.annotation.Query;
|
||||
|
||||
/**
|
||||
* @website https://el-admin.vip
|
||||
* @author x
|
||||
* @date 2020-09-07
|
||||
**/
|
||||
@Data
|
||||
public class FormMessageQueryCriteria{
|
||||
|
||||
/** 精确 */
|
||||
@Query
|
||||
private String uid;
|
||||
|
||||
/** 模糊 */
|
||||
@Query(type = Query.Type.INNER_LIKE)
|
||||
private String actName;
|
||||
|
||||
/** 精确 */
|
||||
@Query
|
||||
private Integer device;
|
||||
/** BETWEEN */
|
||||
@Query(type = Query.Type.BETWEEN)
|
||||
private List<Integer> createTime;
|
||||
/** BETWEEN */
|
||||
@Query(type = Query.Type.BETWEEN)
|
||||
private List<String> createTime;
|
||||
/** BETWEEN */
|
||||
@Query(type = Query.Type.BETWEEN)
|
||||
private List<Timestamp> createTime;
|
||||
/** BETWEEN */
|
||||
@Query(type = Query.Type.BETWEEN)
|
||||
private List<Timestamp> createTime;
|
||||
}
|
@ -1,118 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019-2020 Zheng Jie
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package eladmin-system.service.impl;
|
||||
|
||||
import eladmin-system.domain.FormMessage;
|
||||
import me.zhengjie.utils.ValidationUtil;
|
||||
import me.zhengjie.utils.FileUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import eladmin-system.repository.FormMessageRepository;
|
||||
import eladmin-system.service.FormMessageService;
|
||||
import eladmin-system.service.dto.FormMessageDto;
|
||||
import eladmin-system.service.dto.FormMessageQueryCriteria;
|
||||
import eladmin-system.service.mapstruct.FormMessageMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import me.zhengjie.utils.PageUtil;
|
||||
import me.zhengjie.utils.QueryHelp;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashMap;
|
||||
|
||||
/**
|
||||
* @website https://el-admin.vip
|
||||
* @description 服务实现
|
||||
* @author x
|
||||
* @date 2020-09-07
|
||||
**/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class FormMessageServiceImpl implements FormMessageService {
|
||||
|
||||
private final FormMessageRepository formMessageRepository;
|
||||
private final FormMessageMapper formMessageMapper;
|
||||
|
||||
@Override
|
||||
public Map<String,Object> queryAll(FormMessageQueryCriteria criteria, Pageable pageable){
|
||||
Page<FormMessage> page = formMessageRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root,criteria,criteriaBuilder),pageable);
|
||||
return PageUtil.toPage(page.map(formMessageMapper::toDto));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FormMessageDto> queryAll(FormMessageQueryCriteria criteria){
|
||||
return formMessageMapper.toDto(formMessageRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root,criteria,criteriaBuilder)));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public FormMessageDto findById(Long id) {
|
||||
FormMessage formMessage = formMessageRepository.findById(id).orElseGet(FormMessage::new);
|
||||
ValidationUtil.isNull(formMessage.getId(),"FormMessage","id",id);
|
||||
return formMessageMapper.toDto(formMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public FormMessageDto create(FormMessage resources) {
|
||||
return formMessageMapper.toDto(formMessageRepository.save(resources));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(FormMessage resources) {
|
||||
FormMessage formMessage = formMessageRepository.findById(resources.getId()).orElseGet(FormMessage::new);
|
||||
ValidationUtil.isNull( formMessage.getId(),"FormMessage","id",resources.getId());
|
||||
formMessage.copy(resources);
|
||||
formMessageRepository.save(formMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteAll(Long[] ids) {
|
||||
for (Long id : ids) {
|
||||
formMessageRepository.deleteById(id);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void download(List<FormMessageDto> all, HttpServletResponse response) throws IOException {
|
||||
List<Map<String, Object>> list = new ArrayList<>();
|
||||
for (FormMessageDto formMessage : all) {
|
||||
Map<String,Object> map = new LinkedHashMap<>();
|
||||
map.put(" gmtCreate", formMessage.getGmtCreate());
|
||||
map.put(" gmtModified", formMessage.getGmtModified());
|
||||
map.put("记录id", formMessage.getRecId());
|
||||
map.put("uid", formMessage.getUid());
|
||||
map.put("业务名", formMessage.getActName());
|
||||
map.put("报课学生名", formMessage.getStuName());
|
||||
map.put("报课年级", formMessage.getStuGrade());
|
||||
map.put("报课学科", formMessage.getStuSub());
|
||||
map.put("所在省份编码", formMessage.getProvinceCode());
|
||||
map.put("所在城市", formMessage.getCity());
|
||||
map.put("所在城市编码", formMessage.getCityCode());
|
||||
map.put("听课设备(0.没有以上设备 1.平板电脑 2.笔记本电脑 3.台式设备+耳麦)", formMessage.getDevice());
|
||||
map.put("预约听课时间(0.近期没有学习安排 1.三天内 2.一周内 3.一周以后)", formMessage.getAppointmentTime());
|
||||
map.put("业务开始时间", formMessage.getStartTime());
|
||||
map.put("最新推送时间", formMessage.getPushTime());
|
||||
list.add(map);
|
||||
}
|
||||
FileUtil.downloadExcel(list, response);
|
||||
}
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019-2020 Zheng Jie
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package eladmin-system.service.mapstruct;
|
||||
|
||||
import me.zhengjie.base.BaseMapper;
|
||||
import eladmin-system.domain.FormMessage;
|
||||
import eladmin-system.service.dto.FormMessageDto;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.ReportingPolicy;
|
||||
|
||||
/**
|
||||
* @website https://el-admin.vip
|
||||
* @author x
|
||||
* @date 2020-09-07
|
||||
**/
|
||||
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
|
||||
public interface FormMessageMapper extends BaseMapper<FormMessageDto, FormMessage> {
|
||||
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/student',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/student/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/student',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del }
|
Loading…
Reference in New Issue