Commit 8675a5bb by wang_jiaxing

资源服务改为long类型

parent e15b42ec
......@@ -125,7 +125,7 @@ public class ZyfwController {
@CheckAuthorization(type = CheckType.ZY, checkIp = false)
public R getYthcjSjTxlCount(@RequestBody ZyfwQueryParam zyfwQueryParam) {
try {
int total = zyfwService.getYthcjSjTxlCount(zyfwQueryParam.getIsZl());
long total = zyfwService.getYthcjSjTxlCount(zyfwQueryParam.getIsZl());
return R.ok().data("total", total);
} catch (Exception e) {
log.error("错误日志", e);
......@@ -137,7 +137,7 @@ public class ZyfwController {
@CheckAuthorization(type = CheckType.ZY, checkIp = false)
public R getYthcjSjThjlCount(@RequestBody ZyfwQueryParam zyfwQueryParam) {
try {
int total = zyfwService.getYthcjSjThjlCount(zyfwQueryParam.getIsZl());
long total = zyfwService.getYthcjSjThjlCount(zyfwQueryParam.getIsZl());
return R.ok().data("total", total);
} catch (Exception e) {
log.error("错误日志", e);
......@@ -149,7 +149,7 @@ public class ZyfwController {
@CheckAuthorization(type = CheckType.ZY, checkIp = false)
public R getYthcjSjDxjlCount(@RequestBody ZyfwQueryParam zyfwQueryParam) {
try {
int total = zyfwService.getYthcjSjDxjlCount(zyfwQueryParam.getIsZl());
long total = zyfwService.getYthcjSjDxjlCount(zyfwQueryParam.getIsZl());
return R.ok().data("total", total);
} catch (Exception e) {
log.error("错误日志", e);
......
......@@ -21,11 +21,11 @@ public interface ZyfwService {
int getYthcjSjCount(String isZl);
int getYthcjSjTxlCount(String isZl);
long getYthcjSjTxlCount(String isZl);
int getYthcjSjThjlCount(String isZl);
long getYthcjSjThjlCount(String isZl);
int getYthcjSjDxjlCount(String isZl);
long getYthcjSjDxjlCount(String isZl);
int getYthcjSjXnsfCount(String isZl);
......
......@@ -64,17 +64,17 @@ public class ZyfwServiceImpl implements ZyfwService {
}
@Override
public int getYthcjSjTxlCount(String isZl) {
public long getYthcjSjTxlCount(String isZl) {
return ythcjZyfwMapper.getYthcjSjTxlCount(isZl);
}
@Override
public int getYthcjSjThjlCount(String isZl) {
public long getYthcjSjThjlCount(String isZl) {
return ythcjZyfwMapper.getYthcjSjThjlCount(isZl);
}
@Override
public int getYthcjSjDxjlCount(String isZl) {
public long getYthcjSjDxjlCount(String isZl) {
return ythcjZyfwMapper.getYthcjSjDxjlCount(isZl);
}
......
......@@ -21,11 +21,11 @@ public interface YthcjZyfwMapper {
int getYthcjSjCount(@Param("isZl") String isZl);
int getYthcjSjTxlCount(@Param("isZl") String isZl);
long getYthcjSjTxlCount(@Param("isZl") String isZl);
int getYthcjSjThjlCount(@Param("isZl") String isZl);
long getYthcjSjThjlCount(@Param("isZl") String isZl);
int getYthcjSjDxjlCount(@Param("isZl") String isZl);
long getYthcjSjDxjlCount(@Param("isZl") String isZl);
int getYthcjSjXnsfCount(@Param("isZl") String isZl);
......
......@@ -25,22 +25,28 @@
and LRSJ >= to_date(to_char(sysdate, 'yyyy-mm-dd'), 'yyyy-mm-dd')
</if>
</select>
<select id="getYthcjSjTxlCount" resultType="java.lang.Integer">
select count(*) FROM tb_ph_lxrxx where SCBZ = 0
<select id="getYthcjSjTxlCount" resultType="java.lang.Long">
<if test="isZl == '1'.toString()">
and LRSJ >= to_date(to_char(sysdate, 'yyyy-mm-dd'), 'yyyy-mm-dd')
select count(*) FROM tb_ph_lxrxx where gxsj >= to_date(to_char(sysdate, 'yyyy-mm-dd'), 'yyyy-mm-dd')
</if>
<if test="isZl == '0'.toString()">
select num_rows from user_tables where table_name='TB_PH_THJL'
</if>
</select>
<select id="getYthcjSjThjlCount" resultType="java.lang.Integer">
select count(*) FROM tb_ph_thjl where SCBZ = 0
<select id="getYthcjSjThjlCount" resultType="java.lang.Long">
<if test="isZl == '1'.toString()">
and LRSJ >= to_date(to_char(sysdate, 'yyyy-mm-dd'), 'yyyy-mm-dd')
select count(*) FROM tb_ph_thjl where gxsj >= to_date(to_char(sysdate, 'yyyy-mm-dd'), 'yyyy-mm-dd')
</if>
<if test="isZl == '0'.toString()">
select num_rows from user_tables where table_name='TB_PH_THJL'
</if>
</select>
<select id="getYthcjSjDxjlCount" resultType="java.lang.Integer">
select count(*) FROM tb_ph_dxjl where SCBZ = 0
<select id="getYthcjSjDxjlCount" resultType="java.lang.Long">
<if test="isZl == '1'.toString()">
and LRSJ >= to_date(to_char(sysdate, 'yyyy-mm-dd'), 'yyyy-mm-dd')
select count(*) FROM tb_ph_dxjl where gxsj >= to_date(to_char(sysdate, 'yyyy-mm-dd'), 'yyyy-mm-dd')
</if>
<if test="isZl == '0'.toString()">
select num_rows from user_tables where table_name='TB_PH_DXJL'
</if>
</select>
<select id="getYthcjSjXnsfCount" resultType="java.lang.Integer">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment