车型下拉选权限

This commit is contained in:
zhn
2023-08-24 16:43:24 +08:00
parent 0cbc77ec9f
commit ef4e9b9f1e
5 changed files with 10 additions and 7 deletions
@@ -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);
}
@@ -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);
@@ -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">
@@ -95,7 +95,7 @@ public interface IOtaManageApplyEOService extends IService<OtaManageApplyEO> {
下拉数据-全部和分车型(不含年款)
* @return
*/
List<String> getCarList(String cut);
List<String> getCarList(String cut,String plannedBpLaunchBatch);
/**
*
@@ -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("全部");