Kaynağa Gözat

删除生成的sql代码

lqc 4 yıl önce
ebeveyn
işleme
099cdccfdd

+ 0 - 54
D:/project/moka-private/src/main/java/com/mokamrp/privates/controller/PanFosterwxMobileTaskTimeListController.java

@@ -1,54 +0,0 @@
-package com.mokamrp.privates.controller;
-
-import com.mokamrp.privates.constant.HttpStatus;
-import com.mokamrp.privates.entity.PostBasePageHandle;
-import com.mokamrp.privates.help.AjaxResult;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.validation.BindingResult;
-import org.springframework.web.bind.annotation.RequestMapping;
-import com.mokamrp.privates.service.PanFosterwxMobileTaskTimeListService;
-import com.mokamrp.privates.mapper.pojo.PanFosterwxMobileTaskTimeList;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import com.mokamrp.privates.controller.BaseController;
-import javax.validation.Valid;
-import java.util.Map;
-import java.util.List;
-
-import org.springframework.web.bind.annotation.RestController;
-
-
-/**
- * <p>
- * 盘古个微养号账号任务时间 前端控制器
- * </p>
- *
- * @author leon
- * @since 2021-08-26
- */
-@RestController
-@RequestMapping("/panFosterwxMobileTaskTimeList")
-public class PanFosterwxMobileTaskTimeListController extends BaseController<PanFosterwxMobileTaskTimeList> {
-
-    @Autowired
-    public PanFosterwxMobileTaskTimeListService panFosterwxMobileTaskTimeListService;
-
-    /*
-     * @fast
-     * 默认生成的控制器所继承的父类中有index/add/edit/del四个基础方法,均为post json请求
-     * 如果需要定制化,需要将BaseController中对应的方法复制到当前控制器,然后进行修改
-     */
-
-    @PostMapping("/list")
-    public Object list(@Valid @RequestBody PostBasePageHandle postBasePageHandle, BindingResult bindingResult){
-        if (bindingResult.hasErrors()) {
-            return AjaxResult.error(HttpStatus.ERROR, bindingResult.getFieldError().getDefaultMessage());
-        }
-        ResHandle<List<panFosterwxMobileTaskTimeList>> res = panFosterwxMobileTaskTimeListService.getList(postBasePageHandle);
-        return AjaxResult.success(res);
-    }
-
-
-}
-

+ 0 - 21
D:/project/moka-private/src/main/java/com/mokamrp/privates/mapper/PanFosterwxMobileTaskTimeListMapper.java

@@ -1,21 +0,0 @@
-package com.mokamrp.privates.mapper;
-
-import com.mokamrp.privates.mapper.pojo.PanFosterwxMobileTaskTimeList;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import org.springframework.stereotype.Component;
-import org.apache.ibatis.annotations.Param;
-import java.util.List;
-
-/**
- * <p>
- * 盘古个微养号账号任务时间 Mapper 接口
- * </p>
- *
- * @author leon
- * @since 2021-08-26
- */
-@Component
-public interface PanFosterwxMobileTaskTimeListMapper extends BaseMapper<PanFosterwxMobileTaskTimeList> {
-    public List<PanFosterwxMobileTaskTimeList> getList(Page<PanFosterwxMobileTaskTimeList> pageObj);
-}

+ 0 - 25
D:/project/moka-private/src/main/java/com/mokamrp/privates/mapper/PanFosterwxMobileTaskTimeListMapper.xml

@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.mokamrp.privates.mapper.PanFosterwxMobileTaskTimeListMapper">
-
-    <!-- 通用查询映射结果 -->
-    <resultMap id="BaseResultMap" type="com.mokamrp.privates.mapper.pojo.PanFosterwxMobileTaskTimeList">
-        <id column="id" property="id" />
-        <result column="station_id" property="stationId" />
-        <result column="mobile_code" property="mobileCode" />
-        <result column="mobile_unio_code" property="mobileUnioCode" />
-        <result column="template_id" property="templateId" />
-        <result column="task_start_at" property="taskStartAt" />
-        <result column="task_end_at" property="taskEndAt" />
-        <result column="create_at" property="createAt" />
-        <result column="update_at" property="updateAt" />
-    </resultMap>
-
-    <!-- 通用查询结果列 -->
-    <sql id="Base_Column_List">
-        id, station_id, mobile_code, mobile_unio_code, template_id, task_start_at, task_end_at, create_at, update_at
-    </sql>
-    <select id="getList" resultType="com.mokamrp.privates.mapper.pojo.PanFosterwxMobileTaskTimeList">
-        SELECT * FROM pan_fosterwx_mobile_task_time_list
-    </select>
-</mapper>

+ 0 - 159
D:/project/moka-private/src/main/java/com/mokamrp/privates/mapper/pojo/PanFosterwxMobileTaskTimeList.java

@@ -1,159 +0,0 @@
-package com.mokamrp.privates.mapper.pojo;
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.extension.activerecord.Model;
-import com.baomidou.mybatisplus.annotation.TableId;
-import java.time.LocalDateTime;
-import java.io.Serializable;
-
-/**
- * <p>
- * 盘古个微养号账号任务时间
- * </p>
- *
- * @author leon
- * @since 2021-08-26
- */
-public class PanFosterwxMobileTaskTimeList extends Model<PanFosterwxMobileTaskTimeList> {
-
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * ID
-     */
-      @TableId(value = "id", type = IdType.AUTO)
-    private Integer id;
-
-    /**
-     * 站点id(pan_fosterwx_station.id)
-     */
-    private Integer stationId;
-
-    /**
-     * 手机编号
-     */
-    private String mobileCode;
-
-    /**
-     * 手机唯一编码(station_id+mobile_code)
-     */
-    private String mobileUnioCode;
-
-    /**
-     * 模板id
-     */
-    private Integer templateId;
-
-    /**
-     * 任务开始时间
-     */
-    private LocalDateTime taskStartAt;
-
-    /**
-     * 任务结束时间
-     */
-    private LocalDateTime taskEndAt;
-
-    /**
-     * 创建时间
-     */
-    private LocalDateTime createAt;
-
-    /**
-     * 更新时间
-     */
-    private LocalDateTime updateAt;
-
-
-    public Integer getId() {
-        return id;
-    }
-
-    public void setId(Integer id) {
-        this.id = id;
-    }
-
-    public Integer getStationId() {
-        return stationId;
-    }
-
-    public void setStationId(Integer stationId) {
-        this.stationId = stationId;
-    }
-
-    public String getMobileCode() {
-        return mobileCode;
-    }
-
-    public void setMobileCode(String mobileCode) {
-        this.mobileCode = mobileCode;
-    }
-
-    public String getMobileUnioCode() {
-        return mobileUnioCode;
-    }
-
-    public void setMobileUnioCode(String mobileUnioCode) {
-        this.mobileUnioCode = mobileUnioCode;
-    }
-
-    public Integer getTemplateId() {
-        return templateId;
-    }
-
-    public void setTemplateId(Integer templateId) {
-        this.templateId = templateId;
-    }
-
-    public LocalDateTime getTaskStartAt() {
-        return taskStartAt;
-    }
-
-    public void setTaskStartAt(LocalDateTime taskStartAt) {
-        this.taskStartAt = taskStartAt;
-    }
-
-    public LocalDateTime getTaskEndAt() {
-        return taskEndAt;
-    }
-
-    public void setTaskEndAt(LocalDateTime taskEndAt) {
-        this.taskEndAt = taskEndAt;
-    }
-
-    public LocalDateTime getCreateAt() {
-        return createAt;
-    }
-
-    public void setCreateAt(LocalDateTime createAt) {
-        this.createAt = createAt;
-    }
-
-    public LocalDateTime getUpdateAt() {
-        return updateAt;
-    }
-
-    public void setUpdateAt(LocalDateTime updateAt) {
-        this.updateAt = updateAt;
-    }
-
-    @Override
-    protected Serializable pkVal() {
-        return this.id;
-    }
-
-    @Override
-    public String toString() {
-        return "PanFosterwxMobileTaskTimeList{" +
-        "id=" + id +
-        ", stationId=" + stationId +
-        ", mobileCode=" + mobileCode +
-        ", mobileUnioCode=" + mobileUnioCode +
-        ", templateId=" + templateId +
-        ", taskStartAt=" + taskStartAt +
-        ", taskEndAt=" + taskEndAt +
-        ", createAt=" + createAt +
-        ", updateAt=" + updateAt +
-        "}";
-    }
-}

+ 0 - 18
D:/project/moka-private/src/main/java/com/mokamrp/privates/service/PanFosterwxMobileTaskTimeListService.java

@@ -1,18 +0,0 @@
-package com.mokamrp.privates.service;
-
-import com.mokamrp.privates.mapper.pojo.PanFosterwxMobileTaskTimeList;
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.mokamrp.privates.entity.PostBasePageHandle;
-import java.util.Map;
-/**
- * <p>
- * 盘古个微养号账号任务时间 服务类
- * </p>
- *
- * @author leon
- * @since 2021-08-26
- */
-public interface PanFosterwxMobileTaskTimeListService extends IService<PanFosterwxMobileTaskTimeList> {
-    //.@leon 获取数据列表
-    public ResHandle<List<panFosterwxMobileTaskTimeList>> getList(PostBasePageHandle handle);
-}

+ 0 - 43
D:/project/moka-private/src/main/java/com/mokamrp/privates/service/impl/PanFosterwxMobileTaskTimeListServiceImpl.java

@@ -1,43 +0,0 @@
-package com.mokamrp.privates.service.impl;
-
-import com.mokamrp.privates.mapper.pojo.PanFosterwxMobileTaskTimeList;
-import com.mokamrp.privates.mapper.PanFosterwxMobileTaskTimeListMapper;
-import com.mokamrp.privates.service.PanFosterwxMobileTaskTimeListService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-import com.mokamrp.privates.entity.PostBasePageHandle;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
-import com.mokamrp.privates.entity.ResHandle;
-import java.util.*;
-
-/**
- * <p>
- * 盘古个微养号账号任务时间 服务实现类
- * </p>
- *
- * @author leon
- * @since 2021-08-26
- */
-@Service
-public class PanFosterwxMobileTaskTimeListServiceImpl extends ServiceImpl<PanFosterwxMobileTaskTimeListMapper, PanFosterwxMobileTaskTimeList> implements PanFosterwxMobileTaskTimeListService {
-
-    @Autowired
-    public PanFosterwxMobileTaskTimeListMapper panFosterwxMobileTaskTimeListMapper;
-    /**
-     * 获取数据列表 支持分页
-     * @param handle
-     * @return
-     */
-    public Map<String, Object> getList(PostBasePageHandle handle) {
-        Integer pagesize = handle.getPagesize();
-        Integer page = handle.getPage();
-        Page<PanFosterwxMobileTaskTimeList> pageObj = new Page<PanFosterwxMobileTaskTimeList>(page, pagesize);
-        List<PanFosterwxMobileTaskTimeList> list = panFosterwxMobileTaskTimeListMapper.getList(pageObj);
-        ResHandle<List<FosterwxMobile>> resHandle = new ResHandle<>();
-        resHandle.setList(list);
-        resHandle.setTotal(pageObj.getTotal());
-        return resMap;
-    }
-}