소스정리
This commit is contained in:
@@ -7,8 +7,9 @@ import net.jwsi.jcms.exception.JsonDataException;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class StationController extends BaseController {
|
||||
public StationController(BaseService service) {
|
||||
public class StationController extends BaseController<Station,String,StationRepository,StationService> {
|
||||
|
||||
public StationController(StationService service) {
|
||||
super(service);
|
||||
}
|
||||
|
||||
@@ -18,7 +19,7 @@ public class StationController extends BaseController {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void chkSelect(BaseEntity data) throws JsonDataException {
|
||||
protected void chkSelect(Station data) throws JsonDataException {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@ package net.jwsi.jcms_vpp.station;
|
||||
|
||||
import net.jwsi.jcms.base.BaseRecStRepository;
|
||||
|
||||
public interface StationRepository extends BaseRecStRepository {
|
||||
public interface StationRepository extends BaseRecStRepository<Station,String> {
|
||||
}
|
||||
|
||||
@@ -1,5 +1,52 @@
|
||||
package net.jwsi.jcms_vpp.station;
|
||||
|
||||
public class StationService {
|
||||
import net.jwsi.jcms.base.BaseService;
|
||||
import net.jwsi.jcms.base.EnumSqlType;
|
||||
import org.apache.coyote.Response;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.jpa.domain.Specification;
|
||||
import org.springframework.web.client.RestClient;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class StationService extends BaseService<Station,String,StationRepository> {
|
||||
|
||||
public StationService(StationRepository repository) {
|
||||
super(repository);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Integer getUserId() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getUserName(Integer id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Station newSearchParam(Station station) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected EnumSqlType useSqlTyp() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Specification<Station> getSpecification(Station station) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Page<Station> _selectPage(Station station) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<Station> _selectList(Station station) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user