From 674375283c69f56f181d7fda21f707865499d9ae Mon Sep 17 00:00:00 2001
From: Administrator <1144154118@qq.com>
Date: 星期六, 19 八月 2023 11:08:28 +0800
Subject: [PATCH] 打卡
---
ard-work/src/main/java/com/ruoyi/app/patrolplan/domain/ArdAppPatrolplan.java | 2 ++
ard-work/src/main/java/com/ruoyi/app/patrolplan/service/impl/ArdAppPatrolpointRecordServiceImpl.java | 3 ++-
ard-work/src/main/resources/mapper/app/ArdAppPatrolpointRecordMapper.xml | 14 +++++++++++++-
3 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/app/patrolplan/domain/ArdAppPatrolplan.java b/ard-work/src/main/java/com/ruoyi/app/patrolplan/domain/ArdAppPatrolplan.java
index e714ae7..a4867f8 100644
--- a/ard-work/src/main/java/com/ruoyi/app/patrolplan/domain/ArdAppPatrolplan.java
+++ b/ard-work/src/main/java/com/ruoyi/app/patrolplan/domain/ArdAppPatrolplan.java
@@ -79,6 +79,8 @@
private String delTime;
+ private String son;
+
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
diff --git a/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/impl/ArdAppPatrolpointRecordServiceImpl.java b/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/impl/ArdAppPatrolpointRecordServiceImpl.java
index 722c83c..dc5ff69 100644
--- a/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/impl/ArdAppPatrolpointRecordServiceImpl.java
+++ b/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/impl/ArdAppPatrolpointRecordServiceImpl.java
@@ -71,7 +71,8 @@
.eq("user_id",ardAppPatrolpointRecord.getUserId());
List<ArdAppPatrolpointRecord> recordList = ardAppPatrolpointRecordMapper.selectList(recordQueryWrapper);
ardAppPatrolpointRecord.setPointsNum(recordList.size()+1);
- int num = ardAppPatrolpointRecordMapper.insert(ardAppPatrolpointRecord);
+// int num = ardAppPatrolpointRecordMapper.insert(ardAppPatrolpointRecord);
+ int num = ardAppPatrolpointRecordMapper.insertArdAppPatrolpointRecord(ardAppPatrolpointRecord);
List<String> list = ardAppPatrolpointRecord.getImg();
for (int i = 0; i < list.size(); i++) {
ArdAppPatrolpointRecordImg recordImg = new ArdAppPatrolpointRecordImg();
diff --git a/ard-work/src/main/resources/mapper/app/ArdAppPatrolpointRecordMapper.xml b/ard-work/src/main/resources/mapper/app/ArdAppPatrolpointRecordMapper.xml
index 9e0e4a0..2255b0e 100644
--- a/ard-work/src/main/resources/mapper/app/ArdAppPatrolpointRecordMapper.xml
+++ b/ard-work/src/main/resources/mapper/app/ArdAppPatrolpointRecordMapper.xml
@@ -44,6 +44,12 @@
<if test="userId != null">user_id,</if>
<if test="recordTime != null">record_time,</if>
<if test="appPatrolpointsId != null">app_patrolpoints_id,</if>
+ <if test="planId != null">plan_id,</if>
+ <if test="planName != null">plan_name,</if>
+ <if test="recordImg != null">record_img,</if>
+ <if test="userName != null">user_name,</if>
+ <if test="appPatrolpointsName != null">app_patrolpoints_name,</if>
+ <if test="pointsNum != null">points_num,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@@ -53,7 +59,13 @@
<if test="userId != null">#{userId},</if>
<if test="recordTime != null">#{recordTime},</if>
<if test="appPatrolpointsId != null">#{appPatrolpointsId},</if>
- </trim>
+ <if test="planId != null">#{planId},</if>
+ <if test="planName != null">#{planName},</if>
+ <if test="recordImg != null">#{recordImg},</if>
+ <if test="userName != null">#{userName},</if>
+ <if test="appPatrolpointsName != null">#{appPatrolpointsName},</if>
+ <if test="pointsNum != null">#{pointsNum},</if>
+ </trim>
</insert>
<update id="updateArdAppPatrolpointRecord" parameterType="ArdAppPatrolpointRecord">
--
Gitblit v1.9.3