Commit c7d71b34 authored by yff's avatar yff

修改BUG

parent 7e32a720
...@@ -1841,20 +1841,20 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao { ...@@ -1841,20 +1841,20 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
@Override @Override
public GpfkVO queryDailyFkInfoUpgrade(GpfkCondition condition) { public GpfkVO queryDailyFkInfoUpgrade(GpfkCondition condition) {
SqlMap sqlMap = new SqlMap(); SqlMap sqlMap = new SqlMap();
sqlMap.append(" select sum(gpfkjg_fksl) from gpfkjg "); sqlMap.append(" select sum(gpfkjg_fksl) as GPFK_FKSL, sum(GPFKJG_BHGSL) as GPFK_BHGSL, sum(GPFKJG_HGSL) as GPFK_HGSL from gpfkjg ");
sqlMap.append(" left join bzgx on bzgx_id = gpfkjg_bzgxid "); sqlMap.append(" left join bzgx on bzgx_id = gpfkjg_bzgxid ");
sqlMap.append(" where 1 = 1"); sqlMap.append(" where 1 = 1");
sqlMap.append(" and bzgx_gxlx ='ZP' "); sqlMap.append(" and bzgx_gxlx ='ZP' ");
if (StringUtils.isNotEmpty(condition.getBxid())){ if (StringUtils.isNotEmpty(condition.getBxid())){
sqlMap.append(" and c.GPFKJG_FKBX = :pBXID "); sqlMap.append(" and GPFKJG_FKBX = :pBXID ");
sqlMap.setParamValue("pBXID",condition.getBxid()); sqlMap.setParamValue("pBXID",condition.getBxid());
} }
if (StringUtils.isNotEmpty(condition.getFkrid())){ if (StringUtils.isNotEmpty(condition.getFkrid())){
sqlMap.append(" and c.GPFKJG_FKRID = :pFKRID "); sqlMap.append(" and GPFKJG_FKRID = :pFKRID ");
sqlMap.setParamValue("pFKRID",condition.getFkrid()); sqlMap.setParamValue("pFKRID",condition.getFkrid());
} }
if (condition.getYwrq() != null) { if (condition.getYwrq() != null) {
sqlMap.append(" and c.GPFKJG_YWRQ >= :pYWRQ "); sqlMap.append(" and GPFKJG_YWRQ >= :pYWRQ ");
sqlMap.setParamValue("pYWRQ", condition.getYwrq()); sqlMap.setParamValue("pYWRQ", condition.getYwrq());
} }
return sqlMap.queryEntity(GpfkVO.class); return sqlMap.queryEntity(GpfkVO.class);
......
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