开发OTA备案工具-车辆升级

This commit is contained in:
高嵩
2023-03-30 16:29:41 +08:00
parent bbbd602137
commit 08c28df227
4 changed files with 7 additions and 6 deletions
@@ -106,7 +106,9 @@ public class OtaBaCxListController extends JeroController<OtaBaCxList, IOtaBaCxL
@ApiOperation(value = "车型及功能备案列表-列表查询", notes = "车型及功能备案列表-列表查询")
@GetMapping(value = "/list")
public Result<List<OtaBaCxList>> queryList() {
List<OtaBaCxList> list = otaBaCxListService.queryList();
LambdaQueryWrapper<OtaBaCxList> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.orderByDesc(OtaBaCxList::getCreateTime);
List<OtaBaCxList> list = otaBaCxListService.list(queryWrapper);
return Result.OK(list);
}
@@ -102,7 +102,9 @@ public class OtaBaSjListController extends JeroController<OtaBaSjList, IOtaBaSjL
@ApiOperation(value = "升级备案-升级活动备案列表-列表查询", notes = "升级备案-升级活动备案列表-列表查询")
@GetMapping(value = "/list")
public Result<List<OtaBaSjList>> queryList() {
List<OtaBaSjList> list = otaBaSjListService.queryList();
LambdaQueryWrapper<OtaBaSjList> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.orderByDesc(OtaBaSjList::getCreateTime);
List<OtaBaSjList> list = otaBaSjListService.list(queryWrapper);
return Result.OK(list);
}
@@ -14,7 +14,7 @@ public enum OtaTitleEnum {
BZ("bz", "备注", "0"),
CXMB("cxmb", "车型模板", "0"),
QYMC("qymc", "企业名称", "0"),
// QYMC("qymc", "企业名称", "0"),
DJBH("djbh", "产品登记编号", "0"),
CPLB("cplb", "产品类别", "product_category"),
DLLX1("dllx1", "车辆动力类型", "0"),
@@ -93,9 +93,6 @@ public class OtaBaSjSjmbcxServiceImpl extends ServiceImpl<OtaBaSjSjmbcxMapper, O
otaBaSjSjmbcx.setUpdateTime(now);
ComparisonUtil cu = new ComparisonUtil();
List<OtaBaCxTxjl> reList = cu.comparisonRecord(otaBaSjSjmbcx.getOtaId(), OtaModuleEnum.SJ_SJMBCX, otaBaSjSjmbcxOld, otaBaSjSjmbcx, sysDictService);
if (StringUtils.isEmpty(otaBaSjSjmbcx.getQymc())) {
otaBaSjSjmbcx.setQymc("安徽江淮汽车集团股份有限公司");
}
saveOrUpdate(otaBaSjSjmbcx);
otaBaCxTxjlService.saveBatch(reList);
return otaBaSjSjmbcx;