Просмотр исходного кода

Merge remote-tracking branch 'origin/feature/dev' into feature/dev

wangxx 1 месяц назад
Родитель
Сommit
11968e00a6

+ 2 - 1
airport-common/src/main/java/com/sundot/airport/common/enums/BaseAttachmentSourceTypeEnum.java

@@ -14,7 +14,8 @@ public enum BaseAttachmentSourceTypeEnum {
14
     CHECK_CORRECTION("CHECK_CORRECTION", "问题整改表"),
14
     CHECK_CORRECTION("CHECK_CORRECTION", "问题整改表"),
15
     CHECK_CORRECTION_RECORD("CHECK_CORRECTION_RECORD", "问题整改表中检查记录"),
15
     CHECK_CORRECTION_RECORD("CHECK_CORRECTION_RECORD", "问题整改表中检查记录"),
16
     CHECK_PROJECT_ITEM("CHECK_PROJECT_ITEM", "检查项明细表"),
16
     CHECK_PROJECT_ITEM("CHECK_PROJECT_ITEM", "检查项明细表"),
17
-    ITEM_SEIZURE_ITEMS("ITEM_SEIZURE_ITEMS", "查获物品明细表");
17
+    ITEM_SEIZURE_ITEMS("ITEM_SEIZURE_ITEMS", "查获物品明细表"),
18
+    EQUIPMENT_LEDGER("EQUIPMENT_LEDGER", "设备台账表");
18
 
19
 
19
     private final String code;
20
     private final String code;
20
     private final String info;
21
     private final String info;

+ 53 - 0
airport-equipment/src/main/java/com/sundot/airport/equipment/domain/EquipmentLedger.java

@@ -1,11 +1,14 @@
1
 package com.sundot.airport.equipment.domain;
1
 package com.sundot.airport.equipment.domain;
2
 
2
 
3
 import java.util.Date;
3
 import java.util.Date;
4
+import java.util.List;
4
 
5
 
5
 import com.baomidou.mybatisplus.annotation.IdType;
6
 import com.baomidou.mybatisplus.annotation.IdType;
7
+import com.baomidou.mybatisplus.annotation.TableField;
6
 import com.baomidou.mybatisplus.annotation.TableId;
8
 import com.baomidou.mybatisplus.annotation.TableId;
7
 import com.baomidou.mybatisplus.annotation.TableName;
9
 import com.baomidou.mybatisplus.annotation.TableName;
8
 import com.fasterxml.jackson.annotation.JsonFormat;
10
 import com.fasterxml.jackson.annotation.JsonFormat;
11
+import com.sundot.airport.common.domain.BaseAttachment;
9
 import org.apache.commons.lang3.builder.ToStringBuilder;
12
 import org.apache.commons.lang3.builder.ToStringBuilder;
10
 import org.apache.commons.lang3.builder.ToStringStyle;
13
 import org.apache.commons.lang3.builder.ToStringStyle;
11
 import com.sundot.airport.common.annotation.Excel;
14
 import com.sundot.airport.common.annotation.Excel;
@@ -140,6 +143,22 @@ public class EquipmentLedger extends BaseEntity {
140
     @Excel(name = "定/自检小组组员2名称")
143
     @Excel(name = "定/自检小组组员2名称")
141
     private String inspectionTeamMember2Name;
144
     private String inspectionTeamMember2Name;
142
 
145
 
146
+    /** 设备定检记录列表*/
147
+    @TableField(exist = false)
148
+    private List<EquipmentInspectionRecord> equipmentInspectionRecordList;
149
+
150
+    /** 设备照片列表*/
151
+    @TableField(exist = false)
152
+    private List<BaseAttachment> baseAttachmentList;
153
+
154
+    /** 查询定/自检小组人员ID*/
155
+    @TableField(exist = false)
156
+    private String inspectionTeamUserId;
157
+
158
+    /** 查询定/自检小组人员ID名称*/
159
+    @TableField(exist = false)
160
+    private String inspectionTeamUserName;
161
+
143
     public void setTenantId(String tenantId) {
162
     public void setTenantId(String tenantId) {
144
         this.tenantId = tenantId;
163
         this.tenantId = tenantId;
145
     }
164
     }
@@ -356,6 +375,38 @@ public class EquipmentLedger extends BaseEntity {
356
         return inspectionTeamMember2Name;
375
         return inspectionTeamMember2Name;
357
     }
376
     }
358
 
377
 
378
+    public List<EquipmentInspectionRecord> getEquipmentInspectionRecordList() {
379
+        return equipmentInspectionRecordList;
380
+    }
381
+
382
+    public void setEquipmentInspectionRecordList(List<EquipmentInspectionRecord> equipmentInspectionRecordList) {
383
+        this.equipmentInspectionRecordList = equipmentInspectionRecordList;
384
+    }
385
+
386
+    public List<BaseAttachment> getBaseAttachmentList() {
387
+        return baseAttachmentList;
388
+    }
389
+
390
+    public void setBaseAttachmentList(List<BaseAttachment> baseAttachmentList) {
391
+        this.baseAttachmentList = baseAttachmentList;
392
+    }
393
+
394
+    public String getInspectionTeamUserId() {
395
+        return inspectionTeamUserId;
396
+    }
397
+
398
+    public void setInspectionTeamUserId(String inspectionTeamUserId) {
399
+        this.inspectionTeamUserId = inspectionTeamUserId;
400
+    }
401
+
402
+    public String getInspectionTeamUserName() {
403
+        return inspectionTeamUserName;
404
+    }
405
+
406
+    public void setInspectionTeamUserName(String inspectionTeamUserName) {
407
+        this.inspectionTeamUserName = inspectionTeamUserName;
408
+    }
409
+
359
     @Override
410
     @Override
360
     public String toString() {
411
     public String toString() {
361
         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
412
         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
@@ -391,6 +442,8 @@ public class EquipmentLedger extends BaseEntity {
391
                 .append("inspectionTeamMember1Name", getInspectionTeamMember1Name())
442
                 .append("inspectionTeamMember1Name", getInspectionTeamMember1Name())
392
                 .append("inspectionTeamMember2Id", getInspectionTeamMember2Id())
443
                 .append("inspectionTeamMember2Id", getInspectionTeamMember2Id())
393
                 .append("inspectionTeamMember2Name", getInspectionTeamMember2Name())
444
                 .append("inspectionTeamMember2Name", getInspectionTeamMember2Name())
445
+                .append("equipmentInspectionRecordList", getEquipmentInspectionRecordList())
446
+                .append("baseAttachmentList", getBaseAttachmentList())
394
                 .toString();
447
                 .toString();
395
     }
448
     }
396
 }
449
 }

+ 131 - 5
airport-equipment/src/main/java/com/sundot/airport/equipment/service/impl/EquipmentLedgerServiceImpl.java

@@ -2,13 +2,23 @@ package com.sundot.airport.equipment.service.impl;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
 
4
 
5
+import cn.hutool.core.collection.CollUtil;
6
+import cn.hutool.core.util.ObjUtil;
7
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
5
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
8
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
9
+import com.sundot.airport.common.domain.BaseAttachment;
10
+import com.sundot.airport.common.enums.BaseAttachmentSourceTypeEnum;
11
+import com.sundot.airport.common.exception.ServiceException;
12
+import com.sundot.airport.common.service.IBaseAttachmentService;
6
 import com.sundot.airport.common.utils.DateUtils;
13
 import com.sundot.airport.common.utils.DateUtils;
14
+import com.sundot.airport.equipment.domain.EquipmentInspectionRecord;
15
+import com.sundot.airport.equipment.service.IEquipmentInspectionRecordService;
7
 import org.springframework.beans.factory.annotation.Autowired;
16
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.stereotype.Service;
17
 import org.springframework.stereotype.Service;
9
 import com.sundot.airport.equipment.mapper.EquipmentLedgerMapper;
18
 import com.sundot.airport.equipment.mapper.EquipmentLedgerMapper;
10
 import com.sundot.airport.equipment.domain.EquipmentLedger;
19
 import com.sundot.airport.equipment.domain.EquipmentLedger;
11
 import com.sundot.airport.equipment.service.IEquipmentLedgerService;
20
 import com.sundot.airport.equipment.service.IEquipmentLedgerService;
21
+import org.springframework.transaction.annotation.Transactional;
12
 
22
 
13
 /**
23
 /**
14
  * 设备台账Service业务层处理
24
  * 设备台账Service业务层处理
@@ -20,6 +30,10 @@ import com.sundot.airport.equipment.service.IEquipmentLedgerService;
20
 public class EquipmentLedgerServiceImpl extends ServiceImpl<EquipmentLedgerMapper, EquipmentLedger> implements IEquipmentLedgerService {
30
 public class EquipmentLedgerServiceImpl extends ServiceImpl<EquipmentLedgerMapper, EquipmentLedger> implements IEquipmentLedgerService {
21
     @Autowired
31
     @Autowired
22
     private EquipmentLedgerMapper equipmentLedgerMapper;
32
     private EquipmentLedgerMapper equipmentLedgerMapper;
33
+    @Autowired
34
+    private IEquipmentInspectionRecordService equipmentInspectionRecordService;
35
+    @Autowired
36
+    private IBaseAttachmentService baseAttachmentService;
23
 
37
 
24
     /**
38
     /**
25
      * 查询设备台账
39
      * 查询设备台账
@@ -29,7 +43,20 @@ public class EquipmentLedgerServiceImpl extends ServiceImpl<EquipmentLedgerMappe
29
      */
43
      */
30
     @Override
44
     @Override
31
     public EquipmentLedger selectEquipmentLedgerById(Long id) {
45
     public EquipmentLedger selectEquipmentLedgerById(Long id) {
32
-        return equipmentLedgerMapper.selectEquipmentLedgerById(id);
46
+        EquipmentLedger result = equipmentLedgerMapper.selectEquipmentLedgerById(id);
47
+        if (ObjUtil.isNull(result)) {
48
+            return result;
49
+        }
50
+        LambdaQueryWrapper<EquipmentInspectionRecord> recordQueryWrapper = new LambdaQueryWrapper<>();
51
+        recordQueryWrapper.eq(EquipmentInspectionRecord::getSourceId, result.getId());
52
+        List<EquipmentInspectionRecord> equipmentInspectionRecordList = equipmentInspectionRecordService.getBaseMapper().selectList(recordQueryWrapper);
53
+        result.setEquipmentInspectionRecordList(equipmentInspectionRecordList);
54
+        LambdaQueryWrapper<BaseAttachment> attachmentQueryWrapper = new LambdaQueryWrapper<>();
55
+        attachmentQueryWrapper.eq(BaseAttachment::getSourceType, BaseAttachmentSourceTypeEnum.EQUIPMENT_LEDGER.getCode());
56
+        attachmentQueryWrapper.eq(BaseAttachment::getSourceId, result.getId());
57
+        List<BaseAttachment> baseAttachmentList = baseAttachmentService.getBaseMapper().selectList(attachmentQueryWrapper);
58
+        result.setBaseAttachmentList(baseAttachmentList);
59
+        return result;
33
     }
60
     }
34
 
61
 
35
     /**
62
     /**
@@ -49,10 +76,36 @@ public class EquipmentLedgerServiceImpl extends ServiceImpl<EquipmentLedgerMappe
49
      * @param equipmentLedger 设备台账
76
      * @param equipmentLedger 设备台账
50
      * @return 结果
77
      * @return 结果
51
      */
78
      */
79
+    @Transactional(rollbackFor = Exception.class)
52
     @Override
80
     @Override
53
     public int insertEquipmentLedger(EquipmentLedger equipmentLedger) {
81
     public int insertEquipmentLedger(EquipmentLedger equipmentLedger) {
82
+        EquipmentLedger temp = new EquipmentLedger();
83
+        temp.setEquipmentSerialNumber(equipmentLedger.getEquipmentSerialNumber());
84
+        List<EquipmentLedger> tempList = equipmentLedgerMapper.selectEquipmentLedgerList(temp);
85
+        if (CollUtil.isNotEmpty(tempList)) {
86
+            throw new ServiceException("该设备序列号已存在");
87
+        }
54
         equipmentLedger.setCreateTime(DateUtils.getNowDate());
88
         equipmentLedger.setCreateTime(DateUtils.getNowDate());
55
-        return equipmentLedgerMapper.insertEquipmentLedger(equipmentLedger);
89
+        int result = equipmentLedgerMapper.insertEquipmentLedger(equipmentLedger);
90
+        if (CollUtil.isNotEmpty(equipmentLedger.getEquipmentInspectionRecordList())) {
91
+            equipmentLedger.getEquipmentInspectionRecordList().forEach(equipmentInspectionRecord -> {
92
+                equipmentInspectionRecord.setSourceId(equipmentLedger.getId());
93
+                equipmentInspectionRecord.setCreateBy(equipmentLedger.getCreateBy());
94
+                equipmentInspectionRecord.setCreateTime(DateUtils.getNowDate());
95
+                equipmentInspectionRecordService.insertEquipmentInspectionRecord(equipmentInspectionRecord);
96
+            });
97
+        }
98
+        if (CollUtil.isNotEmpty(equipmentLedger.getBaseAttachmentList())) {
99
+            equipmentLedger.getBaseAttachmentList().forEach(baseAttachment -> {
100
+                baseAttachment.setSourceType(BaseAttachmentSourceTypeEnum.EQUIPMENT_LEDGER.getCode());
101
+                baseAttachment.setSourceTypeName(BaseAttachmentSourceTypeEnum.EQUIPMENT_LEDGER.getInfo());
102
+                baseAttachment.setSourceId(equipmentLedger.getId());
103
+                baseAttachment.setCreateBy(equipmentLedger.getCreateBy());
104
+                baseAttachment.setCreateTime(DateUtils.getNowDate());
105
+                baseAttachmentService.insertBaseAttachment(baseAttachment);
106
+            });
107
+        }
108
+        return result;
56
     }
109
     }
57
 
110
 
58
     /**
111
     /**
@@ -61,10 +114,51 @@ public class EquipmentLedgerServiceImpl extends ServiceImpl<EquipmentLedgerMappe
61
      * @param equipmentLedger 设备台账
114
      * @param equipmentLedger 设备台账
62
      * @return 结果
115
      * @return 结果
63
      */
116
      */
117
+    @Transactional(rollbackFor = Exception.class)
64
     @Override
118
     @Override
65
     public int updateEquipmentLedger(EquipmentLedger equipmentLedger) {
119
     public int updateEquipmentLedger(EquipmentLedger equipmentLedger) {
66
         equipmentLedger.setUpdateTime(DateUtils.getNowDate());
120
         equipmentLedger.setUpdateTime(DateUtils.getNowDate());
67
-        return equipmentLedgerMapper.updateEquipmentLedger(equipmentLedger);
121
+        int result = equipmentLedgerMapper.updateEquipmentLedger(equipmentLedger);
122
+        // 删除旧数据
123
+        LambdaQueryWrapper<EquipmentInspectionRecord> recordOldQueryWrapper = new LambdaQueryWrapper<>();
124
+        recordOldQueryWrapper.eq(EquipmentInspectionRecord::getSourceId, equipmentLedger.getId());
125
+        List<EquipmentInspectionRecord> equipmentInspectionRecordOldList = equipmentInspectionRecordService.getBaseMapper().selectList(recordOldQueryWrapper);
126
+        if (CollUtil.isNotEmpty(equipmentInspectionRecordOldList)) {
127
+            equipmentInspectionRecordService.removeBatchByIds(equipmentInspectionRecordOldList);
128
+        }
129
+        LambdaQueryWrapper<BaseAttachment> attachmentOldQueryWrapper = new LambdaQueryWrapper<>();
130
+        attachmentOldQueryWrapper.eq(BaseAttachment::getSourceType, BaseAttachmentSourceTypeEnum.EQUIPMENT_LEDGER.getCode());
131
+        attachmentOldQueryWrapper.eq(BaseAttachment::getSourceId, equipmentLedger.getId());
132
+        List<BaseAttachment> baseAttachmentOldList = baseAttachmentService.getBaseMapper().selectList(attachmentOldQueryWrapper);
133
+        if (CollUtil.isNotEmpty(baseAttachmentOldList)) {
134
+            baseAttachmentService.removeBatchByIds(baseAttachmentOldList);
135
+        }
136
+        // 新增新数据
137
+        if (CollUtil.isNotEmpty(equipmentLedger.getEquipmentInspectionRecordList())) {
138
+            equipmentLedger.getEquipmentInspectionRecordList().forEach(equipmentInspectionRecord -> {
139
+                equipmentInspectionRecord.setId(null);
140
+                equipmentInspectionRecord.setSourceId(equipmentLedger.getId());
141
+                equipmentInspectionRecord.setCreateBy(equipmentLedger.getCreateBy());
142
+                equipmentInspectionRecord.setCreateTime(DateUtils.getNowDate());
143
+                equipmentInspectionRecord.setUpdateBy(equipmentLedger.getCreateBy());
144
+                equipmentInspectionRecord.setUpdateTime(DateUtils.getNowDate());
145
+                equipmentInspectionRecordService.insertEquipmentInspectionRecord(equipmentInspectionRecord);
146
+            });
147
+        }
148
+        if (CollUtil.isNotEmpty(equipmentLedger.getBaseAttachmentList())) {
149
+            equipmentLedger.getBaseAttachmentList().forEach(baseAttachment -> {
150
+                baseAttachment.setId(null);
151
+                baseAttachment.setSourceType(BaseAttachmentSourceTypeEnum.EQUIPMENT_LEDGER.getCode());
152
+                baseAttachment.setSourceTypeName(BaseAttachmentSourceTypeEnum.EQUIPMENT_LEDGER.getInfo());
153
+                baseAttachment.setSourceId(equipmentLedger.getId());
154
+                baseAttachment.setCreateBy(equipmentLedger.getCreateBy());
155
+                baseAttachment.setCreateTime(DateUtils.getNowDate());
156
+                baseAttachment.setUpdateBy(equipmentLedger.getCreateBy());
157
+                baseAttachment.setUpdateTime(DateUtils.getNowDate());
158
+                baseAttachmentService.insertBaseAttachment(baseAttachment);
159
+            });
160
+        }
161
+        return result;
68
     }
162
     }
69
 
163
 
70
     /**
164
     /**
@@ -73,9 +167,26 @@ public class EquipmentLedgerServiceImpl extends ServiceImpl<EquipmentLedgerMappe
73
      * @param ids 需要删除的设备台账主键
167
      * @param ids 需要删除的设备台账主键
74
      * @return 结果
168
      * @return 结果
75
      */
169
      */
170
+    @Transactional(rollbackFor = Exception.class)
76
     @Override
171
     @Override
77
     public int deleteEquipmentLedgerByIds(Long[] ids) {
172
     public int deleteEquipmentLedgerByIds(Long[] ids) {
78
-        return equipmentLedgerMapper.deleteEquipmentLedgerByIds(ids);
173
+        int result = equipmentLedgerMapper.deleteEquipmentLedgerByIds(ids);
174
+        for (Long id : ids) {
175
+            LambdaQueryWrapper<EquipmentInspectionRecord> detailQueryWrapper = new LambdaQueryWrapper<>();
176
+            detailQueryWrapper.eq(EquipmentInspectionRecord::getSourceId, id);
177
+            List<EquipmentInspectionRecord> equipmentInspectionRecordList = equipmentInspectionRecordService.getBaseMapper().selectList(detailQueryWrapper);
178
+            if (CollUtil.isNotEmpty(equipmentInspectionRecordList)) {
179
+                equipmentInspectionRecordService.removeBatchByIds(equipmentInspectionRecordList);
180
+            }
181
+            LambdaQueryWrapper<BaseAttachment> attachmentQueryWrapper = new LambdaQueryWrapper<>();
182
+            attachmentQueryWrapper.eq(BaseAttachment::getSourceType, BaseAttachmentSourceTypeEnum.EQUIPMENT_LEDGER.getCode());
183
+            attachmentQueryWrapper.eq(BaseAttachment::getSourceId, id);
184
+            List<BaseAttachment> baseAttachmentList = baseAttachmentService.getBaseMapper().selectList(attachmentQueryWrapper);
185
+            if (CollUtil.isNotEmpty(baseAttachmentList)) {
186
+                baseAttachmentService.removeBatchByIds(baseAttachmentList);
187
+            }
188
+        }
189
+        return result;
79
     }
190
     }
80
 
191
 
81
     /**
192
     /**
@@ -84,8 +195,23 @@ public class EquipmentLedgerServiceImpl extends ServiceImpl<EquipmentLedgerMappe
84
      * @param id 设备台账主键
195
      * @param id 设备台账主键
85
      * @return 结果
196
      * @return 结果
86
      */
197
      */
198
+    @Transactional(rollbackFor = Exception.class)
87
     @Override
199
     @Override
88
     public int deleteEquipmentLedgerById(Long id) {
200
     public int deleteEquipmentLedgerById(Long id) {
89
-        return equipmentLedgerMapper.deleteEquipmentLedgerById(id);
201
+        int result = equipmentLedgerMapper.deleteEquipmentLedgerById(id);
202
+        LambdaQueryWrapper<EquipmentInspectionRecord> detailQueryWrapper = new LambdaQueryWrapper<>();
203
+        detailQueryWrapper.eq(EquipmentInspectionRecord::getSourceId, id);
204
+        List<EquipmentInspectionRecord> equipmentInspectionRecordList = equipmentInspectionRecordService.getBaseMapper().selectList(detailQueryWrapper);
205
+        if (CollUtil.isNotEmpty(equipmentInspectionRecordList)) {
206
+            equipmentInspectionRecordService.removeBatchByIds(equipmentInspectionRecordList);
207
+        }
208
+        LambdaQueryWrapper<BaseAttachment> attachmentQueryWrapper = new LambdaQueryWrapper<>();
209
+        attachmentQueryWrapper.eq(BaseAttachment::getSourceType, BaseAttachmentSourceTypeEnum.EQUIPMENT_LEDGER.getCode());
210
+        attachmentQueryWrapper.eq(BaseAttachment::getSourceId, id);
211
+        List<BaseAttachment> baseAttachmentList = baseAttachmentService.getBaseMapper().selectList(attachmentQueryWrapper);
212
+        if (CollUtil.isNotEmpty(baseAttachmentList)) {
213
+            baseAttachmentService.removeBatchByIds(baseAttachmentList);
214
+        }
215
+        return result;
90
     }
216
     }
91
 }
217
 }

+ 1 - 0
airport-equipment/src/main/resources/mapper/equipment/EquipmentInspectionRecordMapper.xml

@@ -60,6 +60,7 @@
60
                 #{inspectionNature}
60
                 #{inspectionNature}
61
             </if>
61
             </if>
62
         </where>
62
         </where>
63
+        order by create_time desc
63
     </select>
64
     </select>
64
 
65
 
65
     <select id="selectEquipmentInspectionRecordById" parameterType="Long" resultMap="EquipmentInspectionRecordResult">
66
     <select id="selectEquipmentInspectionRecordById" parameterType="Long" resultMap="EquipmentInspectionRecordResult">

+ 13 - 0
airport-equipment/src/main/resources/mapper/equipment/EquipmentLedgerMapper.xml

@@ -121,7 +121,20 @@
121
             <if test="inspectionTeamMember2Name != null  and inspectionTeamMember2Name != ''">and
121
             <if test="inspectionTeamMember2Name != null  and inspectionTeamMember2Name != ''">and
122
                 inspection_team_member2_name like concat('%', #{inspectionTeamMember2Name}, '%')
122
                 inspection_team_member2_name like concat('%', #{inspectionTeamMember2Name}, '%')
123
             </if>
123
             </if>
124
+            <if test="inspectionTeamUserId != null ">and (
125
+                inspection_team_leader_id = #{inspectionTeamUserId} or
126
+                inspection_team_member1_id = #{inspectionTeamUserId} or
127
+                inspection_team_member2_id = #{inspectionTeamUserId}
128
+                )
129
+            </if>
130
+            <if test="inspectionTeamUserName != null  and inspectionTeamUserName != ''">and (
131
+                inspection_team_leader_name like concat('%', #{inspectionTeamUserName}, '%') or
132
+                inspection_team_member1_name like concat('%', #{inspectionTeamUserName}, '%') or
133
+                inspection_team_member2_name like concat('%', #{inspectionTeamUserName}, '%')
134
+                )
135
+            </if>
124
         </where>
136
         </where>
137
+        order by create_time desc
125
     </select>
138
     </select>
126
 
139
 
127
     <select id="selectEquipmentLedgerById" parameterType="Long" resultMap="EquipmentLedgerResult">
140
     <select id="selectEquipmentLedgerById" parameterType="Long" resultMap="EquipmentLedgerResult">