报文管理

dev.xxy
Aaaaaaaa 2024-09-25 22:44:25 +08:00
parent 15b99b27c4
commit 4a094775d4
7 changed files with 132 additions and 168 deletions

View File

@ -2,6 +2,7 @@ package com.muyu.car.controller;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.muyu.car.domain.CarInformation; import com.muyu.car.domain.CarInformation;
import com.muyu.car.domain.CarMessage;
import com.muyu.car.domain.req.CarInformationAddReq; import com.muyu.car.domain.req.CarInformationAddReq;
import com.muyu.car.domain.req.CarInformationListReq; import com.muyu.car.domain.req.CarInformationListReq;
import com.muyu.car.domain.req.CarInformationUpdReq; import com.muyu.car.domain.req.CarInformationUpdReq;
@ -85,9 +86,13 @@ public class CarInformationController {
*/ */
@PostMapping("/updatecarInformation") @PostMapping("/updatecarInformation")
@Operation(summary = "企业车辆修改管理") @Operation(summary = "企业车辆修改管理")
public Result updatecarInformation(@Validated @RequestBody CarInformationUpdReq carInformationUpdReq) { public Result updateCarMessage(@Validated @RequestBody CarInformationUpdReq carInformationUpdReq){
log.info(carInformationUpdReq); Result updatecarInformation = carInformationService.updatecarInformation(carInformationUpdReq);
return carInformationService.updatecarInformation(carInformationUpdReq); log.info(updatecarInformation);
System.out.println("我在这个里:"+updatecarInformation);
return Result.success(updatecarInformation,"修改成功");
} }

View File

@ -63,7 +63,7 @@ public class CarMessageController {
@Operation(summary = "修改报文信息") @Operation(summary = "修改报文信息")
public Result updateCarMessage(@Validated @RequestBody CarMessage carMessage){ public Result updateCarMessage(@Validated @RequestBody CarMessage carMessage){
Result updateCarMessage = carMessageService.updateCarMessage(carMessage); Result updateCarMessage = carMessageService.updateCarMessage(carMessage);
return Result.success(updateCarMessage); return Result.success(updateCarMessage,"修改成功");
} }

View File

@ -1,137 +0,0 @@
package com.muyu.car.domain.resp;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CarInform {
private Integer inoAuth;
private String inOauth;
private String unoAuth;
private String inYoh;
private String inoSauth;
private String inoAutciHh;
private Integer inocsdJuth;
private Integer inoUautUh;
private String inoaHuth;
private Integer inoauDth;
private String inRoauth;
private Integer inoafuth;
private Integer inoafDuth;
private Integer inOafuth;
private Integer inoAfuth;
private Integer inoaFuth;
private Integer ifsdjjoafuth;
private Date inoafujsdhth;
private Integer inoasdfuth;
private Integer inoaasdfuth;
private Integer inoauth;
private Integer inoasdauth;
private Integer inoaasduth;
private Integer inoavsduth;
private Integer inoyjauth;
private Integer inojtyauth;
private Integer inoaujtth;
private Integer inoajyuth;
private Integer inoaRruth;
private Integer infdwroauth;
private Integer ifrnoauth;
private Integer ifgnoauth;
private Integer ingrtoauth;
private Integer injtjoauth;
private Integer ityjnoauth;
private Integer ghndinoauth;
private Integer dtnjdindnauth;
private Integer yyytjinoadytnjyuth;
private Integer inotyjauth;
private Integer inytjoauth;
private Integer inyttyjjoauth;
private Integer inotjtauth;
private Integer injtyjoauth;
private Integer inyjoauth;
private Integer inoayjtuth;
private Integer inojtyjauth;
private Integer inoyjtauth;
private Integer inotyjuikjtyjauth;
private Integer intjoauth;
private Integer intyjoauth;
private Integer inoggdeauth;
private Integer inotrhrtauth;
private Integer inhjtmyoauth;
private Integer inoaujteth;
private Integer inoaehehuth;
private Integer inoathtjuth;
private Integer inotjytjyauth;
private Integer inyujyoauth;
private Integer inojtryjauth;
private Integer tyjtyjtyjty;
private Integer in64jytoauth;
private Integer inoaujtjth;
private Integer inoatyjuth;
private Integer intjyrtyoauth;
private Integer inoautyjftyjth;
private Integer inoatyhjjmuth;
private Integer innmtyjntoauth;
private Integer inoatyjhtjhuth;
private Integer inoatyhtuth;
private Integer inotyjtauth;
private Integer inoautyjtyth;
private Integer inoauiluith;
private Integer inoasfwdfuth;
private Integer iewfnoauth;
private Integer inofwefebauth;
private Integer inoauvdvfvth;
private Integer inoafverfveruth;
private Integer invreoauth;
private Integer igrenoauth;
private Integer inefweffgbroauth;
private Integer inoaurfeth;
private Integer inoaugegergth;
private Integer inoaergrguth;
private Integer inoafgsferguth;
private Integer inoaergerguth;
private Integer inoavdvguth;
private Integer inoergreauth;
private Integer inoregauth;
private Integer inorgauth;
private Integer irgergnoauth;
private Integer inorgegauth;
private Integer inoergeauth;
private Integer ergrf;
private Integer rg;
private Integer inoautrgfh;
private Integer inofreauth;
private Integer inogrgergauth;
private Integer inofgrsgauth;
private Integer inosdfrgauth;
private Integer inowrfrauth;
private Integer inorgrgrauth;
private Integer inrfgrgoauth;
private Integer inofggauth;
private Integer inorgrrgauth;
private Integer inorgrgauth;
private Integer inoaugdbfth;
private Integer inoardfgeruth;
private Integer inoaerferuth;
private Integer inoaergereuth;
private Integer inoergauth;
private Integer inoerfeauth;
private Integer inoaerrgeruth;
private Integer inoarfrfuth;
private Integer inoarferuth;
private Integer inoargerguth;
private Integer rgr;
private Integer drgr;
private Integer inofrgvredgauth;
private Integer rgerg;
private Integer inorgregauth;
private Integer rgreg;
}

View File

@ -0,0 +1,73 @@
package com.muyu.car.domain.resp;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CarReq {
private String EatImagtion;
private String imgTion;
private String EatIma6ion;
private String EatImagtFformion;
private String EatTailImagtion;
private String EatImagertion;
private String EatImagtodoion;
private String EatasImagtion;
private String EatImageartion;
private String imagtionId;
private String Eagtion;
private String EatImag;
private String tImag;
private String agtizyRon;
private String EatImagcdtion;
private String agtigagtion;
private String EatImfhgdfagtion;
private String EffatImagtion;
private String EatImadfggtion;
private String EatImagfgtion;
private String EatImaggdtion;
private String EatImagdfgtion;
private String EatImfdgadfggtion;
private String EatIfdgmagtion;
private String EatIfdgfgmagtion;
private String EatImagdffggtion;
private String EatImaggfdtion;
private String EatImagtigon;
private String EatImagtbjion;
private String EatImagt_fdgion;
private String EatrgImagtion;
private String EatIdgmagtion;
private String EatImafggtion;
private String EgatImgagtion;
private String EatImggagtion;
private String EatImagfdgtion;
private String EatdfgImadfggtion;
private String EatIgdmagtion;
private String EatImagd;
private String EatdfgImagtion;
private String EatIgfgmagtion;
private String EatIsdmagtion;
private String EatfImagtion;
private String EadatImagtion;
private String EatdgImagtion;
private String EatdImagtion;
private String EatIafmagtion;
private String EatIagffmagtion;
private String EatgsImagtion;
private String EatasdImagtion;
private String EatIadmagtion;
private String EatadImagtion;
private String EatIcvmagtion;
private String EatImagtfion;
private String EatImagation;
private String EatImfagtion;
private String EatImagyution;
}

View File

@ -52,6 +52,8 @@ public interface CarInformationMapper {
*/ */
Integer updatecarInformation(CarInformationUpdReq carInformationUpdReq); Integer updatecarInformation(CarInformationUpdReq carInformationUpdReq);
/** /**
* To * To
* carInformationID carInformationLicensePlate * carInformationID carInformationLicensePlate

View File

@ -3,6 +3,7 @@ package com.muyu.car.service.Impl;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.muyu.car.domain.CarInformation; import com.muyu.car.domain.CarInformation;
import com.muyu.car.domain.CarMessage;
import com.muyu.car.domain.req.CarInformationAddReq; import com.muyu.car.domain.req.CarInformationAddReq;
import com.muyu.car.domain.req.CarInformationListReq; import com.muyu.car.domain.req.CarInformationListReq;
import com.muyu.car.domain.req.CarInformationUpdReq; import com.muyu.car.domain.req.CarInformationUpdReq;
@ -50,13 +51,18 @@ public class CarInformationServiceImpl implements CarInformationService {
return Result.error(402,"删除车辆失败"); return Result.error(402,"删除车辆失败");
} }
@Override @Override
public Result updatecarInformation(CarInformationUpdReq carInformationUpdReq) { public Result updatecarInformation(CarInformationUpdReq carInformationUpdReq) {
Integer updatecarInformation = carInformationMapper.updatecarInformation(carInformationUpdReq); Integer updatecarInformation = carInformationMapper.updatecarInformation(carInformationUpdReq);
return Result.success(updatecarInformation,"修改车辆信息成功"); if(updatecarInformation > 0)
{
return Result.success(carInformationUpdReq,"修改成功");
}
return Result.error( 402,"修改失败");
} }
@Override @Override
public List<CarInformation> selectBycarInformationIDAndLicensePlate() { public List<CarInformation> selectBycarInformationIDAndLicensePlate() {
return carInformationMapper.selectBycarInformationIDAndLicensePlate(); return carInformationMapper.selectBycarInformationIDAndLicensePlate();

View File

@ -137,31 +137,46 @@
<update id="updatecarInformation"> <update id="updatecarInformation">
UPDATE `car_information` UPDATE `car_information`
SET SET
`car_information_VIN` = #{carInformationVIN}, <if test="carInformationVIN != null and carInformationVIN != '' ">
`car_information`.car_information_VIN = #{carInformationVIN},
`car_information_license_plate` = #{carInformationLicensePlate}, </if>
<if test="carInformationLicensePlate != null and carInformationLicensePlate != '' ">
`car_information_brand` = #{carInformationBrand}, `car_information`.car_information_license_plate = #{carInformationLicensePlate},
</if>
`car_information_color` = #{carInformationColor}, <if test="carInformationBrand != null and carInformationBrand != '' ">
`car_information`.car_information_brand = #{carInformationBrand},
`car_information_driver` = #{carInformationDriver}, </if>
<if test="carInformationColor != null and carInformationColor != '' ">
`car_information_examine_enddata` = #{carInformationExamineEnddata}, `car_information`.car_information_color = #{carInformationColor},
</if>
`car_information_motor_manufacturer` = #{carInformationMotorManufacturer}, <if test="carInformationDriver != null and carInformationDriver != '' ">
`car_information`.car_information_driver = #{carInformationDriver},
`car_information_motor_model` = #{carInformationMotorModel} , </if>
<if test="carInformationMotorManufacturer != null and carInformationMotorManufacturer != '' ">
`car_information_battery_manufacturer` = #{carInformationBatteryManufacturer}, `car_information`.car_information_motor_manufacturer = #{carInformationMotorManufacturer},
</if>
`car_information_battery_model` = #{carInformationBatteryModel}, <if test="carInformationMotorModel != null and carInformationMotorModel != '' ">
`car_information`.car_information_motor_model = #{carInformationMotorModel} ,
`car_information_fence` = #{carInformationFence}, </if>
<if test="carInformationBatteryManufacturer != null and carInformationBatteryManufacturer != '' ">
`car_information_type` = #{carInformationType} `car_information`.car_information_battery_manufacturer = #{carInformationBatteryManufacturer},
</if>
WHERE `car_information_id` = #{carInformationId} <if test="carInformationBatteryModel != null and carInformationBatteryModel != '' ">
`car_information`.car_information_battery_model = #{carInformationBatteryModel},
</if>
<if test="carInformationFence != null">
`car_information`.car_information_fence = #{carInformationFence},
</if>
<if test="carInformationType != null">
`car_information`.car_information_type = #{carInformationType} ,
</if>
<if test="carInformationFocus != null">
`car_information`.car_information_focus = #{carInformationFocus},
</if>
<if test="carInformationState != null">
`car_information`.car_information_state = #{carInformationState}
</if>
WHERE `car_information`.car_information_id = #{carInformationId}
</update> </update>