Merge remote-tracking branch 'origin/dev_2nd_LCYH' into dev_2nd_LCYH
This commit is contained in:
+28
-14
@@ -1,28 +1,29 @@
|
|||||||
package com.jero.modules.ota.controller;
|
package com.jero.modules.ota.controller;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
import com.jero.common.api.vo.Result;
|
|
||||||
import com.jero.common.system.query.QueryGenerator;
|
|
||||||
import com.jero.modules.ota.entity.OtaBaCxList;
|
|
||||||
import com.jero.modules.ota.service.IOtaBaCxListService;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import com.jero.common.api.vo.Result;
|
||||||
|
import com.jero.common.aspect.annotation.AutoLog;
|
||||||
import com.jero.common.system.base.controller.JeroController;
|
import com.jero.common.system.base.controller.JeroController;
|
||||||
|
import com.jero.common.system.query.QueryGenerator;
|
||||||
|
import com.jero.modules.ota.entity.OtaBaCxList;
|
||||||
|
import com.jero.modules.ota.service.IOtaBaCxListService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.servlet.ModelAndView;
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import com.jero.common.aspect.annotation.AutoLog;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 车型及功能备案列表
|
* @Description: 车型及功能备案列表
|
||||||
* @Author: jero-boot
|
* @Author: jero-boot
|
||||||
* @Date: 2023-03-17
|
* @Date: 2023-03-17
|
||||||
@@ -167,4 +168,17 @@ public class OtaBaCxListController extends JeroController<OtaBaCxList, IOtaBaCxL
|
|||||||
return super.importExcel(request, response, OtaBaCxList.class);
|
return super.importExcel(request, response, OtaBaCxList.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* 备案维护
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "车型及功能备案列表-备案维护")
|
||||||
|
@ApiOperation(value="车型及功能备案列表-备案维护", notes="车型及功能备案列表-备案维护")
|
||||||
|
@PutMapping(value = "/batchRecord")
|
||||||
|
public Result<?> batchRecord(@RequestBody List<OtaBaCxList> recordList) {
|
||||||
|
otaBaCxListService.batchRecord(recordList);
|
||||||
|
return Result.OK("备案维护成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
+26
-13
@@ -1,28 +1,29 @@
|
|||||||
package com.jero.modules.ota.controller;
|
package com.jero.modules.ota.controller;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
import com.jero.common.api.vo.Result;
|
|
||||||
import com.jero.common.system.query.QueryGenerator;
|
|
||||||
import com.jero.modules.ota.entity.OtaBaSjList;
|
|
||||||
import com.jero.modules.ota.service.IOtaBaSjListService;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import com.jero.common.api.vo.Result;
|
||||||
|
import com.jero.common.aspect.annotation.AutoLog;
|
||||||
import com.jero.common.system.base.controller.JeroController;
|
import com.jero.common.system.base.controller.JeroController;
|
||||||
|
import com.jero.common.system.query.QueryGenerator;
|
||||||
|
import com.jero.modules.ota.entity.OtaBaSjList;
|
||||||
|
import com.jero.modules.ota.service.IOtaBaSjListService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.servlet.ModelAndView;
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import com.jero.common.aspect.annotation.AutoLog;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 升级备案-升级活动备案列表
|
* @Description: 升级备案-升级活动备案列表
|
||||||
* @Author: jero-boot
|
* @Author: jero-boot
|
||||||
* @Date: 2023-03-17
|
* @Date: 2023-03-17
|
||||||
@@ -167,4 +168,16 @@ public class OtaBaSjListController extends JeroController<OtaBaSjList, IOtaBaSjL
|
|||||||
return super.importExcel(request, response, OtaBaSjList.class);
|
return super.importExcel(request, response, OtaBaSjList.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备案维护
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "升级备案-备案维护")
|
||||||
|
@ApiOperation(value="升级备案-备案维护", notes="升级备案-备案维护")
|
||||||
|
@PutMapping(value = "/batchRecord")
|
||||||
|
public Result<?> batchRecord(@RequestBody List<OtaBaSjList> recordList) {
|
||||||
|
otaBaSjListService.batchRecord(recordList);
|
||||||
|
return Result.OK("备案维护成功!");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-1
@@ -1,7 +1,8 @@
|
|||||||
package com.jero.modules.ota.service;
|
package com.jero.modules.ota.service;
|
||||||
|
|
||||||
import com.jero.modules.ota.entity.OtaBaCxList;
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.jero.modules.ota.entity.OtaBaCxList;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -58,4 +59,10 @@ public interface IOtaBaCxListService extends IService<OtaBaCxList> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<OtaBaCxList> queryList();
|
List<OtaBaCxList> queryList();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备案维护
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
void batchRecord(List<OtaBaCxList> recordList);
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-1
@@ -1,7 +1,8 @@
|
|||||||
package com.jero.modules.ota.service;
|
package com.jero.modules.ota.service;
|
||||||
|
|
||||||
import com.jero.modules.ota.entity.OtaBaSjList;
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.jero.modules.ota.entity.OtaBaSjList;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -58,4 +59,10 @@ public interface IOtaBaSjListService extends IService<OtaBaSjList> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<OtaBaSjList> queryList();
|
List<OtaBaSjList> queryList();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备案维护
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
void batchRecord(List<OtaBaSjList> recordList);
|
||||||
}
|
}
|
||||||
|
|||||||
+39
-2
@@ -1,12 +1,18 @@
|
|||||||
package com.jero.modules.ota.service.impl;
|
package com.jero.modules.ota.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.jero.common.exception.JeroBootException;
|
||||||
import com.jero.modules.ota.entity.OtaBaCxList;
|
import com.jero.modules.ota.entity.OtaBaCxList;
|
||||||
|
import com.jero.modules.ota.entity.OtaBaCxLsjl;
|
||||||
import com.jero.modules.ota.mapper.OtaBaCxListMapper;
|
import com.jero.modules.ota.mapper.OtaBaCxListMapper;
|
||||||
import com.jero.modules.ota.service.IOtaBaCxListService;
|
import com.jero.modules.ota.service.IOtaBaCxListService;
|
||||||
|
import com.jero.modules.ota.service.IOtaBaCxLsjlService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import java.util.List;
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 车型及功能备案列表
|
* @Description: 车型及功能备案列表
|
||||||
@@ -17,6 +23,11 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||||||
@Service
|
@Service
|
||||||
public class OtaBaCxListServiceImpl extends ServiceImpl<OtaBaCxListMapper, OtaBaCxList> implements IOtaBaCxListService {
|
public class OtaBaCxListServiceImpl extends ServiceImpl<OtaBaCxListMapper, OtaBaCxList> implements IOtaBaCxListService {
|
||||||
|
|
||||||
|
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IOtaBaCxLsjlService otaBaCxLsjlService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存
|
* 保存
|
||||||
*
|
*
|
||||||
@@ -86,4 +97,30 @@ public class OtaBaCxListServiceImpl extends ServiceImpl<OtaBaCxListMapper, OtaBa
|
|||||||
public List<OtaBaCxList> queryList() {
|
public List<OtaBaCxList> queryList() {
|
||||||
return list();
|
return list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备案维护
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void batchRecord(List<OtaBaCxList> recordList) {
|
||||||
|
try {
|
||||||
|
if (null != recordList && recordList.size() > 0) {
|
||||||
|
for (OtaBaCxList obc : recordList) {
|
||||||
|
String id = obc.getId();
|
||||||
|
OtaBaCxList otaBaCxList = this.queryById(id);
|
||||||
|
otaBaCxList.setBatjsj(obc.getBatjsj());
|
||||||
|
otaBaCxList.setBz(obc.getBz());
|
||||||
|
this.saveOrUpdate(otaBaCxList);
|
||||||
|
//添加历史记录数据
|
||||||
|
OtaBaCxLsjl lsjl = new OtaBaCxLsjl();
|
||||||
|
lsjl.setOtaId(id);
|
||||||
|
lsjl.setSjzt(obc.getBz());
|
||||||
|
otaBaCxLsjlService.add(lsjl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
throw new JeroBootException(ex.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+39
-2
@@ -1,12 +1,18 @@
|
|||||||
package com.jero.modules.ota.service.impl;
|
package com.jero.modules.ota.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.jero.common.exception.JeroBootException;
|
||||||
import com.jero.modules.ota.entity.OtaBaSjList;
|
import com.jero.modules.ota.entity.OtaBaSjList;
|
||||||
|
import com.jero.modules.ota.entity.OtaBaSjLsjl;
|
||||||
import com.jero.modules.ota.mapper.OtaBaSjListMapper;
|
import com.jero.modules.ota.mapper.OtaBaSjListMapper;
|
||||||
import com.jero.modules.ota.service.IOtaBaSjListService;
|
import com.jero.modules.ota.service.IOtaBaSjListService;
|
||||||
|
import com.jero.modules.ota.service.IOtaBaSjLsjlService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import java.util.List;
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 升级备案-升级活动备案列表
|
* @Description: 升级备案-升级活动备案列表
|
||||||
@@ -17,6 +23,11 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||||||
@Service
|
@Service
|
||||||
public class OtaBaSjListServiceImpl extends ServiceImpl<OtaBaSjListMapper, OtaBaSjList> implements IOtaBaSjListService {
|
public class OtaBaSjListServiceImpl extends ServiceImpl<OtaBaSjListMapper, OtaBaSjList> implements IOtaBaSjListService {
|
||||||
|
|
||||||
|
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IOtaBaSjLsjlService otaBaSjLsjlService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存
|
* 保存
|
||||||
*
|
*
|
||||||
@@ -86,4 +97,30 @@ public class OtaBaSjListServiceImpl extends ServiceImpl<OtaBaSjListMapper, OtaBa
|
|||||||
public List<OtaBaSjList> queryList() {
|
public List<OtaBaSjList> queryList() {
|
||||||
return list();
|
return list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备案维护
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void batchRecord(List<OtaBaSjList> recordList) {
|
||||||
|
try {
|
||||||
|
if (null != recordList && recordList.size() > 0) {
|
||||||
|
for (OtaBaSjList obs : recordList) {
|
||||||
|
String id = obs.getId();
|
||||||
|
OtaBaSjList otaBaSjList = this.queryById(id);
|
||||||
|
otaBaSjList.setBatjsj(obs.getBatjsj());
|
||||||
|
otaBaSjList.setBz(obs.getBz());
|
||||||
|
this.saveOrUpdate(otaBaSjList);
|
||||||
|
//添加历史记录数据
|
||||||
|
OtaBaSjLsjl lsjl = new OtaBaSjLsjl();
|
||||||
|
lsjl.setOtaId(id);
|
||||||
|
lsjl.setSjzt(obs.getBz());
|
||||||
|
otaBaSjLsjlService.add(lsjl);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
throw new JeroBootException(ex.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user