12345678910111213141516171819202122232425262728293031323334 |
- package com.yihu.quota.service.dimension;
- import com.yihu.quota.model.dimension.TjQuotaDimensionSlave;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.jdbc.core.BeanPropertyRowMapper;
- import org.springframework.jdbc.core.JdbcTemplate;
- import org.springframework.stereotype.Service;
- import java.util.List;
- /**
- * @author chenweida
- * @date 2017/6/1
- */
- @Service
- @Deprecated
- public class TjDimensionSlaveService {
- @Autowired
- private JdbcTemplate jdbcTemplate;
- public List<TjQuotaDimensionSlave> findTjQuotaDimensionSlaveByQuotaCode(String code) {
- String sql = "SELECT " +
- " qdm.*,dm.type " +
- " FROM " +
- " tj_dimension_slave dm, " +
- " tj_quota_dimension_slave qdm " +
- " WHERE " +
- " dm.`code` = qdm.slave_code " +
- " AND qdm.quota_code = ? order BY" +
- " qdm.id asc ";
- List<TjQuotaDimensionSlave> quotaDataSources = jdbcTemplate.query(sql, new BeanPropertyRowMapper(TjQuotaDimensionSlave.class), code);
- return quotaDataSources;
- }
- }
|