所有注释补全

master
WeiRan 2024-09-28 19:28:54 +08:00
parent 07a60444aa
commit fa36d029af
10 changed files with 170 additions and 17 deletions

View File

@ -0,0 +1,41 @@
package com.muyu.domain;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
*
* @Author
* @Packagecom.muyu.warn.domain.car
* @Projectcloud-server-8
* @nameCarMessage
* @Date2024/9/22 3:07
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Tag(name = "车辆报文所属类型")
public class CarMessageType {
/**
*
*/
private Integer messageTypeId ;
/**
*
*/
private String messageTypeCode ;
/**
*
*/
private String messageTypeName ;
/**
*
*/
private String messageTypeBelongs ;
}

View File

@ -49,7 +49,7 @@ public class CarFenceController {
}
/**
* add
*
*/
@PostMapping("/addCarFence")
@Operation(summary = "查询数据",description = "查询数据")
@ -65,7 +65,7 @@ public class CarFenceController {
}
/**
* add
*
*/
@PostMapping("/carAddList")
@Operation(summary = "查询数据",description = "查询数据")
@ -81,7 +81,7 @@ public class CarFenceController {
}
/**
* add
*
*/
@PostMapping("/selectFenceMiddleGroup")
@Operation(summary = "查询数据",description = "查询数据")
@ -97,7 +97,7 @@ public class CarFenceController {
}
/**
*
*
*/
@PostMapping("/selectCarFenceGroupList")
@Operation(summary = "查询数据",description = "查询数据")

View File

@ -31,7 +31,7 @@ public class CarMiddleController {
private CarMiddleSerivce carMiddleSerivce;
/**
* add
*
*/
@PostMapping("/carAddList")
@Operation(summary = "查询数据",description = "查询数据")

View File

@ -108,12 +108,21 @@ public class WarnStrategyController extends BaseController
return success();
}
/**
*
* @return
*/
@RequiresPermissions("platform:strategy:cartype")
@PostMapping("/findByCarType")
public Result<List<CarType>> findByCarType(){
return Result.success(warnStrategyService.findByCarType());
}
/**
* Id
* @param ids
* @return
*/
@RequiresPermissions("platform:strategy:strategytype")
@PostMapping("/strategyType/{ids}")
public Result<List<WarnStrategyReq>> selectStrategyType(@PathVariable("ids") Long ids){

View File

@ -24,15 +24,29 @@ public interface CarFenceService extends IService<CarFence> {
*/
public Page<CarFenceResp> selectCarFence(CarFenceReq req);
/**
*
*/
Boolean addCarFence(CarFence carFence);
/**
*
*/
Boolean addCarGroup(CarGroupReq req);
/**
*
*/
Boolean addFenceGroup(FenceGroupReq req);
/**
*
*/
List<CarFenceGroupResp> selectCarFenceGroupList(Integer id);
/**
*
*/
Boolean carFenceGroupDel(CarGroupIdReq carGroupIdReq);
/**
*
*/
List<CarFenceGroupsResp> carGroupList(CarFenceGroupReq req);
}

View File

@ -39,7 +39,15 @@ public interface WarnStrategyService extends IService<WarnStrategy> {
*/
Boolean checkIdUnique(WarnStrategy warnStrategy);
/**
*
* @return
*/
List<CarType> findByCarType();
/**
* Id
* @param ids
* @return
*/
List<WarnStrategyReq> selectStrategyType(Long ids);
}

View File

@ -102,6 +102,9 @@ public class CarFenceServiceImpl
}};
}
/**
*
*/
@Override
public Boolean addCarFence(CarFence carFence) {
boolean connects = this.save(carFence);
@ -118,6 +121,9 @@ public class CarFenceServiceImpl
return connects;
}
/**
*
*/
@Override
public Boolean addCarGroup(CarGroupReq req) {
List<CarInformation> carInformations = req.getCarInformations();
@ -134,6 +140,9 @@ public class CarFenceServiceImpl
return carMiddleSerivce.saveBatch(carMiddles);
}
/**
*
*/
@Override
public Boolean addFenceGroup(FenceGroupReq req) {
List<CarFence> carInformations = req.getCarFences();
@ -150,6 +159,9 @@ public class CarFenceServiceImpl
return carMiddleGroupService.saveBatch(carMiddles);
}
/**
*
*/
@Override
public List<CarFenceGroupResp> selectCarFenceGroupList(Integer id) {
List<CarMiddleGroup> list = carMiddleGroupService.list(
@ -164,7 +176,9 @@ public class CarFenceServiceImpl
});
return carFenceGroupResps;
}
/**
*
*/
@Override
public Boolean carFenceGroupDel(CarGroupIdReq carGroupIdReq) {
@ -243,6 +257,9 @@ public class CarFenceServiceImpl
});
});
}
/**
*
*/
@Override
public List<CarFenceGroupsResp> carGroupList(CarFenceGroupReq req) {

View File

@ -28,6 +28,23 @@ public class CarInformationServiceImpl implements CarInformationService {
private HttpServletResponse response;
/**
*
* --> ----
* -->(VIN carInformationVIN
* ID carTypeId
* ID carInformationFence
* (1.线 2.线 3. 4. 5.)
* carInformationState
* carInformationMotorManufacturer
* carInformationMotorModel
* carInformationBatteryManufacturer
* carInformationBatteryModel
* )
* --> pageNum pageSize
* @param carInformationListReq
* @return
*/
@Override
public PageInfo<CarInformationResp> selectCarInformationList(CarInformationListReq carInformationListReq) {
PageHelper.startPage(carInformationListReq.getPageNum(),carInformationListReq.getPageSize());
@ -36,6 +53,11 @@ public class CarInformationServiceImpl implements CarInformationService {
return pageInfo;
}
/**
*
* @param carInformationAddReq
* @return
*/
@Override
public Result addCarInformation(CarInformationAddReq carInformationAddReq) {
Integer addCarInformation = carInformationMapper.addCarInformation(carInformationAddReq);
@ -45,6 +67,11 @@ public class CarInformationServiceImpl implements CarInformationService {
return Result.error(402,"添加车辆失败");
}
/**
*
* @param carInformationId
* @return
*/
@Override
public Result delBycarInformationId(Integer carInformationId) {
Integer delBycarInformationId = carInformationMapper.delBycarInformationId(carInformationId);
@ -55,6 +82,11 @@ public class CarInformationServiceImpl implements CarInformationService {
}
/**
*
* @param carInformationUpdReq
* @return
*/
@Override
public Result updatecarInformation(CarInformationUpdReq carInformationUpdReq) {
Integer updatecarInformation = carInformationMapper.updatecarInformation(carInformationUpdReq);
@ -65,7 +97,12 @@ public class CarInformationServiceImpl implements CarInformationService {
return Result.error( 402,"修改失败");
}
/**
* To
* carInformationID carInformationLicensePlate
*
* @return
*/
@Override
public List<CarInformationResp> selectBycarInformationIDAndLicensePlate() {
return carInformationMapper.selectBycarInformationIDAndLicensePlate();

View File

@ -1,7 +1,11 @@
package com.muyu.server.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import com.muyu.common.core.domain.Result;
import com.muyu.domain.CarMessage;
import com.muyu.domain.CarMessageType;
import com.muyu.domain.resp.CarMessageResp;
import com.muyu.server.mapper.CarMessageMapper;
import com.muyu.server.service.CarMessageService;
import org.springframework.stereotype.Service;
@ -19,11 +23,18 @@ public class CarMessageServiceImpl
@Resource
private CarMessageMapper carMessageMapper;
/**
*
* @param
* @return
*/
@Override
public List<CarMessage> selectCarMessageList() {
return carMessageMapper.selectCarMessageList();
}
/**
*
*/
@Override
public Result insertCarMessage(CarMessage carMessage) {
Integer inserted = carMessageMapper.insertCarMessage(carMessage);
@ -32,7 +43,9 @@ public class CarMessageServiceImpl
}
return Result.error(402,"添加失败");
}
/**
*
*/
@Override
public Result delectByCarMessageId(Integer carMessageId) {
Integer deleteByCarMessageId = carMessageMapper.deleteByCarMessageId(carMessageId);
@ -41,7 +54,9 @@ public class CarMessageServiceImpl
}
return Result.error(402,"删除失败");
}
/**
*
*/
@Override
public Result updateCarMessage(CarMessage carMessage) {
Integer integer = carMessageMapper.updateCarMessage(carMessage);
@ -51,7 +66,11 @@ public class CarMessageServiceImpl
}
return Result.error( 402,"修改失败");
}
/**
*
* @param id
* @return
*/
@Override
public List<CarMessageResp> selectJoinList(Long id) {
return carMessageMapper.selectJoinList(CarMessageResp.class, new MPJLambdaWrapper<CarMessage>()

View File

@ -76,7 +76,10 @@ public class WarnStrategyServiceImpl
queryWrapper.eq(WarnStrategy::getId, warnStrategy.getId());
return this.count(queryWrapper) > 0;
}
/**
*
* @return
*/
@Override
public List<CarType> findByCarType() {
List<WarnStrategy> list = this.list();
@ -91,6 +94,11 @@ public class WarnStrategyServiceImpl
return carTypes;
}
/**
* Id
* @param ids
* @return
*/
@Override
public List<WarnStrategyReq> selectStrategyType(Long ids) {
List<WarnStrategy> warnStrategyReqs = this.list(new LambdaQueryWrapper<WarnStrategy>()