车型下拉选权限
This commit is contained in:
+2
-2
@@ -159,8 +159,8 @@ public class OtaManageApplyEOController extends JeroController<OtaManageApplyEO,
|
||||
@AutoLog(value = "下拉数据-全部和分车型(不含年款)")
|
||||
@ApiOperation(value="下拉数据-全部和分车型(不含年款)", notes="下拉数据-全部和分车型(不含年款)")
|
||||
@GetMapping(value = "/getCarList")
|
||||
public Result<?> getCarList(String cut) {
|
||||
List<String> result = otaManageApplyEOService.getCarList(cut);
|
||||
public Result<?> getCarList(String cut,String plannedBpLaunchBatch) {
|
||||
List<String> result = otaManageApplyEOService.getCarList(cut,plannedBpLaunchBatch);
|
||||
return Result.OK(result);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ public interface OtaManageApplyEOMapper extends BaseMapper<OtaManageApplyEO> {
|
||||
|
||||
List<VersionVO> getByAppliedVehicleProject(@Param("appliedVehicleProject") String appliedVehicleProject);
|
||||
|
||||
List<OtaManageApplyEO> getOtaCarList();
|
||||
List<OtaManageApplyEO> getOtaCarList(@Param("plannedBpLaunchBatch") String plannedBpLaunchBatch);
|
||||
|
||||
List<OtaManageReceiveNsdpEO> getReleaseDate(@Param("plannedBpLaunchBatchList") List<String> plannedBpLaunchBatchList);
|
||||
|
||||
|
||||
+3
@@ -94,6 +94,9 @@
|
||||
|
||||
<select id="getOtaCarList" resultType="com.jero.modules.ota.entity.OtaManageApplyEO">
|
||||
select * from ota_manage_receive
|
||||
<if test="plannedBpLaunchBatch != null and plannedBpLaunchBatch != ''">
|
||||
where planned_bp_launch_batch =#{plannedBpLaunchBatch}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getReleaseDate" resultType="com.jero.modules.ota.entity.OtaManageReceiveNsdpEO">
|
||||
|
||||
+1
-1
@@ -95,7 +95,7 @@ public interface IOtaManageApplyEOService extends IService<OtaManageApplyEO> {
|
||||
下拉数据-全部和分车型(不含年款)
|
||||
* @return
|
||||
*/
|
||||
List<String> getCarList(String cut);
|
||||
List<String> getCarList(String cut,String plannedBpLaunchBatch);
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
+3
-3
@@ -757,7 +757,7 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> getPullDownList() {
|
||||
List<OtaManageApplyEO> otaManageApplyEOS = this.getBaseMapper().getOtaCarList();
|
||||
List<OtaManageApplyEO> otaManageApplyEOS = this.getBaseMapper().getOtaCarList(null);
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
if (!otaManageApplyEOS.isEmpty()) {
|
||||
//软件版本 planned_bp_launch_batch_
|
||||
@@ -803,8 +803,8 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<String> getCarList(String cut) {
|
||||
List<OtaManageApplyEO> otaManageApplyEOS = this.getBaseMapper().getOtaCarList();
|
||||
public List<String> getCarList(String cut,String plannedBpLaunchBatch) {
|
||||
List<OtaManageApplyEO> otaManageApplyEOS = this.getBaseMapper().getOtaCarList(plannedBpLaunchBatch);
|
||||
List<String> result = new LinkedList<>();
|
||||
if (CutEnum.CN.getValue().equals(cut)) {
|
||||
result.add("全部");
|
||||
|
||||
Reference in New Issue
Block a user