新功能及bug修改
This commit is contained in:
@@ -10,5 +10,13 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>jeecg-system-local-api</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.opencsv</groupId>
|
||||
<artifactId>opencsv</artifactId>
|
||||
<version>5.7.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
+4
@@ -46,6 +46,10 @@ public class StUserBalanceVo {
|
||||
* 用户类型 0正式 1非正式 2家庭成员
|
||||
*/
|
||||
private String userType;
|
||||
/**
|
||||
* 家庭成员 对应主用户id
|
||||
*/
|
||||
private String mainUserId;
|
||||
/**
|
||||
* 食堂id
|
||||
*/
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package org.jeecg.equipment.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class StEquipmentDto {
|
||||
|
||||
@Schema(title = "设备名称编码")
|
||||
private String appPackageLocalUrl;
|
||||
@Schema(title = "所在位置")
|
||||
private String placement;
|
||||
@Schema(title = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
package org.jeecg.equipment.entity;
|
||||
|
||||
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.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: 设备管理表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2022-08-30
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("st_canteen_equipment")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Tag(name="st_canteen_equipment对象", description="食堂设备表")
|
||||
public class StCanteenEquipment implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(title = "设备编码")
|
||||
private String equipmentCode;
|
||||
|
||||
/**食堂id*/
|
||||
@Schema(title = "食堂id")
|
||||
private String canteenId;
|
||||
|
||||
@Schema(title = "设备ip")
|
||||
private String equipmentIp;
|
||||
/**
|
||||
* 本地人脸数
|
||||
*/
|
||||
@Schema(title = "本地人脸数")
|
||||
private Integer faceNum;
|
||||
/**
|
||||
* 设备剩余存储量
|
||||
*/
|
||||
@Schema(title = "设备剩余存储量")
|
||||
private String availableMemory;
|
||||
/**创建日期*/
|
||||
@Schema(title = "创建日期")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
/**更新日期*/
|
||||
@Schema(title = "更新日期")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
+6
@@ -117,4 +117,10 @@ public class StEquipment implements Serializable {
|
||||
/**所属餐道餐道中的顺序*/
|
||||
@Schema(title = "所属餐道餐道中的顺序")
|
||||
private Integer owningTrackOrder;
|
||||
|
||||
@Schema(title = "所在位置")
|
||||
private String placement;
|
||||
|
||||
@Schema(title = "备注")
|
||||
private String remark;
|
||||
}
|
||||
|
||||
+5
@@ -19,6 +19,8 @@ public class StClientMemberTransactionRecordDTO {
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@Schema(title ="就餐时间")
|
||||
private String mainTimeDay;
|
||||
private String startDate;
|
||||
private String endDate;
|
||||
|
||||
private String startTime;
|
||||
|
||||
@@ -82,4 +84,7 @@ public class StClientMemberTransactionRecordDTO {
|
||||
|
||||
//直接部门ID
|
||||
private String departId;
|
||||
|
||||
@Schema(title ="餐次")
|
||||
private String dinnerType;
|
||||
}
|
||||
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package org.jeecg.payment.dto;
|
||||
|
||||
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*/
|
||||
@Data
|
||||
@Tag(name= "StExceptionRecordDTO对象", description = "消费异常记录")
|
||||
public class StExceptionRecordDTO {
|
||||
|
||||
/**
|
||||
* 时间区间
|
||||
*/
|
||||
private List<String> dates;
|
||||
private String startTime;
|
||||
private String endTime;
|
||||
|
||||
@Schema(title ="手机号")
|
||||
private String phone;
|
||||
|
||||
@Schema(title ="会员姓名")
|
||||
private String userName;
|
||||
|
||||
@Schema(title ="工号")
|
||||
private String workNo;
|
||||
|
||||
@Schema(title ="卡号")
|
||||
private String cardCode;
|
||||
|
||||
//直接部门ID
|
||||
private String departId;
|
||||
@Schema(title="部门集合")
|
||||
private List<String> list;
|
||||
|
||||
@Schema(title ="当前页")
|
||||
private Integer pageNo;
|
||||
@Schema(title ="数量/页")
|
||||
private Integer pageSize;
|
||||
|
||||
}
|
||||
+4
@@ -43,6 +43,10 @@ public class StBbzxOrderInfo extends JeecgEntity implements Serializable {
|
||||
|
||||
@Schema(title ="餐次名称")
|
||||
private String dinnerType;
|
||||
|
||||
@Schema(title ="设备编码")
|
||||
private String deviceCode;
|
||||
|
||||
/**
|
||||
* 经营模式、扣费类型(1:固定扣费,2:固定+补贴扣费,3:按量扣费)
|
||||
*/
|
||||
|
||||
+3
@@ -38,6 +38,9 @@ public class StClientMemberTransactionRecord extends JeecgEntity implements Seri
|
||||
@Schema(title ="交易流水号")
|
||||
private String serialNo;
|
||||
|
||||
@Schema(title ="设备编码")
|
||||
private String deviceCode;
|
||||
|
||||
/**
|
||||
* 订单号
|
||||
*/
|
||||
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* use shuwei code generator created
|
||||
*/
|
||||
package org.jeecg.payment.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
@Data
|
||||
@TableName("st_consumption_exception_record")
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Tag(name= "StConsumptionExceptionRecord对象", description = "异常消费流水")
|
||||
public class StConsumptionExceptionRecord implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(title ="ID")
|
||||
private String id;
|
||||
@Schema(title ="用户id")
|
||||
private String userId;
|
||||
@Schema(title ="设备编码")
|
||||
private String deviceCode;
|
||||
@Schema(title ="食堂ID")
|
||||
private String canteenId;
|
||||
@Schema(title ="卡号")
|
||||
private String cardCode;
|
||||
@Schema(title ="支付唯一id")
|
||||
private String payId;
|
||||
@Schema(title ="消费时间(时间戳)")
|
||||
private String dateTime;
|
||||
@Schema(title ="消费时间")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date payTime;
|
||||
@Schema(title ="消费金额")
|
||||
private BigDecimal spendMoney;
|
||||
@Schema(title ="二次扣费标记 1 是; 0 否")
|
||||
private Integer secondChargeFlag;
|
||||
@Schema(title ="自定义扣费标记 1 是 ; 0 否")
|
||||
private Integer isCustom;
|
||||
@Schema(title ="恢复标记 1 是; 0 否")
|
||||
private Integer isRestore;
|
||||
|
||||
|
||||
/**创建日期*/
|
||||
@Schema(title = "创建日期")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
/**更新日期*/
|
||||
@Schema(title = "更新日期")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package org.jeecg.payment.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class StCanteenEquipmentVo {
|
||||
|
||||
@Schema(description = "食堂id")
|
||||
private String canteenId;
|
||||
@Schema(description = "食堂名称")
|
||||
private String restName;
|
||||
@Schema(description = "设备名称")
|
||||
private String equipmentName;
|
||||
@Schema(description = "设备编码")
|
||||
private String equipmentCode;
|
||||
@Schema(description = "设备编码(前端展示)")
|
||||
private String appPackageLocalUrl;
|
||||
@Schema(description = "所在位置")
|
||||
private String placement;
|
||||
@Schema(description = "设备描述")
|
||||
private String remark;
|
||||
@Schema(description = "设备ip")
|
||||
private String equipmentIp;
|
||||
@Schema(description = "本地人脸数")
|
||||
private Integer faceNum;
|
||||
@Schema(description = "设备剩余存储量")
|
||||
private String availableMemory;
|
||||
@Schema(description = "设备状态: 0离线 1在线")
|
||||
private String status;
|
||||
@Schema(description = "上传数量")
|
||||
private Integer totalNum;
|
||||
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
package org.jeecg.payment.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.jeecg.common.util.BigDecimalSerialize;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class StExceptionRecordVo {
|
||||
|
||||
@Schema(title ="id")
|
||||
private String id;
|
||||
|
||||
@Schema(title ="卡号")
|
||||
private String cardCode;
|
||||
|
||||
@Schema(title ="会员姓名")
|
||||
private String userName;
|
||||
@Schema(title ="会员电话")
|
||||
private String phone;
|
||||
@Schema(title ="工号")
|
||||
private String workNo;
|
||||
@Schema(title ="本次扣费金额")
|
||||
private BigDecimal spendMoney;
|
||||
@Schema(title ="自定义扣费标记 1 是 ; 0 否")
|
||||
private Integer isCustom;
|
||||
@Schema(title ="恢复标记 1 已恢复; 0 否")
|
||||
private Integer isRestore;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@Schema(title ="消费时间")
|
||||
private Date payTime;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@Schema(title ="数据上传时间")
|
||||
private Date createTime;
|
||||
|
||||
@Schema(title ="食堂名称")
|
||||
private String restName;
|
||||
|
||||
@Schema(title ="餐次名称")
|
||||
private String dinnerType;
|
||||
|
||||
@Schema(title ="部门名称")
|
||||
private String deptName;
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package org.jeecg.payment.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class StRecordNumVo {
|
||||
|
||||
@Schema(description = "数量")
|
||||
private Integer num;
|
||||
|
||||
@Schema(description = "设备编码")
|
||||
private String deviceCode;
|
||||
}
|
||||
+12
@@ -1,5 +1,6 @@
|
||||
package org.jeecg.payment.vo;
|
||||
|
||||
import com.opencsv.bean.CsvBindByName;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
@@ -14,6 +15,7 @@ import java.math.BigDecimal;
|
||||
@Data
|
||||
public class StRfidVo {
|
||||
// @NotEmpty(message = "用户ID不能为空")
|
||||
@CsvBindByName(column = "user_id")
|
||||
private String userId;
|
||||
@NotEmpty(message = "设备编码不能为空")
|
||||
private String deviceCode;
|
||||
@@ -22,25 +24,35 @@ public class StRfidVo {
|
||||
/**
|
||||
* 卡号
|
||||
*/
|
||||
@CsvBindByName(column = "card_code")
|
||||
private String cardCode;
|
||||
/**
|
||||
* 闸机记录的支付唯一id(用于判断防止重复支付的标记)
|
||||
*/
|
||||
@CsvBindByName(column = "pay_id")
|
||||
private String payId;
|
||||
|
||||
//===离线扣费场景参数
|
||||
//消费时间(时间戳)
|
||||
@CsvBindByName(column = "date_time")
|
||||
private String dateTime;
|
||||
|
||||
//本次扣费金额(后端根据规则计算)
|
||||
@CsvBindByName(column = "spend_money")
|
||||
private BigDecimal spendMoney;
|
||||
/**
|
||||
* 二次扣费标记 1 是; 0 否
|
||||
*/
|
||||
@CsvBindByName(column = "second_charge_flag")
|
||||
private Integer secondChargeFlag;
|
||||
|
||||
/**
|
||||
* 自定义扣费标记 1 是 ; 0 否
|
||||
*/
|
||||
@CsvBindByName(column = "is_custom")
|
||||
private Integer isCustom;
|
||||
/**
|
||||
* 恢复标记 1 是; 0 否
|
||||
*/
|
||||
private Integer isRestore;
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package org.jeecg.system.vo;
|
||||
|
||||
import lombok.Data;
|
||||
import org.jeecg.user.entity.StUserFaceimgSubIncremInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SwHeartbeatFaceVo {
|
||||
|
||||
/**
|
||||
* 是否下发
|
||||
*/
|
||||
private boolean isIssue;
|
||||
|
||||
/**
|
||||
* 人脸数据
|
||||
*/
|
||||
private List<StUserFaceimgSubIncremInfo> faceList;
|
||||
}
|
||||
Reference in New Issue
Block a user