接口优化
This commit is contained in:
parent
3a1c67171e
commit
888374a84f
@ -170,5 +170,5 @@ public interface OperateFeignClient {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("ebikeComponent/ComponentInventoryOutbound")
|
||||
JsonResult<?> componentInventoryOutbound(@RequestBody ReqComponentOutRecordDto reqComponentOutRecordDto,@RequestHeader("Authorization") String token);
|
||||
JsonResult<?> componentInventoryOutbound(@RequestBody ReqComponentOutRecordDto reqComponentOutRecordDto);
|
||||
}
|
||||
|
||||
@ -167,7 +167,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
||||
reqComponentOutRecordDto.setEbikeEcuOutRecords(ebikeEcuOutRecords);
|
||||
reqComponentOutRecordDto.setComponentType("262711452730008");
|
||||
//ecu出库
|
||||
operateFeignClient.componentInventoryOutbound(reqComponentOutRecordDto, tokenValue);
|
||||
operateFeignClient.componentInventoryOutbound(reqComponentOutRecordDto);
|
||||
ebikeEcuInfoMapper.insert(ebikeEcuInfo);
|
||||
ebikeBikeInfo.setEcuId(ebikeEcuInfo.getEcuId());
|
||||
|
||||
@ -182,7 +182,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
||||
reqComponentOutRecordDto.setComponentType("262711452730001");
|
||||
reqComponentOutRecordDto.setEbikeEcuOutRecords(null);
|
||||
//头盔出库
|
||||
operateFeignClient.componentInventoryOutbound(reqComponentOutRecordDto, tokenValue);
|
||||
operateFeignClient.componentInventoryOutbound(reqComponentOutRecordDto);
|
||||
ebikeHelmetInfoMapper.insert(ebikeHelmetInfo);
|
||||
ebikeBikeInfo.setHelmetId(ebikeHelmetInfo.getHelmetId());
|
||||
}
|
||||
@ -195,7 +195,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
||||
reqComponentOutRecordDto.setComponentType("262711452730000");
|
||||
reqComponentOutRecordDto.setEbikeHelmetOutRecords(null);
|
||||
//电池出库
|
||||
operateFeignClient.componentInventoryOutbound(reqComponentOutRecordDto, tokenValue);
|
||||
operateFeignClient.componentInventoryOutbound(reqComponentOutRecordDto);
|
||||
ebikeBatteryInfoMapper.insert(ebikeBatteryInfo);
|
||||
ebikeBikeInfo.setBatteryId(ebikeBatteryInfo.getBatteryId());
|
||||
ebikeBikeInfoMapper.insert(ebikeBikeInfo);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user