车流字段,表名修改---0.0.2

develop
Angel 10 months ago
parent 08db76f0e5
commit 64580e680c

@ -1,25 +1,33 @@
package com.ssf.mysqloracletest.domain; package com.ssf.mysqloracletest.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@TableName(value = "people_vehicle_flow") @TableName(value = "statistics_user_vehicle_info")
@Data @Data
public class PeopleVehicleFlow implements Serializable { public class PeopleVehicleFlow implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* (1:/2:)
* */
private Integer statistic_type;
/** /**
* *
* */ * */
private String date; private String statistic_time;
/** /**
* *
* */ * */
private String flow; private String statistic_count;
/**
* (1:/2:)
* */
private Integer type;
} }

@ -54,9 +54,9 @@ public class PeopleVehicleFlowTask {
queryWrapper.between("passtime", formattedDate,date.plusDays(1).format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))); queryWrapper.between("passtime", formattedDate,date.plusDays(1).format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")));
int count = tMotorvehicleService.count(queryWrapper); int count = tMotorvehicleService.count(queryWrapper);
PeopleVehicleFlow peopleVehicleFlow = new PeopleVehicleFlow(); PeopleVehicleFlow peopleVehicleFlow = new PeopleVehicleFlow();
peopleVehicleFlow.setFlow(String.valueOf(count)); peopleVehicleFlow.setStatistic_count(String.valueOf(count));
peopleVehicleFlow.setType(2); peopleVehicleFlow.setStatistic_type(2);
peopleVehicleFlow.setDate(date.toString()); peopleVehicleFlow.setStatistic_time(date.toString());
peopleVehicleFlowService.save(peopleVehicleFlow); peopleVehicleFlowService.save(peopleVehicleFlow);
} }
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save