| | |
| | | import com.ks.goldcorn.pojo.DO.GoldCornGetSource; |
| | | import com.ks.goldcorn.query.SourceQuery; |
| | | import com.ks.goldcorn.service.GoldCornAppManager; |
| | | import org.springframework.stereotype.Service; |
| | | import org.apache.dubbo.config.annotation.Service; |
| | | import org.yeshi.utils.StringUtil; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | @Service(version = "1.0") |
| | | public class GoldCornGetSourceServiceImpl implements GoldCornGetSourceService { |
| | | @Resource |
| | | private GoldCornAppManager goldCornAppManager; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public GoldCornGetSource selectByAppAndCode(String appCode, String code) { |
| | | Long appId = goldCornAppManager.selectAppIdByAppCode(appCode); |
| | | if (appId == null) { |
| | | return null; |
| | | } |
| | | return goldCornGetSourceMapper.selectByAppIdAndSourceCode(appId, code); |
| | | } |
| | | |
| | | @Override |
| | | public long countByName(String appCode, String nameKey) { |
| | | Long appId = goldCornAppManager.selectAppIdByAppCode(appCode); |
| | | if (appId == null) { |