Commit 1f22fa60 by 朱海

[chg]接待时间写入数据库

1 parent db4da0c2
...@@ -32,9 +32,9 @@ public class DPersonRecordDao { ...@@ -32,9 +32,9 @@ public class DPersonRecordDao {
public void createDPersonRecordBatch(List<DPersonRecord> personRecordList) { public void createDPersonRecordBatch(List<DPersonRecord> personRecordList) {
SqlParameterSource[] batch = SqlParameterSourceUtils.createBatch(personRecordList.toArray()); SqlParameterSource[] batch = SqlParameterSourceUtils.createBatch(personRecordList.toArray());
String sql = "insert into d_person_record (mall_id,account_id,count_date,person_unid,group_unid,age,gender,person_type,arrive_time, leave_time, " + String sql = "insert into d_person_record (mall_id,account_id,count_date,person_unid,group_unid,age,gender,person_type,arrive_time, leave_time, " +
"visit_count, visit_duration, engage_count,engage_time,reception_count,reception_duration,attention_count,attention_time)" + "visit_count, visit_duration, engage_count,engage_time,reception_count,reception_time,reception_duration,attention_count,attention_time)" +
" values(:mallId,:accountId,:countDate,:personUnid,:groupUnid,:age,:gender,:personType,:arriveTime,:leaveTime,:visitCount,:visitDuration," + " values(:mallId,:accountId,:countDate,:personUnid,:groupUnid,:age,:gender,:personType,:arriveTime,:leaveTime,:visitCount,:visitDuration," +
":engageCount,:engageTime,:receptionCount,:receptionDuration,:attentionCount,:attentionTime)"; ":engageCount,:engageTime,:receptionCount,:receptionTime,:receptionDuration,:attentionCount,:attentionTime)";
namedParameterJdbcTemplate.batchUpdate(sql, batch); namedParameterJdbcTemplate.batchUpdate(sql, batch);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!