37_ParameterGroupDetailServiceImpl
`package com.reserve.cang.core.sys.service.impl;
import com.reserve.cang.core.sys.dao.ParameterGroupDetailDao;
import com.reserve.cang.core.sys.domain.ParameterGroupDetailDomain;
import com.reserve.cang.core.sys.service.ParameterGroupDetailService;
import com.reserve.cang.generic.GenericDao;
import com.reserve.cang.generic.GenericServiceImpl;
import com.reserve.cang.model.sys.ParameterGroupDetail;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class ParameterGroupDetailServiceImpl extends GenericServiceImpl<ParameterGroupDetail, String> implements
ParameterGroupDetailService {
@Autowired
ParameterGroupDetailDao parameterGroupDetailDao;
@Override
public GenericDao<ParameterGroupDetail, String> getDao() {
return parameterGroupDetailDao;
}
@Override
public Page<ParameterGroupDetail> selectByQueryItems(String sgroupNo,
ParameterGroupDetailDomain parameterGroupDetailDomain, Page<ParameterGroupDetail> page) {
PageHelper.startPage(page.getPageNum(), page.getPageSize());
Map<String,Object> map=new HashMap<String,Object>();
map.put("sgroupNo", sgroupNo);
map.put("sname", parameterGroupDetailDomain.getSname());
map.put("svalue", parameterGroupDetailDomain.getSvalue());
map.put("sremark", parameterGroupDetailDomain.getSremark());
map.put("orderStr",parameterGroupDetailDomain.getOrderStr());
return parameterGroupDetailDao.selectByQueryItems(map);
}
@Override
public ParameterGroupDetail selectByExist(
ParameterGroupDetail parameterGroupDetail) {
return parameterGroupDetailDao.selectByExist(parameterGroupDetail);
}
@Override
public List<ParameterGroupDetail> queryAllGroupNo() {
return parameterGroupDetailDao.queryAllGroupNo();
}
}`

浙公网安备 33010602011771号