38d3f67351ebf9f1f558eda6064b1c1417a04dfe.svn-base 5.08 KB
/**
 * Copyright © 2015-2018 ODM All rights reserved.
 */
package com.thinkgem.jeesite.modules.reg.service.base;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.common.utils.JsonUtil;
import com.thinkgem.jeesite.modules.reg.dao.base.RegBaseHDao;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseH;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusBdcqzsdjxx;
import com.thinkgem.jeesite.modules.title.buss.RemoteBuss;
import com.thinkgem.jeesite.modules.title.po.FwxxDto;

/**
 * 户表信息维护表单Service
 * @author xuyg
 * @version 2015-10-24
 */
@Service
@Transactional(readOnly = true)
public class RegBaseHService extends CrudService<RegBaseHDao, RegBaseH> {
	
	@Autowired
	private RemoteBuss buss;
	
	public RegBaseH get(String id) {
		return super.get(id);
	}
	
	public RegBaseH getdy(String bdcdyh) {
		return super.getdy(bdcdyh);
	}
	
	public RegBaseH getIslogout(String bdcdyh) {
		return dao.getIslogout(bdcdyh);
	}
	
	public String getHMaxFwbm(){
		return dao.getHMaxFwbm();
	}
	
	public Map<Object, Object> getHOther(){
		return dao.getHOther();
	}
	
	public List<RegBaseH> findsxhList(RegBaseH regBaseH) {
		return dao.findsxhList(regBaseH);
	}
	
	public List<RegBaseH> findList(RegBaseH regBaseH) {
		return super.findList(regBaseH);
	}
	public List<RegBaseH> findmjList(RegBaseH regBaseH) {
		return dao.findmjList(regBaseH);
	}
	
	public List<RegBaseH> findBGList(RegBaseH regBaseH) {
		return dao.findBGList(regBaseH);
	} 
	
	public Page<RegBaseH> findDjxxPage(Page<RegBaseH> page, RegBaseH regBaseH) {
		regBaseH.setPage(page);
		return page.setList(dao.findDjxxList(regBaseH));
	}
	
	public Page<RegBaseH> findAllPage(Page<RegBaseH> page, RegBaseH regBaseH) {
		regBaseH.setPage(page);
		return page.setList(dao.findAllList(regBaseH));
	}
	
	public Page<RegBaseH> findBGPage(Page<RegBaseH> page, RegBaseH regBaseH) {
		return super.findBGPage(page, regBaseH);
	}
	
	public Page<RegBaseH> findLSBGPage(Page<RegBaseH> page, RegBaseH regBaseH) {
		regBaseH.setPage(page);
		page.setList(dao.findLSBGPage(regBaseH));
		return page;
	}
	/**
	 * 一窗受理登记结果返回
	 */
	public String gethfh(String bdcdyh) {
		return dao.gethfh(bdcdyh);
	}
	
	public Page<RegBaseH> findPage(Page<RegBaseH> page, RegBaseH regBaseH) {
		return super.findPage(page, regBaseH);
	}
	
	public List<RegBaseH> findAllList(RegBaseH regBaseH) {
		return dao.findAllList(regBaseH);
	}
	
	public List<RegBaseH> findZdHs(RegBaseH regBaseH){
		return dao.findZdHs(regBaseH);
	}
	public List<String> findHDyhList(String dyh){
		return dao.findHDyhs(dyh);
	}
	
	public List<String> findDaoruHDyhs(List<String> hDyhs){
		return dao.yidaoruHs(hDyhs);
	}
	
	public String findzjk(String hDyhs){
		return dao.findzjk(hDyhs);
	}
	
	@Transactional(readOnly = false)
	public void save(RegBaseH regBaseH) {
		super.save(regBaseH);
	}
	
	@Transactional(readOnly = false)
	public void delete(RegBaseH regBaseH) {
		super.delete(regBaseH);
	}
	
	@Transactional(readOnly = false)
	public void hdelete(RegBaseH regBaseH){
		dao.hdelete(regBaseH);
	}
	
	@Transactional(readOnly = false)
	public void cfdelete(Map<String, String> map) {
		dao.cfdelete(map);
	}
	
	@Transactional(readOnly = false)
	public void yydelete(Map<String, String> map) {
		dao.yydelete(map);
	}
	
	@Transactional(readOnly = false)
	public void deleteBdcdyh(String bdcdyh) {
		dao.deleteBdcdyh(bdcdyh);
	}
	
	//一窗受理楼盘信息获取,幢信息
	public List<Map<String,Object>> getYcsllp(Map<String,Object> map) {
		return dao.getYcsllp(map);
	}
	
	//一窗受理楼盘信息获取,户信息
	public List<Map<String,Object>> getYcsllpH(Map<String,Object> map) {
		return dao.getYcsllpH(map);
	}
	
	//房源编号保证唯一   20190113GL
	public int lpgjFybh(String fybh) {
		return dao.lpgjFybh(fybh);
	}
	
	//一窗受理楼盘信息获取,幢信息
	public void updateYcsllp(String fwljzid) {
		 dao.updateYcsllp(fwljzid);
	}
	
	//一窗受理楼盘信息获取,户信息
	public void updateYcsllpH(String fwhsid) {
		 dao.updateYcsllpH(fwhsid);
	}

	public String sumscmj(String string) {
		// TODO Auto-generated method stub
		return dao.sumscmj(string);
	}

	public RegBaseH getByDy(String bdcdyh) {
		// TODO Auto-generated method stub
		return dao.getByDy(bdcdyh);
	}

	public void postData(RegBaseH regBaseHNew) {
		if(Global.isTitle()) {
		FwxxDto dto = new FwxxDto();
		BeanUtils.copyProperties(regBaseHNew, dto);
		String url = Global.getTitleUrl() + "/inte/post/fwxxdata";
		Map params = JsonUtil.ObjectoMap(dto);
		String content = "";
		try {
			content = buss.posturl(params, url);
		} catch (IOException e) {
			e.printStackTrace();
		}
		}
	}

	public List<RegBaseH> findQJList(RegBaseH h) {
		// TODO Auto-generated method stub
		return dao.findQJList(h);
	}
	
}