<select id="selectTranscrenum" resultType="java.lang.String" >
select count(1) from tb_agent_transagent where substr(starttime,0,8) =substr(to_char(sysdate,'yyyyMMdd'),0,8) and skill in('SKILL_XYK96510','SKILL_XYK96520','SKILL_XYK96530')
</select>
@Repository
public interface HwMapper {
String selectTranscrenum();
}
修改resultType="java.lang.Integer"即可
SQL返回执行影响行数
方法返回值也改为Integer接收