This commit is contained in:
xuyuncong 2025-10-14 17:51:20 +08:00
parent 42f5e8f559
commit 80834d2040
3 changed files with 7 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class CarMainServiceImpl extends ServiceImpl<CarMainMapper, CarMain> impl
//todo 计算下次保养时间下次保养里程下次年检时间保险到期时间 //todo 计算下次保养时间下次保养里程下次年检时间保险到期时间
baseMapper.insert(carMain); baseMapper.insert(carMain);
// 返回 // 返回
return CommonResult.success("新增成功"); return CommonResult.success(carMain.getId());
} }
/** /**

View File

@ -25,4 +25,7 @@ public class DlRepairSoReqVO extends DlRepairSo {
/**关联商品*/ /**关联商品*/
List<DlRepairSoi> soiList; List<DlRepairSoi> soiList;
/**查询条件*/
private String query;
} }

View File

@ -75,6 +75,9 @@
<if test="map.searchTimeArray != null and map.searchTimeArray.length > 0"> <if test="map.searchTimeArray != null and map.searchTimeArray.length > 0">
and (so.create_time between #{map.searchTimeArray[0]} and #{map.searchTimeArray[1]}) and (so.create_time between #{map.searchTimeArray[0]} and #{map.searchTimeArray[1]})
</if> </if>
<if test="map.query != null and map.query != ''">
and (so.so_no like concat('%', #{map.query}, '%') or so.remark like concat('%', #{map.query}, '%') or dtw.license_number like concat('%', #{map.query}, '%'))
</if>
<if test="map.supplierId != null and map.supplierId != ''"> <if test="map.supplierId != null and map.supplierId != ''">
and so.supplier_id = #{map.supplierId} and so.supplier_id = #{map.supplierId}
</if> </if>