Browse Source

添加字段

master
茹嘉辉 8 months ago
parent
commit
90df42246e
4 changed files with 2 additions and 4 deletions
  1. +1
    -1
      src/main/java/com/binary/weight/WeightApplication.java
  2. +0
    -1
      src/main/java/com/binary/weight/service/OrderService.java
  3. +0
    -1
      src/main/java/com/binary/weight/service/SyncService.java
  4. +1
    -1
      src/main/java/com/binary/weight/service/WeightService.java

+ 1
- 1
src/main/java/com/binary/weight/WeightApplication.java View File

@ -4,7 +4,7 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
//@EnableScheduling
@EnableScheduling
@SpringBootApplication
public class WeightApplication {

+ 0
- 1
src/main/java/com/binary/weight/service/OrderService.java View File

@ -1,7 +1,6 @@
package com.binary.weight.service;
import com.binary.weight.entity.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;

+ 0
- 1
src/main/java/com/binary/weight/service/SyncService.java View File

@ -32,7 +32,6 @@ public class SyncService {
}
public void sync() {
long start = System.currentTimeMillis();
String sql = "SELECT TOP 1000 * FROM tbl_weight_info WHERE id > ?";
String id = jdbcTemplate.queryForObject("select max(id) from tbl_weight_info", String.class);

+ 1
- 1
src/main/java/com/binary/weight/service/WeightService.java View File

@ -19,7 +19,7 @@ public class WeightService {
private JdbcTemplate jdbcTemplate;
public byte[] getWeightData() {
String sql = "SELECT net, carno, receiver, remark, goods, YEAR(gross_time) as `year`, MONTH(gross_time) as `month`, DAY(gross_time) as `day`, TIME(gross_time) as `time` FROM tbl_weight_info";
String sql = "SELECT net, carNo, receiver, remark, goods, YEAR(gross_time) as `year`, MONTH(gross_time) as `month`, DAY(gross_time) as `day`, TIME(gross_time) as `time`, orderNo, salesTy, shipNo, transportInfo, wharf, car_team as carTeam FROM tbl_weight_info";
if (cache == null) {
ObjectMapper objectMapper = new ObjectMapper();

Loading…
Cancel
Save