提交 8dc18078 编写于 作者: O OSWorks

no commit message

上级 02732b46
package com.aosuite.showcase.service.impl;
import org.apache.ibatis.session.SqlSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -7,6 +8,7 @@ import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSON;
import com.aosuite.showcase.dao.DemoDao;
import com.aosuite.showcase.mapper.PetBasicInfoMapper;
import com.aosuite.showcase.mapper.entity.PetBasicInfoEntity;
import com.aosuite.showcase.service.DemoService;
......@@ -18,6 +20,14 @@ public class DemoServiceImpl implements DemoService{
@Autowired
private DemoDao demoDao;
//Service也可以直接注入mapper组件,但是不建议这么干。
//@Autowired
//private PetBasicInfoMapper petBasicInfoMapper;
//Service也可以直接注入SqlSession,直接调用具体的某个SQL语句,但也不建议这么干。
//@Autowired
//private SqlSession sqlSession;
@Override
public PetBasicInfoEntity getPetBasicInfoEntity(Integer id){
PetBasicInfoEntity petBasicInfoEntity = demoDao.getPetBasicInfoEntity(id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册