ChildTaskPlanServiceImpl.java
755 Bytes
package com.bsth.service.realcontrol.impl;
import java.util.Map;
import org.springframework.stereotype.Service;
import com.bsth.entity.realcontrol.ChildTaskPlan;
import com.bsth.service.impl.BaseServiceImpl;
import com.bsth.service.realcontrol.ChildTaskPlanService;
import com.bsth.vehicle.common.CommonMapped;
@Service
public class ChildTaskPlanServiceImpl extends BaseServiceImpl<ChildTaskPlan, Long> implements ChildTaskPlanService{
@Override
public Map<String, Object> save(ChildTaskPlan t) {
//保存起终点名称
Map<String, String> map = CommonMapped.stationCodeMap;
t.setStartStationName(map.get(t.getStartStation()));
t.setEndStationName(map.get(t.getEndStation()));
return super.save(t);
}
}