package com.pineone.icbms.so.interfaces.database.dao;

import com.pineone.icbms.so.interfaces.database.model.TrackingEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by jonghee on 2017-06-02.
 */
@Component
public class TrackingDao extends AbstractDao {

    public void createTracking(TrackingEntity trackingEntity) {
        super.sqlSession.insert("createTracking", trackingEntity);
    }

    public List<TrackingEntity> retrieveTrackingBySessionId(String sessionId) {
        return super.sqlSession.selectList("retrieveTrackingBySessionId", sessionId);
    }

    public List<TrackingEntity> retrieveTrackingByUserId(String userId) {
        return super.sqlSession.selectList("retrieveTrackingByUserId", userId);
    }

    public TrackingEntity retrieveTrackingStatus(String sessionId) {
        return super.sqlSession.selectOne("retrieveTrackingStatus", sessionId);
    }
}

@@ -666,32 +666,226 @@
 nId);%0D%0A    %7D%0D%0A%0D%0A
+    public TrackingEntity retrieveTrackingBySessionIdStatusFinish(String sessionId) %7B%0D%0A        return super.sqlSession.selectOne(%22retrieveTrackingBySessionId_Status_Finish%22, sessionId);%0D%0A    %7D%0D%0A
     public List%3C

Update TrackingDao.java