diff --git a/src/main/java/com/biutag/supervision/mapper/RpcApplyMapper.java b/src/main/java/com/biutag/supervision/mapper/RpcApplyMapper.java index fe7c413..4ef709c 100644 --- a/src/main/java/com/biutag/supervision/mapper/RpcApplyMapper.java +++ b/src/main/java/com/biutag/supervision/mapper/RpcApplyMapper.java @@ -43,8 +43,8 @@ public interface RpcApplyMapper extends BaseMapper { @Select(" SELECT COUNT(*) from rpc_apply_person a LEFT JOIN rpc_apply b " + " on a.rpc_id = b.rpc_id and b.type =1 " + " WHERE b.rpc_id is not null " + - " and b.crt_time BETWEEN #{beginTime} and ${endTime} ") - Integer selectVictimNumber(Date beginTime, Date endTime); + " and b.crt_time BETWEEN #{beginTime} and #{endTime} ") + int selectVictimNumber(Date beginTime, Date endTime); /** * 获取受侵害人数(根据分县) @@ -52,9 +52,9 @@ public interface RpcApplyMapper extends BaseMapper { @Select(" SELECT COUNT(*) from rpc_apply_person a LEFT JOIN rpc_apply b " + " on a.rpc_id = b.rpc_id and b.type =1 " + " WHERE b.rpc_id is not null " + - " and b.crt_time BETWEEN #{beginTime} and ${endTime} " + + " and b.crt_time BETWEEN #{beginTime} and #{endTime} " + " and b.second_depart_id = #{deptId} ") - Integer selectVictimNumberByOrg(Date beginTime, Date endTime,String deptId); + int selectVictimNumberByOrg(Date beginTime, Date endTime,String deptId); @Select("SELECT " +