Commit 208193b3 by levphon

指定授权bug修复

1 parent 804078c4
......@@ -38,9 +38,10 @@ public interface VehiclePermitMapper extends CommonBaseMapper<VehiclePermit> {
* 删除授权数据
*
* @param contentIds
* @param receiverId
* @param contentType
* @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
......@@ -164,7 +164,7 @@ public class VinWorkOrderNoImportListener extends AnalysisEventListener<VinWorkO
vwi.setVehicleId(vehicle.getId());
if (vehicleIds.contains(vehicle.getId())) {
vwi.setImportFailReason("数据重复");
vwi.setImportFailReason("重复导入数据");
log.warn(vwi.toString());
return false;
}
......
......@@ -2092,7 +2092,7 @@ public class VehicleService {
});
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);
}
return 0;
......
......@@ -79,6 +79,7 @@
set del_flag = -1, updated_date = sysdate()
where del_flag = 0
and content_type = #{contentType}
and receiver_id = #{receiverId}
and content_id in
<foreach collection="contentIds" separator="," open="(" close=")" item="item">
#{item}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!