Commit 8f6fa4ee by levphon

V1.7.0需求:结清数据控制

1 parent 9436c13b
...@@ -37,7 +37,7 @@ import java.util.stream.Collectors; ...@@ -37,7 +37,7 @@ import java.util.stream.Collectors;
*/ */
@Slf4j @Slf4j
@Service @Service
public class HomeService { public class HomeService extends AbstractCommonService {
@Autowired @Autowired
private VehicleDeviceMapper vehicleDeviceMapper; private VehicleDeviceMapper vehicleDeviceMapper;
......
...@@ -115,6 +115,7 @@ ...@@ -115,6 +115,7 @@
<if test="search.appendSql != null and search.appendSql !=''"> <if test="search.appendSql != null and search.appendSql !=''">
${search.appendSql} ${search.appendSql}
</if> </if>
${settleCondition}
</select> </select>
<select id="getActiveNumberWithAuth" resultType="cn.com.glsx.admin.modules.model.stat.StatCountModel"> <select id="getActiveNumberWithAuth" resultType="cn.com.glsx.admin.modules.model.stat.StatCountModel">
...@@ -142,6 +143,7 @@ ...@@ -142,6 +143,7 @@
<if test="offlineSnStr != null and offlineSnStr != ''"> <if test="offlineSnStr != null and offlineSnStr != ''">
and tvd.sn not in (${offlineSnStr}) and tvd.sn not in (${offlineSnStr})
</if> </if>
${settleCondition}
</select> </select>
<select id="getVehicleDeviceByVehicleAndSn" resultMap="BaseResultMap"> <select id="getVehicleDeviceByVehicleAndSn" resultMap="BaseResultMap">
......
...@@ -509,6 +509,9 @@ ...@@ -509,6 +509,9 @@
<if test="vehicleUsages != null"> <if test="vehicleUsages != null">
and tv.vehicle_usages = #{vehicleUsages} and tv.vehicle_usages = #{vehicleUsages}
</if> </if>
<if test="settleFlag != null">
and tv.settle_flag = #{settleFlag}
</if>
<if test="checkedUserIdsStr != null and checkedUserIdsStr !=''"> <if test="checkedUserIdsStr != null and checkedUserIdsStr !=''">
and find_in_set(tv.created_by,#{checkedUserIdsStr}) and find_in_set(tv.created_by,#{checkedUserIdsStr})
</if> </if>
...@@ -603,6 +606,9 @@ ...@@ -603,6 +606,9 @@
<if test="vehicleUsages != null"> <if test="vehicleUsages != null">
and tv.vehicle_usages = #{vehicleUsages} and tv.vehicle_usages = #{vehicleUsages}
</if> </if>
<if test="settleFlag != null">
and tv.settle_flag = #{settleFlag}
</if>
<if test="checkedUserIdsStr != null and checkedUserIdsStr !=''"> <if test="checkedUserIdsStr != null and checkedUserIdsStr !=''">
and find_in_set(tv.created_by,#{checkedUserIdsStr}) and find_in_set(tv.created_by,#{checkedUserIdsStr})
</if> </if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!