src/com/cxstock/biz/tongji/imp/TongjiBizImpl.java

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.cxstock.biz.tongji.imp;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import com.cxstock.biz.tongji.TongjiBiz;
import com.cxstock.biz.tongji.dto.DjmxDTO;
import com.cxstock.dao.BaseDAO;
import com.cxstock.pojo.Ckdsp;
import com.cxstock.pojo.Jhd;
import com.cxstock.pojo.Jhdsp;
import com.cxstock.pojo.Thd;
import com.cxstock.pojo.Thdsp;
import com.cxstock.pojo.Tkdsp;

@SuppressWarnings("unchecked")
public class TongjiBizImpl implements TongjiBiz {
	
	private BaseDAO baseDao;
	public void setBaseDao(BaseDAO baseDao) {
		this.baseDao = baseDao;
	}
	
	/*
	 * 供应商统计
	 */
	public List findGysTj(String wheres) {
		List list = new ArrayList();
		String hql = "from Jhd as t where 1=1"+wheres;
		String hql2 = "from Thd as t where 1=1"+wheres;
		List<Jhd> jhdList = baseDao.findByHql(hql.toString());
		for (Jhd jhd : jhdList) {
			list.add(jhd);
		}
		List<Thd> thdList = baseDao.findByHql(hql2.toString());
		for (Thd thd : thdList) {
			list.add(thd);
		}
		return list;
	}

	/*
	 * 客户统计
	 */
	public List findKhTj(String wheres) {
		String hql = "from Ckd as t where 1=1"+wheres;
		String hql2 = "from Tkd as t where 1=1"+wheres;
		List list = baseDao.findByHql(hql.toString());
		List list2 = baseDao.findByHql(hql2.toString());
		for (int i = 0; i < list2.size(); i++) {
			list.add(list2.get(i));
		}
		return list;
	}

	/*
	 * 商品采购统计
	 */
	public List findSpcgTj(String wheres) {
后面还有 160 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。