Commit 208193b3 by levphon

指定授权bug修复

1 parent 804078c4
...@@ -38,9 +38,10 @@ public interface VehiclePermitMapper extends CommonBaseMapper<VehiclePermit> { ...@@ -38,9 +38,10 @@ public interface VehiclePermitMapper extends CommonBaseMapper<VehiclePermit> {
* 删除授权数据 * 删除授权数据
* *
* @param contentIds * @param contentIds
* @param receiverId
* @param contentType * @param contentType
* @return * @return
*/ */
int deleteExistedPermit(@Param("contentIds") Collection<Long> contentIds, @Param("contentType") Integer contentType); int deleteExistedPermit(@Param("contentIds") Collection<Long> contentIds, @Param("receiverId") Long receiverId, @Param("contentType") Integer contentType);
} }
\ No newline at end of file \ No newline at end of file
...@@ -164,7 +164,7 @@ public class VinWorkOrderNoImportListener extends AnalysisEventListener<VinWorkO ...@@ -164,7 +164,7 @@ public class VinWorkOrderNoImportListener extends AnalysisEventListener<VinWorkO
vwi.setVehicleId(vehicle.getId()); vwi.setVehicleId(vehicle.getId());
if (vehicleIds.contains(vehicle.getId())) { if (vehicleIds.contains(vehicle.getId())) {
vwi.setImportFailReason("数据重复"); vwi.setImportFailReason("重复导入数据");
log.warn(vwi.toString()); log.warn(vwi.toString());
return false; return false;
} }
......
...@@ -2092,7 +2092,7 @@ public class VehicleService { ...@@ -2092,7 +2092,7 @@ public class VehicleService {
}); });
if (CollectionUtils.isNotEmpty(delIdList)) { if (CollectionUtils.isNotEmpty(delIdList)) {
int delCnt = vehiclePermitMapper.deleteExistedPermit(delIdList, 0); int delCnt = vehiclePermitMapper.deleteExistedPermit(delIdList, assignBO.getReceiverId(), 0);
log.info("{}剔除用户[{}] 车辆数据 {}", ShieldContextHolder.getUsername(), assignBO.getReceiverId(), delIdList); log.info("{}剔除用户[{}] 车辆数据 {}", ShieldContextHolder.getUsername(), assignBO.getReceiverId(), delIdList);
} }
return 0; return 0;
......
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
set del_flag = -1, updated_date = sysdate() set del_flag = -1, updated_date = sysdate()
where del_flag = 0 where del_flag = 0
and content_type = #{contentType} and content_type = #{contentType}
and receiver_id = #{receiverId}
and content_id in and content_id in
<foreach collection="contentIds" separator="," open="(" close=")" item="item"> <foreach collection="contentIds" separator="," open="(" close=")" item="item">
#{item} #{item}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!