1. 五商户 , 终端,商户相关
This commit is contained in:
parent
32d7bdf944
commit
ad8b3ec959
|
|
@ -25,7 +25,7 @@ import lombok.NoArgsConstructor;
|
|||
@EqualsAndHashCode(callSuper=true)
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "polling_task")
|
||||
@TableName(value = "ta_polling_task")
|
||||
public class PollingTask extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import lombok.NoArgsConstructor;
|
|||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "polling_task_autograph")
|
||||
@TableName(value = "ta_polling_task_autograph")
|
||||
public class PollingTaskAutograph {
|
||||
/**
|
||||
* 签名所属任务
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import lombok.NoArgsConstructor;
|
|||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName(value = "user_autograph")
|
||||
@TableName(value = "sy_user_autograph")
|
||||
public class UserAutograph {
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -0,0 +1,110 @@
|
|||
package com.chushang.inspection.terminal.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.chushang.common.mybatis.base.BaseEntity;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
/**
|
||||
* 五统一商户明细(内蒙古建行随付贷)
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=true)
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "st_five_store")
|
||||
public class FiveStore extends BaseEntity {
|
||||
/**
|
||||
* 五商户id
|
||||
*/
|
||||
@TableId(value = "five_id", type = IdType.ASSIGN_ID)
|
||||
private Long fiveId;
|
||||
|
||||
/**
|
||||
* 终端id
|
||||
*/
|
||||
@TableField(value = "terminal_id")
|
||||
private Long terminalId;
|
||||
|
||||
/**
|
||||
* 商户id
|
||||
*/
|
||||
@TableField(value = "store_id")
|
||||
private Long storeId;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@TableField(value = "dept_id")
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 一级分行id
|
||||
*/
|
||||
@TableField(value = "first_level_branch")
|
||||
private Long firstLevelBranch;
|
||||
|
||||
/**
|
||||
* 二级分行
|
||||
*/
|
||||
@TableField(value = "secondary_branches")
|
||||
private Long secondaryBranches;
|
||||
|
||||
/**
|
||||
* 当年新签约商户标志
|
||||
*/
|
||||
@TableField(value = "logo_of_newly_signed_merchants_that_year")
|
||||
private Byte logoOfNewlySignedMerchantsThatYear;
|
||||
|
||||
/**
|
||||
* 当月新签约商户标志
|
||||
*/
|
||||
@TableField(value = "logo_of_newly_signed_merchants_of_the_month")
|
||||
private Byte logoOfNewlySignedMerchantsOfTheMonth;
|
||||
|
||||
/**
|
||||
* 当日新签约商户标志
|
||||
*/
|
||||
@TableField(value = "logo_of_newly_signed_merchants_on_the_day")
|
||||
private Byte logoOfNewlySignedMerchantsOnTheDay;
|
||||
|
||||
/**
|
||||
* 客户名称
|
||||
*/
|
||||
@TableField(value = "client_name")
|
||||
private String clientName;
|
||||
|
||||
/**
|
||||
* 客户身份标识
|
||||
*/
|
||||
@TableField(value = "customer_id")
|
||||
private Byte customerId;
|
||||
|
||||
/**
|
||||
* 营销日期
|
||||
*/
|
||||
@TableField(value = "marketing_date")
|
||||
private Date marketingDate;
|
||||
|
||||
/**
|
||||
* 消费日期
|
||||
*/
|
||||
@TableField(value = "consumption_date")
|
||||
private Date consumptionDate;
|
||||
|
||||
/**
|
||||
* 营销人
|
||||
*/
|
||||
@TableField(value = "marketer")
|
||||
private String marketer;
|
||||
}
|
||||
|
|
@ -0,0 +1,158 @@
|
|||
package com.chushang.inspection.terminal.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.chushang.common.mybatis.base.BaseEntity;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
/**
|
||||
* 商户信息表
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=true)
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "st_store")
|
||||
public class Store extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "store_id", type = IdType.ASSIGN_ID)
|
||||
private Long storeId;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
@TableField(value = "task_id")
|
||||
private Long taskId;
|
||||
|
||||
/**
|
||||
* 下级任务id
|
||||
*/
|
||||
@TableField(value = "lower_task_id")
|
||||
private Long lowerTaskId;
|
||||
|
||||
/**
|
||||
* 商户编号
|
||||
*/
|
||||
@TableField(value = "store_no")
|
||||
private String storeNo;
|
||||
|
||||
/**
|
||||
* 商户名称
|
||||
*/
|
||||
@TableField(value = "store_name")
|
||||
private String storeName;
|
||||
|
||||
/**
|
||||
* 商户联系人
|
||||
*/
|
||||
@TableField(value = "store_contact")
|
||||
private String storeContact;
|
||||
|
||||
/**
|
||||
* 商户联系电话
|
||||
*/
|
||||
@TableField(value = "store_phone")
|
||||
private String storePhone;
|
||||
|
||||
/**
|
||||
* 商户地址
|
||||
*/
|
||||
@TableField(value = "store_address")
|
||||
private String storeAddress;
|
||||
|
||||
/**
|
||||
* 商户特殊编号
|
||||
*/
|
||||
@TableField(value = "special_num")
|
||||
private String specialNum;
|
||||
|
||||
/**
|
||||
* 门店名称
|
||||
*/
|
||||
@TableField(value = "shop_name")
|
||||
private String shopName;
|
||||
|
||||
/**
|
||||
* 建档日期
|
||||
*/
|
||||
@TableField(value = "register_time")
|
||||
private Date registerTime;
|
||||
|
||||
/**
|
||||
* 商户类型
|
||||
*/
|
||||
@TableField(value = "store_type")
|
||||
private Byte storeType;
|
||||
|
||||
/**
|
||||
* 现有其他收单产品
|
||||
*/
|
||||
@TableField(value = "products")
|
||||
private String products;
|
||||
|
||||
/**
|
||||
* 商户提示工具
|
||||
*/
|
||||
@TableField(value = "tip_tool")
|
||||
private String tipTool;
|
||||
|
||||
/**
|
||||
* 操作员编号
|
||||
*/
|
||||
@TableField(value = "admin_id")
|
||||
private String adminId;
|
||||
|
||||
/**
|
||||
* 巡检频次
|
||||
*/
|
||||
@TableField(value = "ins_fre")
|
||||
private Byte insFre;
|
||||
|
||||
/**
|
||||
* 客户经理
|
||||
*/
|
||||
@TableField(value = "account_manager")
|
||||
private String accountManager;
|
||||
|
||||
/**
|
||||
* 经理电话
|
||||
*/
|
||||
@TableField(value = "account_phone")
|
||||
private String accountPhone;
|
||||
|
||||
/**
|
||||
* 注册地址
|
||||
*/
|
||||
@TableField(value = "register_address")
|
||||
private String registerAddress;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@TableField(value = "dept_id")
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 法人/负责人
|
||||
*/
|
||||
@TableField(value = "legal_name")
|
||||
private String legalName;
|
||||
|
||||
/**
|
||||
* 是否为业务员录入(1是 2否)
|
||||
*/
|
||||
@TableField(value = "is_enter")
|
||||
private Byte isEnter;
|
||||
}
|
||||
|
|
@ -0,0 +1,230 @@
|
|||
package com.chushang.inspection.terminal.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.chushang.common.mybatis.base.BaseEntity;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
/**
|
||||
* 终端信息表
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=true)
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "st_terminal")
|
||||
public class Terminal extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "terminal_id", type = IdType.ASSIGN_ID)
|
||||
private Long terminalId;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
@TableField(value = "dept_id")
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
@TableField(value = "task_id")
|
||||
private Long taskId;
|
||||
|
||||
/**
|
||||
* 下级任务id
|
||||
*/
|
||||
@TableField(value = "lower_task_id")
|
||||
private Long lowerTaskId;
|
||||
|
||||
/**
|
||||
* 所属商户id
|
||||
*/
|
||||
@TableField(value = "store_id")
|
||||
private Long storeId;
|
||||
|
||||
/**
|
||||
* 所属商户编号
|
||||
*/
|
||||
@TableField(value = "store_no")
|
||||
private String storeNo;
|
||||
|
||||
/**
|
||||
* 终端sn号
|
||||
*/
|
||||
@TableField(value = "terminal_sn")
|
||||
private String terminalSn;
|
||||
|
||||
/**
|
||||
* 终端编号
|
||||
*/
|
||||
@TableField(value = "terminal_no")
|
||||
private String terminalNo;
|
||||
|
||||
/**
|
||||
* 终端类型
|
||||
*/
|
||||
@TableField(value = "terminal_type")
|
||||
private Byte terminalType;
|
||||
|
||||
/**
|
||||
* 终端型号
|
||||
*/
|
||||
@TableField(value = "terminal_model")
|
||||
private String terminalModel;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@TableField(value = "terminal_version")
|
||||
private String terminalVersion;
|
||||
|
||||
/**
|
||||
* 终端地址
|
||||
*/
|
||||
@TableField(value = "terminal_address")
|
||||
private String terminalAddress;
|
||||
|
||||
/**
|
||||
* 终端来源
|
||||
*/
|
||||
@TableField(value = "terminal_source")
|
||||
private Byte terminalSource;
|
||||
|
||||
/**
|
||||
* 终端产权人
|
||||
*/
|
||||
@TableField(value = "terminal_property")
|
||||
private Byte terminalProperty;
|
||||
|
||||
/**
|
||||
* 是否占用
|
||||
*/
|
||||
@TableField(value = "occupy")
|
||||
private Boolean occupy;
|
||||
|
||||
/**
|
||||
* 终端状态
|
||||
*/
|
||||
@TableField(value = "terminal_status")
|
||||
private Byte terminalStatus;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@TableField(value = "`state`")
|
||||
private Byte state;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField(value = "remark")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 银行资产管理码
|
||||
*/
|
||||
@TableField(value = "management_code")
|
||||
private String managementCode;
|
||||
|
||||
/**
|
||||
* 地理位置信息
|
||||
*/
|
||||
@TableField(value = "geographic_location")
|
||||
private String geographicLocation;
|
||||
|
||||
/**
|
||||
* 地理位置信息地址
|
||||
*/
|
||||
@TableField(value = "geographic_address")
|
||||
private String geographicAddress;
|
||||
|
||||
/**
|
||||
* 巡检位置信息
|
||||
*/
|
||||
@TableField(value = "work_location")
|
||||
private String workLocation;
|
||||
|
||||
/**
|
||||
* 巡检位置信息
|
||||
*/
|
||||
@TableField(value = "work_adderss")
|
||||
private String workAdderss;
|
||||
|
||||
/**
|
||||
* 偏差(直线距离 米)
|
||||
*/
|
||||
@TableField(value = "deviation")
|
||||
private Long deviation;
|
||||
|
||||
/**
|
||||
* 入库时间
|
||||
*/
|
||||
@TableField(value = "storage_time")
|
||||
private Date storageTime;
|
||||
|
||||
/**
|
||||
* 出库时间
|
||||
*/
|
||||
@TableField(value = "delivery_time")
|
||||
private Date deliveryTime;
|
||||
|
||||
/**
|
||||
* 出库原因
|
||||
*/
|
||||
@TableField(value = "reason_for_shipment")
|
||||
private Byte reasonForShipment;
|
||||
|
||||
/**
|
||||
* 操作员编号
|
||||
*/
|
||||
@TableField(value = "operator_id")
|
||||
private String operatorId;
|
||||
|
||||
/**
|
||||
* 预制码编码
|
||||
*/
|
||||
@TableField(value = "precode_encoding")
|
||||
private String precodeEncoding;
|
||||
|
||||
/**
|
||||
* 是否为业务员录入(1是 2否)
|
||||
*/
|
||||
@TableField(value = "is_enter")
|
||||
private Byte isEnter;
|
||||
|
||||
/**
|
||||
* 上次服务结果
|
||||
*/
|
||||
@TableField(value = "service_result")
|
||||
private Byte serviceResult;
|
||||
|
||||
/**
|
||||
* 审核通过次数
|
||||
*/
|
||||
@TableField(value = "times_pass")
|
||||
private Integer timesPass;
|
||||
|
||||
/**
|
||||
* 巡检状态 1 已巡检 2 未巡检
|
||||
*/
|
||||
@TableField(value = "inspection_status")
|
||||
private Byte inspectionStatus;
|
||||
|
||||
/**
|
||||
* 巡检时间(上次业务员处理时间)
|
||||
*/
|
||||
@TableField(value = "inspection_time")
|
||||
private Date inspectionTime;
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.chushang.inspection.terminal.query;
|
||||
|
||||
import com.chushang.common.mybatis.annotation.Condition;
|
||||
import com.chushang.common.mybatis.page.CommonParam;
|
||||
import lombok.*;
|
||||
|
||||
import javax.validation.constraints.Size;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class FiveUnifiedStoreDetailsQuery extends CommonParam {
|
||||
|
||||
/**
|
||||
* 一级分行id
|
||||
*/
|
||||
@Condition(name = "first_level_branch")
|
||||
private Long firstLevelBranch;
|
||||
|
||||
/**
|
||||
* 二级分行id
|
||||
*/
|
||||
@Condition(name = "secondary_branches", type = Condition.ConditionType.in)
|
||||
private List<Long> secondaryBranches;
|
||||
|
||||
/**
|
||||
* 商户编号
|
||||
*/
|
||||
@Size(max = 64, message = "商户编号不能超过64个字符")
|
||||
private String no;
|
||||
|
||||
/**
|
||||
* 终端编号
|
||||
*/
|
||||
@Size(max = 30, message = "终端sn号不能超过30个字符")
|
||||
private String terminalNo;
|
||||
}
|
||||
|
|
@ -0,0 +1,142 @@
|
|||
package com.chushang.inspection.terminal.vo;
|
||||
|
||||
import cn.hutool.core.date.DatePattern;
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.alibaba.excel.annotation.format.DateTimeFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Data
|
||||
public class FiveStoreVO implements Serializable {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ExcelIgnore
|
||||
private Long fiveId;
|
||||
|
||||
/**
|
||||
* 终端id
|
||||
*/
|
||||
@JsonIgnore
|
||||
@ExcelIgnore
|
||||
private Long terminalId;
|
||||
|
||||
/**
|
||||
* 终端编号
|
||||
*/
|
||||
@ExcelProperty("终端编号")
|
||||
private String terminalNo;
|
||||
|
||||
/**
|
||||
* 商户id
|
||||
*/
|
||||
@JsonIgnore
|
||||
@ExcelIgnore
|
||||
private Long storeId;
|
||||
|
||||
/**
|
||||
* 商户编号
|
||||
*/
|
||||
@ExcelProperty("商户编号")
|
||||
private String storeNo;
|
||||
|
||||
/**
|
||||
* 商户名称
|
||||
*/
|
||||
@ExcelProperty("商户名称")
|
||||
private String storeName;
|
||||
|
||||
/**
|
||||
* 一级分行id
|
||||
*/
|
||||
@JsonIgnore
|
||||
@ExcelIgnore
|
||||
private Long firstLevelBranch;
|
||||
|
||||
/**
|
||||
* 一级分行编号
|
||||
*/
|
||||
@ExcelProperty("一级分行编号")
|
||||
private String firstLevelBranchNumber;
|
||||
|
||||
/**
|
||||
* 一级分行名称
|
||||
*/
|
||||
@ExcelProperty("一级分行名称")
|
||||
private String firstLevelBranchName;
|
||||
|
||||
|
||||
/**
|
||||
* 二级分行
|
||||
*/
|
||||
@JsonIgnore
|
||||
@ExcelIgnore
|
||||
private Long secondaryBranches;
|
||||
|
||||
/**
|
||||
* 二级分行编号
|
||||
*/
|
||||
@ExcelProperty("二级分行编号")
|
||||
private String secondaryBranchesNumber;
|
||||
|
||||
/**
|
||||
* 二级分行名称
|
||||
*/
|
||||
@ExcelProperty("二级分行名称")
|
||||
private String secondaryBranchesName;
|
||||
|
||||
/**
|
||||
* 当年新签约商户标志
|
||||
*/
|
||||
@ExcelProperty("当年新签约商户标志")
|
||||
private Integer logoOfNewlySignedMerchantsThatYear;
|
||||
|
||||
/**
|
||||
* 当月新签约商户标志
|
||||
*/
|
||||
@ExcelProperty("当月新签约商户标志")
|
||||
private Integer logoOfNewlySignedMerchantsOfTheMonth;
|
||||
|
||||
/**
|
||||
* 当日新签约商户标志
|
||||
*/
|
||||
@ExcelProperty("当日新签约商户标志")
|
||||
private Integer logoOfNewlySignedMerchantsOnTheDay;
|
||||
|
||||
/**
|
||||
* 客户名称
|
||||
*/
|
||||
@ExcelProperty("客户名称")
|
||||
private String clientName;
|
||||
|
||||
/**
|
||||
* 客户身份标识
|
||||
*/
|
||||
@ExcelProperty("客户身份标识")
|
||||
private Integer customerId;
|
||||
|
||||
/**
|
||||
* 营销日期
|
||||
*/
|
||||
@ExcelProperty("营销日期")
|
||||
@DateTimeFormat(DatePattern.CHINESE_DATE_PATTERN)
|
||||
private LocalDate marketingDate;
|
||||
|
||||
/**
|
||||
* 消费日期
|
||||
*/
|
||||
@ExcelProperty("消费日期")
|
||||
@DateTimeFormat(DatePattern.CHINESE_DATE_PATTERN)
|
||||
private LocalDate consumptionDate;
|
||||
|
||||
/**
|
||||
* 营销人
|
||||
*/
|
||||
@ExcelProperty("营销人")
|
||||
private String marketer;
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.chushang.inspection.terminal.controller;
|
||||
|
||||
import com.chushang.common.core.web.AjaxResult;
|
||||
import com.chushang.inspection.terminal.query.FiveUnifiedStoreDetailsQuery;
|
||||
import com.chushang.inspection.terminal.service.FiveStoreService;
|
||||
import com.chushang.security.annotation.RequiresPermissions;
|
||||
import lombok.extern.java.Log;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 五统一商户明细(内蒙古建行随付贷)(st_five_store)表控制层
|
||||
*
|
||||
* @author xxxxx
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/store/five")
|
||||
public class FiveStoreController {
|
||||
|
||||
|
||||
@Resource
|
||||
FiveStoreService fiveStoreService;
|
||||
|
||||
/**
|
||||
* 分页查询五统一商户明细(内蒙古建行随付贷)
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@RequiresPermissions("five:unified:store")
|
||||
public AjaxResult pageList(@Validated FiveUnifiedStoreDetailsQuery query) {
|
||||
return AjaxResult.success(fiveStoreService.pageList(query));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
package com.chushang.inspection.terminal.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 商户信息表(st_store)表控制层
|
||||
*
|
||||
* @author xxxxx
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/store")
|
||||
public class StoreController {
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
package com.chushang.inspection.terminal.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 终端信息表(st_terminal)表控制层
|
||||
*
|
||||
* @author xxxxx
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/terminal")
|
||||
public class TerminalController {
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.chushang.inspection.terminal.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.chushang.inspection.terminal.po.FiveStore;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
public interface FiveStoreMapper extends BaseMapper<FiveStore> {
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.chushang.inspection.terminal.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.chushang.inspection.terminal.po.Store;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
public interface StoreMapper extends BaseMapper<Store> {
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.chushang.inspection.terminal.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.chushang.inspection.terminal.po.Terminal;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
public interface TerminalMapper extends BaseMapper<Terminal> {
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.chushang.inspection.terminal.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.chushang.common.mybatis.utils.PageResult;
|
||||
import com.chushang.inspection.terminal.po.FiveStore;
|
||||
import com.chushang.inspection.terminal.query.FiveUnifiedStoreDetailsQuery;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
public interface FiveStoreService extends IService<FiveStore>{
|
||||
|
||||
|
||||
PageResult pageList(FiveUnifiedStoreDetailsQuery query);
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
package com.chushang.inspection.terminal.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.chushang.inspection.terminal.po.Store;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
public interface StoreService extends IService<Store>{
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
package com.chushang.inspection.terminal.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.chushang.inspection.terminal.po.Terminal;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
public interface TerminalService extends IService<Terminal>{
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.chushang.inspection.terminal.service.impl;
|
||||
|
||||
import com.chushang.common.mybatis.utils.PageResult;
|
||||
import com.chushang.datascope.annotation.DataScope;
|
||||
import com.chushang.inspection.terminal.po.FiveStore;
|
||||
import com.chushang.inspection.terminal.query.FiveUnifiedStoreDetailsQuery;
|
||||
import com.chushang.inspection.terminal.service.FiveStoreService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.chushang.inspection.terminal.mapper.FiveStoreMapper;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
@Service
|
||||
public class FiveStoreServiceImpl extends ServiceImpl<FiveStoreMapper, FiveStore> implements FiveStoreService {
|
||||
|
||||
@Override
|
||||
@DataScope
|
||||
public PageResult pageList(FiveUnifiedStoreDetailsQuery query) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.chushang.inspection.terminal.service.impl;
|
||||
|
||||
import com.chushang.inspection.terminal.po.Store;
|
||||
import com.chushang.inspection.terminal.service.StoreService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.chushang.inspection.terminal.mapper.StoreMapper;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
@Service
|
||||
public class StoreServiceImpl extends ServiceImpl<StoreMapper, Store> implements StoreService {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.chushang.inspection.terminal.service.impl;
|
||||
|
||||
import com.chushang.inspection.terminal.po.Terminal;
|
||||
import com.chushang.inspection.terminal.service.TerminalService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.chushang.inspection.terminal.mapper.TerminalMapper;
|
||||
|
||||
/**
|
||||
* @auther: zhao
|
||||
* @date: 2024/6/21 16:39
|
||||
*/
|
||||
@Service
|
||||
public class TerminalServiceImpl extends ServiceImpl<TerminalMapper, Terminal> implements TerminalService {
|
||||
|
||||
}
|
||||
|
|
@ -3,13 +3,17 @@ server:
|
|||
shutdown: graceful
|
||||
port: 8086
|
||||
servlet:
|
||||
context-path: /task
|
||||
context-path: /inspection
|
||||
tomcat:
|
||||
uri-encoding: UTF-8
|
||||
threads:
|
||||
max: 800
|
||||
min-spare: 100
|
||||
spring:
|
||||
cache:
|
||||
type: redis
|
||||
redis:
|
||||
cache-null-values: true
|
||||
servlet:
|
||||
multipart:
|
||||
# 修改上传文件临时路径为 /data1/tmp
|
||||
|
|
|
|||
|
|
@ -0,0 +1,36 @@
|
|||
<?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.chushang.inspection.terminal.mapper.FiveStoreMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chushang.inspection.terminal.StFiveStore">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table st_five_store-->
|
||||
<id column="five_id" jdbcType="BIGINT" property="fiveId" />
|
||||
<result column="terminal_id" jdbcType="BIGINT" property="terminalId" />
|
||||
<result column="store_id" jdbcType="BIGINT" property="storeId" />
|
||||
<result column="dept_id" jdbcType="BIGINT" property="deptId" />
|
||||
<result column="first_level_branch" jdbcType="BIGINT" property="firstLevelBranch" />
|
||||
<result column="secondary_branches" jdbcType="BIGINT" property="secondaryBranches" />
|
||||
<result column="logo_of_newly_signed_merchants_that_year" jdbcType="TINYINT" property="logoOfNewlySignedMerchantsThatYear" />
|
||||
<result column="logo_of_newly_signed_merchants_of_the_month" jdbcType="TINYINT" property="logoOfNewlySignedMerchantsOfTheMonth" />
|
||||
<result column="logo_of_newly_signed_merchants_on_the_day" jdbcType="TINYINT" property="logoOfNewlySignedMerchantsOnTheDay" />
|
||||
<result column="client_name" jdbcType="VARCHAR" property="clientName" />
|
||||
<result column="customer_id" jdbcType="TINYINT" property="customerId" />
|
||||
<result column="marketing_date" jdbcType="TIMESTAMP" property="marketingDate" />
|
||||
<result column="consumption_date" jdbcType="TIMESTAMP" property="consumptionDate" />
|
||||
<result column="marketer" jdbcType="VARCHAR" property="marketer" />
|
||||
<result column="version" jdbcType="BIGINT" property="version" />
|
||||
<result column="del_state" jdbcType="BOOLEAN" property="delState" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
five_id, terminal_id, store_id, dept_id, first_level_branch, secondary_branches,
|
||||
logo_of_newly_signed_merchants_that_year, logo_of_newly_signed_merchants_of_the_month,
|
||||
logo_of_newly_signed_merchants_on_the_day, client_name, customer_id, marketing_date,
|
||||
consumption_date, marketer, version, del_state, create_by, create_time, update_by,
|
||||
update_time
|
||||
</sql>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<?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.chushang.inspection.terminal.mapper.StoreMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chushang.inspection.terminal.StStore">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table st_store-->
|
||||
<id column="store_id" jdbcType="BIGINT" property="storeId" />
|
||||
<result column="task_id" jdbcType="BIGINT" property="taskId" />
|
||||
<result column="lower_task_id" jdbcType="BIGINT" property="lowerTaskId" />
|
||||
<result column="store_no" jdbcType="VARCHAR" property="storeNo" />
|
||||
<result column="store_name" jdbcType="VARCHAR" property="storeName" />
|
||||
<result column="store_contact" jdbcType="VARCHAR" property="storeContact" />
|
||||
<result column="store_phone" jdbcType="VARCHAR" property="storePhone" />
|
||||
<result column="store_address" jdbcType="VARCHAR" property="storeAddress" />
|
||||
<result column="special_num" jdbcType="VARCHAR" property="specialNum" />
|
||||
<result column="shop_name" jdbcType="VARCHAR" property="shopName" />
|
||||
<result column="register_time" jdbcType="TIMESTAMP" property="registerTime" />
|
||||
<result column="store_type" jdbcType="TINYINT" property="storeType" />
|
||||
<result column="products" jdbcType="VARCHAR" property="products" />
|
||||
<result column="tip_tool" jdbcType="VARCHAR" property="tipTool" />
|
||||
<result column="admin_id" jdbcType="VARCHAR" property="adminId" />
|
||||
<result column="ins_fre" jdbcType="TINYINT" property="insFre" />
|
||||
<result column="account_manager" jdbcType="VARCHAR" property="accountManager" />
|
||||
<result column="account_phone" jdbcType="VARCHAR" property="accountPhone" />
|
||||
<result column="register_address" jdbcType="VARCHAR" property="registerAddress" />
|
||||
<result column="dept_id" jdbcType="BIGINT" property="deptId" />
|
||||
<result column="legal_name" jdbcType="VARCHAR" property="legalName" />
|
||||
<result column="is_enter" jdbcType="TINYINT" property="isEnter" />
|
||||
<result column="version" jdbcType="BIGINT" property="version" />
|
||||
<result column="del_state" jdbcType="BOOLEAN" property="delState" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
store_id, task_id, lower_task_id, store_no, store_name, store_contact, store_phone,
|
||||
store_address, special_num, shop_name, register_time, store_type, products, tip_tool,
|
||||
admin_id, ins_fre, account_manager, account_phone, register_address, dept_id, legal_name,
|
||||
is_enter, version, del_state, create_by, create_time, update_by, update_time
|
||||
</sql>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
<?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.chushang.inspection.terminal.mapper.TerminalMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chushang.inspection.terminal.StTerminal">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table st_terminal-->
|
||||
<id column="terminal_id" jdbcType="BIGINT" property="terminalId" />
|
||||
<result column="dept_id" jdbcType="BIGINT" property="deptId" />
|
||||
<result column="task_id" jdbcType="BIGINT" property="taskId" />
|
||||
<result column="lower_task_id" jdbcType="BIGINT" property="lowerTaskId" />
|
||||
<result column="store_id" jdbcType="BIGINT" property="storeId" />
|
||||
<result column="store_no" jdbcType="VARCHAR" property="storeNo" />
|
||||
<result column="terminal_sn" jdbcType="VARCHAR" property="terminalSn" />
|
||||
<result column="terminal_no" jdbcType="VARCHAR" property="terminalNo" />
|
||||
<result column="terminal_type" jdbcType="TINYINT" property="terminalType" />
|
||||
<result column="terminal_model" jdbcType="VARCHAR" property="terminalModel" />
|
||||
<result column="terminal_version" jdbcType="VARCHAR" property="terminalVersion" />
|
||||
<result column="terminal_address" jdbcType="VARCHAR" property="terminalAddress" />
|
||||
<result column="terminal_source" jdbcType="TINYINT" property="terminalSource" />
|
||||
<result column="terminal_property" jdbcType="TINYINT" property="terminalProperty" />
|
||||
<result column="occupy" jdbcType="BOOLEAN" property="occupy" />
|
||||
<result column="terminal_status" jdbcType="TINYINT" property="terminalStatus" />
|
||||
<result column="state" jdbcType="TINYINT" property="state" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="management_code" jdbcType="VARCHAR" property="managementCode" />
|
||||
<result column="geographic_location" jdbcType="VARCHAR" property="geographicLocation" />
|
||||
<result column="geographic_address" jdbcType="VARCHAR" property="geographicAddress" />
|
||||
<result column="work_location" jdbcType="VARCHAR" property="workLocation" />
|
||||
<result column="work_adderss" jdbcType="VARCHAR" property="workAdderss" />
|
||||
<result column="deviation" jdbcType="BIGINT" property="deviation" />
|
||||
<result column="storage_time" jdbcType="TIMESTAMP" property="storageTime" />
|
||||
<result column="delivery_time" jdbcType="TIMESTAMP" property="deliveryTime" />
|
||||
<result column="reason_for_shipment" jdbcType="TINYINT" property="reasonForShipment" />
|
||||
<result column="operator_id" jdbcType="VARCHAR" property="operatorId" />
|
||||
<result column="precode_encoding" jdbcType="VARCHAR" property="precodeEncoding" />
|
||||
<result column="is_enter" jdbcType="TINYINT" property="isEnter" />
|
||||
<result column="service_result" jdbcType="TINYINT" property="serviceResult" />
|
||||
<result column="times_pass" jdbcType="INTEGER" property="timesPass" />
|
||||
<result column="inspection_status" jdbcType="TINYINT" property="inspectionStatus" />
|
||||
<result column="inspection_time" jdbcType="TIMESTAMP" property="inspectionTime" />
|
||||
<result column="version" jdbcType="BIGINT" property="version" />
|
||||
<result column="del_state" jdbcType="BOOLEAN" property="delState" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
terminal_id, dept_id, task_id, lower_task_id, store_id, store_no, terminal_sn, terminal_no,
|
||||
terminal_type, terminal_model, terminal_version, terminal_address, terminal_source,
|
||||
terminal_property, occupy, terminal_status, `state`, remark, management_code, geographic_location,
|
||||
geographic_address, work_location, work_adderss, deviation, storage_time, delivery_time,
|
||||
reason_for_shipment, operator_id, precode_encoding, is_enter, service_result, times_pass,
|
||||
inspection_status, inspection_time, version, del_state, create_by, create_time, update_by,
|
||||
update_time
|
||||
</sql>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue