service代码:
// 查询每一列的空值
public List findNullCount() {
return dao.findNullCount();//查询失败
}
Dao代码:
@MyBatisDao
public interface TljsjkAjlj27Dao extends CrudDao {
public List findNullCount();
}
mybaitsi的Mapping映射文件:
type="com.jiahe.bigdata.bd.entity.TljsjkAjlj27">
xxxxxxxxxxxxxxx
xxxxxxxxxxxxxxx
SELECT
(SELECT count(*) FROM T_LJSJK_AJLJ27 WHERE DW IS NULL) DW ,
(SELECT count(*) FROM T_LJSJK_AJLJ27 WHERE JH IS NULL) JH ,
(SELECT count(*) FROM T_LJSJK_AJLJ27 WHERE JHDM IS NULL) JHDM ,
(SELECT count(*) FROM T_LJSJK_AJLJ27 WHERE JSCH IS NULL) JSCH ,
(SELECT count(*) FROM T_LJSJK_AJLJ27 WHERE XH IS NULL) XH ,
(SELECT count(*) FROM T_LJSJK_AJLJ27 WHERE CW IS NULL) CW
FROM SYSIBM.SYSDUMMY1
如上所述,service的查询失败,请问这是什么愿意造成的?
说明:我更改过这张映射文件的方法名id值,对其Dao及其service也做相应调整,无误。另外有一张表跟这个表类型,java的代码及其映射文件配置也类似,另外一张的Dao查询成功,而这张表却失败。
请教各位大咖,希望各位不灵赐教,跪谢!!!