| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427 |
- package cn.com.goldenwater.dcproj.service.impl.rsfco;
- import cn.com.goldenwater.core.service.AbstractCrudService;
- import cn.com.goldenwater.dcproj.constValue.BisInspEnum;
- import cn.com.goldenwater.dcproj.constValue.SplitValue;
- import cn.com.goldenwater.dcproj.constValue.StateEnum;
- import cn.com.goldenwater.dcproj.dao.*;
- import cn.com.goldenwater.dcproj.dto.BisInspRgstrDto;
- import cn.com.goldenwater.dcproj.dto.BisInspRsfcoRgstrVo;
- import cn.com.goldenwater.dcproj.model.*;
- import cn.com.goldenwater.dcproj.param.*;
- import cn.com.goldenwater.dcproj.service.*;
- import cn.com.goldenwater.dcproj.utils.AdLevelUtil;
- import cn.com.goldenwater.dcproj.utils.BeanUtil;
- import cn.com.goldenwater.dcproj.utils.Builder;
- import cn.com.goldenwater.dcproj.utils.InspPblmUtils;
- import cn.com.goldenwater.dcproj.utils.impexcel.ExpAndImpUtil;
- import cn.com.goldenwater.dcproj.utils.impexcel.field.ExcelFieldLists;
- import cn.com.goldenwater.dcproj.utils.impexcel.format.RsfcoFieldFromatExp;
- import cn.com.goldenwater.id.util.UuidUtil;
- import com.github.pagehelper.PageHelper;
- import com.github.pagehelper.PageInfo;
- import org.apache.commons.collections.CollectionUtils;
- import org.apache.commons.lang3.StringUtils;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.beans.factory.annotation.Value;
- import org.springframework.stereotype.Service;
- import org.springframework.transaction.annotation.Transactional;
- import javax.servlet.http.HttpServletResponse;
- import java.io.File;
- import java.util.*;
- /**
- * @author lune
- * @date 2020-4-21
- */
- @Service
- @Transactional
- public class BisInspRsfcoRgstrServiceImpl extends AbstractCrudService<BisInspRsfcoRgstr, BisInspRsfcoRgstrParam> implements BisInspRsfcoRgstrService, BisInspObjStrategy {
- @Autowired
- private BisInspRsfcoRgstrDao bisInspRsfcoRgstrDao;
- @Autowired
- private BisInspPblmDao bisInspPblmDao;
- @Autowired
- private AttRsBaseDao attRsBaseDao;
- @Autowired
- private AttAdXBaseDao attAdXBaseDao;
- @Autowired
- private BisInspAllObjDao bisInspAllObjDao;
- @Autowired
- private AttRsBaseCrrctDao attRsBaseCrrctDao;
- @Autowired
- private BisInspRsfcoRgstrBaseDao bisInspRsfcoRgstrBaseDao;
- @Autowired
- private BisInspRsfcoRgstrFlliDao bisInspRsfcoRgstrFlliDao;
- @Autowired
- private BisInspRsfcoRgstrAoeparoDao bisInspRsfcoRgstrAoeparoDao;
- @Autowired
- private BisInspRsfcoRgstrBaseInfoService bisInspRsfcoRgstrBaseInfoService;
- @Autowired
- private BisInspRsfcoRgstrFcsService bisInspRsfcoRgstrFcsService;
- @Autowired
- private BisInspRsfcoRgstrTflwliiService bisInspRsfcoRgstrTflwliiService;
- @Value("${export.templatePath}")
- private String templatePath;
- public BisInspRsfcoRgstrServiceImpl(BisInspRsfcoRgstrDao bisInspRsfcoRgstrDao) {
- super(bisInspRsfcoRgstrDao);
- this.bisInspRsfcoRgstrDao = bisInspRsfcoRgstrDao;
- }
- @Override
- public void insertObj(BisInspAllObj bisInspAllObj, String persId) {
- AttRsBaseParam baseParam = new AttRsBaseParam();
- baseParam.setRsCode(bisInspAllObj.getCode());
- AttRsBase attRsBase = attRsBaseDao.getBy(baseParam);
- BisInspRsfcoRgstr rgstr = new BisInspRsfcoRgstr();
- rgstr.setId(UuidUtil.uuid());
- rgstr.setObjId(bisInspAllObj.getObjId());
- rgstr.setRsCode(attRsBase.getRsCode());
- rgstr.setRsName(bisInspAllObj.getNm());
- rgstr.setHasDamRegCode("1");
- rgstr.setDamRegCode(attRsBase.getRegCode());
- rgstr.setAdCode(attRsBase.getAdmDiv());
- rgstr.setLocation(attRsBase.getLocation());
- rgstr.setHystSite(attRsBase.getRsLoc());
- rgstr.setCompDateStr(attRsBase.getCompDateStr());
- if (attRsBase.getCenterYGd() != null) {
- rgstr.setGdY(Double.parseDouble(attRsBase.getCenterYGd()));
- }
- if (attRsBase.getCenterXGd() != null) {
- rgstr.setGdX(Double.parseDouble(attRsBase.getCenterXGd()));
- }
- if (attRsBase.getCenterX() != null) {
- rgstr.setCenterX(Double.parseDouble(attRsBase.getCenterX()));
- }
- if (attRsBase.getCenterY() != null) {
- rgstr.setCenterY(Double.parseDouble(attRsBase.getCenterY()));
- }
- rgstr.setRsAdmCode(attRsBase.getRsAdmCode());
- rgstr.setRsAdmName(attRsBase.getRsAdmName());
- rgstr.setEngScal(attRsBase.getEngScal());
- rgstr.setDamType(attRsBase.getDamType());
- rgstr.setTotCap(attRsBase.getTotCap());
- rgstr.setDamSizeHig(attRsBase.getDamSizeHig());
- rgstr.setResCreateTime(attRsBase.getCompDate());
- rgstr.setPresState(StateEnum.NOWASTSTATE.getKey());
- rgstr.setRunManageState(StateEnum.NOWASTSTATE.getKey());
- rgstr.setProjectState(StateEnum.NOWASTSTATE.getKey());
- rgstr.setState(StateEnum.NOWASTSTATE.getKey());
- Date date = new Date();
- rgstr.setIntm(date);
- rgstr.setUptm(date);
- bisInspRsfcoRgstrDao.insert(rgstr);
- // bisInspRsfcoRgstrBaseInfoService.insert(Builder.of(BisInspRsfcoRgstrBaseInfoParam::new).with(BisInspRsfcoRgstrBaseInfoParam::setRgstrId, rgstr.getId()).build());
- // bisInspRsfcoRgstrFcsService.insert(Builder.of(BisInspRsfcoRgstrFcsParam::new).with(BisInspRsfcoRgstrFcsParam::setRgstrId, rgstr.getId()).build());
- // bisInspRsfcoRgstrTflwliiService.insert(Builder.of(BisInspRsfcoRgstrTflwliiParam::new).with(BisInspRsfcoRgstrTflwliiParam::setRgstrId, rgstr.getId()).build());
- }
- @Override
- public String getType() {
- return BisInspEnum.RSFCO.getValue();
- }
- @Override
- public void cleanObjData(String objId) {
- BisInspRsfcoRgstrParam rsfcoRgstrParam = new BisInspRsfcoRgstrParam();
- rsfcoRgstrParam.setObjId(objId);
- List<BisInspRsfcoRgstr> list = this.bisInspRsfcoRgstrDao.findList(rsfcoRgstrParam);
- if (list.size() > 0) {
- String id = list.get(0).getId();
- BisInspPblmParam bisInspPblmParam = new BisInspPblmParam();
- bisInspPblmParam.setObjId(objId);
- bisInspPblmParam.setObjType(BisInspEnum.RSFCO.getValue());
- this.bisInspPblmDao.deleteBy(bisInspPblmParam);//删除问题
- BisInspRsfcoRgstrBaseParam baseParam = new BisInspRsfcoRgstrBaseParam();
- baseParam.setRgstrId(id);
- bisInspRsfcoRgstrBaseDao.deleteBy(baseParam);
- BisInspRsfcoRgstrFlliParam flliParam = new BisInspRsfcoRgstrFlliParam();
- flliParam.setRgstrId(id);
- bisInspRsfcoRgstrFlliDao.deleteBy(flliParam);
- bisInspRsfcoRgstrBaseInfoService.deleteBy(Builder.of(BisInspRsfcoRgstrBaseInfoParam::new).with(BisInspRsfcoRgstrBaseInfoParam::setRgstrId, id).build());
- bisInspRsfcoRgstrFcsService.deleteBy(Builder.of(BisInspRsfcoRgstrFcsParam::new).with(BisInspRsfcoRgstrFcsParam::setRgstrId, id).build());
- bisInspRsfcoRgstrTflwliiService.deleteBy(Builder.of(BisInspRsfcoRgstrTflwliiParam::new).with(BisInspRsfcoRgstrTflwliiParam::setRgstrId, id).build());
- BisInspRsfcoRgstrAoeparoParam aoeparoParam = new BisInspRsfcoRgstrAoeparoParam();
- aoeparoParam.setRgstrId(id);
- bisInspRsfcoRgstrAoeparoDao.deleteBy(aoeparoParam);
- this.bisInspRsfcoRgstrDao.delete(id);//删除水库登记表
- BisInspAllObjParam bisInspAllObjParam = new BisInspAllObjParam();
- bisInspAllObjParam.setObjId(objId);
- this.bisInspAllObjDao.deleteBy(bisInspAllObjParam);//删除对象名录表
- AttRsBaseCrrctParam attRsBaseCrrctParam = new AttRsBaseCrrctParam();
- attRsBaseCrrctParam.setObjId(objId);
- attRsBaseCrrctDao.deleteBy(attRsBaseCrrctParam);
- }
- }
- @Override
- public PageInfo findObjPageByType(TypeParam typeParam, HttpServletResponse response) {
- return findRsfcoPage(typeParam, response);
- }
- @Override
- public Object findObjListByType(TypeParam typeParam) {
- if (StringUtils.isNotBlank(typeParam.getAdCode())) {
- typeParam.setAdCode(String.valueOf(AdLevelUtil.SubAd(typeParam.getAdCode()).get(SplitValue.SUBAD)));
- }
- List<BisInspRgstrDto> list = bisInspRsfcoRgstrDao.findRsfcoList(typeParam);
- list = InspPblmUtils.changeList(list);
- return list;
- }
- @Override
- public PageInfo<BisInspRgstrDto> findRsfcoPage(TypeParam param, HttpServletResponse response) {
- if (StringUtils.isNotBlank(param.getAdCode())) {
- param.setAdCode(String.valueOf(AdLevelUtil.SubAd(param.getAdCode()).get(SplitValue.SUBAD)));
- }
- if (StringUtils.isNotBlank(param.getAdCodes())) {
- param.setAdCodes(AdLevelUtil.getListAddvcd(param.getAdCodes()));
- }
- PageHelper.startPage(param);
- List<BisInspRgstrDto> list = bisInspRsfcoRgstrDao.findRsfcoList(param);
- list = InspPblmUtils.changeList(list);
- return new PageInfo<BisInspRgstrDto>(list);
- }
- @Override
- public void downloadTemplate(HttpServletResponse response, TypeParam param) throws Exception {
- // 模板路径
- String filePath = templatePath + File.separator + "pblmSkfh_tb.xls";
- // SHEET名称
- String sheetName = "水库防洪填报表";
- // 文件名称带后缀
- String fileName = sheetName + ".xls";
- // startRow
- int startRow = 2;
- if (StringUtils.isBlank(param.getPlnaId())) {
- List<Map<String, Object>> list = new ArrayList<>();
- ExpAndImpUtil.download(response, list, filePath, startRow, sheetName);
- }
- //获取水库登记表
- List<BisInspRgstrDto> rsfcoList = bisInspRsfcoRgstrDao.findRsfcoList(param);
- rsfcoList = InspPblmUtils.changeList(rsfcoList);
- List<BisInspRsfcoRgstrVo> bisInspRsfcoRgstrVoList = new ArrayList();
- //赋值其他参数
- setRsfcoRgstrVoList(rsfcoList, bisInspRsfcoRgstrVoList);
- //数据转换为Map
- List<Map<String, Object>> dataList = rsfcoRgsteListConvertMap(bisInspRsfcoRgstrVoList);
- ExpAndImpUtil.download(response, dataList, filePath, startRow, sheetName);
- }
- private List<Map<String, Object>> rsfcoRgsteListConvertMap(List<BisInspRsfcoRgstrVo> bisInspRsfcoRgstrVoList) {
- List<Map<String, Object>> dataList = new LinkedList<>();
- bisInspRsfcoRgstrVoList.forEach(vo -> {
- Map<String, Object> map = new HashMap<>();
- //登记表
- BisInspRgstrDto bisInspRgstrDto = vo.getBisInspRgstrDto();
- ExpAndImpUtil.convertBeanToMap(bisInspRgstrDto, ExcelFieldLists.bisInspRgstrArrays, map, RsfcoFieldFromatExp.class);
- //水库防洪调度存在问题原因分析及整改意见管理
- BisInspRsfcoRgstrAoeparo bisInspRsfcoRgstrAoeparo = vo.getBisInspRsfcoRgstrAoeparo();
- ExpAndImpUtil.convertBeanToMap(bisInspRsfcoRgstrAoeparo, ExcelFieldLists.bisInspRsfcoRgstrAoeparoArrays, map, RsfcoFieldFromatExp.class);
- //水库防洪调度总体情况管理
- BisInspRsfcoRgstrBase bisInspRsfcoRgstrBase = vo.getBisInspRsfcoRgstrBase();
- ExpAndImpUtil.convertBeanToMap(bisInspRsfcoRgstrBase, ExcelFieldLists.bisInspRsfcoRgstrBaseArrays, map, RsfcoFieldFromatExp.class);
- //水库防洪调度和汛限水位执行管理
- BisInspRsfcoRgstrFlli bisInspRsfcoRgstrFlli = vo.getBisInspRsfcoRgstrFlli();
- ExpAndImpUtil.convertBeanToMap(bisInspRsfcoRgstrFlli, ExcelFieldLists.bisInspRsfcoRgstrFlliArrays, map, RsfcoFieldFromatExp.class);
- dataList.add(map);
- });
- return dataList;
- }
- private void setRsfcoRgstrVoList(List<BisInspRgstrDto> rsfcoList, List<BisInspRsfcoRgstrVo> bisInspRsfcoRgstrVoList) {
- rsfcoList.forEach(rsfcoDto -> {
- BisInspRsfcoRgstrVo bisVo = new BisInspRsfcoRgstrVo();
- //登记表
- bisVo.setBisInspRgstrDto(rsfcoDto);
- String rgstrId = rsfcoDto.getRgstrId();
- //水库防洪调度总体情况管理
- BisInspRsfcoRgstrBaseParam baseParam = new BisInspRsfcoRgstrBaseParam();
- baseParam.setRgstrId(rgstrId);
- BisInspRsfcoRgstrBase base = bisInspRsfcoRgstrBaseDao.getBy(baseParam);
- bisVo.setBisInspRsfcoRgstrBase(base);
- //水库防洪调度和汛限水位执行管理
- BisInspRsfcoRgstrFlliParam flliParam = new BisInspRsfcoRgstrFlliParam();
- flliParam.setRgstrId(rgstrId);
- BisInspRsfcoRgstrFlli flli = bisInspRsfcoRgstrFlliDao.getBy(flliParam);
- bisVo.setBisInspRsfcoRgstrFlli(flli);
- //水库防洪调度存在问题原因分析及整改意见管理
- BisInspRsfcoRgstrAoeparoParam aoeparoParam = new BisInspRsfcoRgstrAoeparoParam();
- aoeparoParam.setRgstrId(rgstrId);
- BisInspRsfcoRgstrAoeparo aoeparo = bisInspRsfcoRgstrAoeparoDao.getBy(aoeparoParam);
- bisVo.setBisInspRsfcoRgstrAoeparo(aoeparo);
- bisInspRsfcoRgstrVoList.add(bisVo);
- });
- }
- @Override
- public int insertIntoData(List<LinkedHashMap<String, Object>> list, FileParam param) throws Exception {
- for (LinkedHashMap<String, Object> map : list) {
- String persId = param.getPersId();
- //修改登记表
- BisInspRgstrDto bisInspRgstrDto = (BisInspRgstrDto) ExpAndImpUtil.convertMapToBean(BisInspRgstrDto.class, map);
- String rgstrId = "";
- if (StringUtils.isNotBlank(bisInspRgstrDto.getRgstrId())) {
- rgstrId = bisInspRgstrDto.getRgstrId();
- BisInspRsfcoRgstr bisInspRsfcoRgstr = new BisInspRsfcoRgstr();
- BeanUtil.copyObject1(bisInspRgstrDto, bisInspRsfcoRgstr);
- bisInspRsfcoRgstr.setRsName(bisInspRgstrDto.getNm());
- bisInspRsfcoRgstr.setUptm(new Date());
- bisInspRsfcoRgstr.setRecPersId(persId);
- bisInspRsfcoRgstr.setId(rgstrId);
- bisInspRsfcoRgstr.setLocation(bisInspRgstrDto.getProvince() + bisInspRgstrDto.getCity() + bisInspRgstrDto.getCountry());
- bisInspRsfcoRgstrDao.update(bisInspRsfcoRgstr);
- } else {
- String id = UuidUtil.uuid();
- rgstrId = id;
- BisInspRsfcoRgstr bisInspRsfcoRgstr = new BisInspRsfcoRgstr();
- BeanUtil.copyObject1(bisInspRgstrDto, bisInspRsfcoRgstr);
- AttRsBaseParam attRsBaseParam = new AttRsBaseParam();
- attRsBaseParam.setRsName(bisInspRgstrDto.getNm());
- List<AttRsBase> baseList = attRsBaseDao.findList(attRsBaseParam);
- if (CollectionUtils.isEmpty(baseList)) {
- continue;
- }
- AttRsBase attRsBase = baseList.get(0);
- String ObjUuid = UuidUtil.uuid();
- BisInspAllObj bisInspAllObj = new BisInspAllObj();
- bisInspAllObj.setCode(attRsBase.getRsCode());
- bisInspAllObj.setId(param.getGroupId());
- bisInspAllObj.setNm(attRsBase.getRsName());
- bisInspAllObj.setLgtd(Double.parseDouble(attRsBase.getCenterXGd()));
- bisInspAllObj.setLttd(Double.parseDouble(attRsBase.getCenterYGd()));
- bisInspAllObj.setObjId(ObjUuid);
- bisInspAllObj.setPtype("26");
- bisInspAllObjDao.insert(bisInspAllObj);
- BeanUtil.copyObject1(attRsBase, bisInspRsfcoRgstr);
- String adCode = attRsBase.getAdmDiv();
- bisInspRsfcoRgstr.setAdCode(adCode);
- bisInspRsfcoRgstr.setId(id);
- bisInspRsfcoRgstr.setHasDamRegCode("1");
- bisInspRsfcoRgstr.setRecPersId(persId);
- bisInspRsfcoRgstr.setObjId(ObjUuid);
- bisInspRsfcoRgstr.setIntm(new Date());
- bisInspRsfcoRgstr.setUptm(new Date());
- bisInspRsfcoRgstrDao.insert(bisInspRsfcoRgstr);
- }
- //水库防洪调度总体情况管理
- insertRsfcoRgstrBse(map, persId, rgstrId);
- //水库防洪调度和汛限水位执行管理
- insertRsfcoRgstrFlli(map, persId, rgstrId);
- //水库防洪调度存在问题原因分析及整改意见管理
- insertRsfcoRgstrAoeparo(map, persId, rgstrId);
- }
- return 0;
- }
- private void insertRsfcoRgstrAoeparo(LinkedHashMap<String, Object> map, String persId, String rgstrId) throws IllegalAccessException, InstantiationException {
- if (StringUtils.isNotBlank(rgstrId)) {
- //水库防洪调度存在问题原因分析及整改意见管理
- BisInspRsfcoRgstrAoeparo aoeparo = (BisInspRsfcoRgstrAoeparo) ExpAndImpUtil.convertMapToBean(BisInspRsfcoRgstrAoeparo.class, map);
- BisInspRsfcoRgstrAoeparoParam aoeparoParam = new BisInspRsfcoRgstrAoeparoParam();
- aoeparoParam.setRgstrId(rgstrId);
- List<BisInspRsfcoRgstrAoeparo> aoeparoList = bisInspRsfcoRgstrAoeparoDao.findList(aoeparoParam);
- if (CollectionUtils.isEmpty(aoeparoList)) {
- aoeparo.setId(UuidUtil.uuid());
- aoeparo.setRecPersId(persId);
- aoeparo.setRgstrId(rgstrId);
- aoeparo.setIntm(new Date());
- aoeparo.setUptm(new Date());
- bisInspRsfcoRgstrAoeparoDao.insert(aoeparo);
- } else {
- aoeparo.setId(aoeparoList.get(0).getId());
- aoeparo.setRecPersId(persId);
- aoeparo.setRgstrId(rgstrId);
- aoeparo.setUptm(new Date());
- bisInspRsfcoRgstrAoeparoDao.update(aoeparo);
- }
- }
- }
- private void insertRsfcoRgstrFlli(LinkedHashMap<String, Object> map, String persId, String rgstrId) throws IllegalAccessException, InstantiationException {
- if (StringUtils.isNotBlank(rgstrId)) {
- //水库防洪调度和汛限水位执行管理
- BisInspRsfcoRgstrFlli flli = (BisInspRsfcoRgstrFlli) ExpAndImpUtil.convertMapToBean(BisInspRsfcoRgstrFlli.class, map);
- BisInspRsfcoRgstrFlliParam flliParam = new BisInspRsfcoRgstrFlliParam();
- flliParam.setRgstrId(rgstrId);
- List<BisInspRsfcoRgstrFlli> flliList = bisInspRsfcoRgstrFlliDao.findList(flliParam);
- if (CollectionUtils.isEmpty(flliList)) {
- flli.setId(UuidUtil.uuid());
- flli.setRecPersId(persId);
- flli.setIntm(new Date());
- flli.setUptm(new Date());
- flli.setRgstrId(rgstrId);
- bisInspRsfcoRgstrFlliDao.insert(flli);
- } else {
- flli.setId(flliList.get(0).getId());
- flli.setRecPersId(persId);
- flli.setUptm(new Date());
- bisInspRsfcoRgstrFlliDao.update(flli);
- }
- }
- }
- private void insertRsfcoRgstrBse(LinkedHashMap<String, Object> map, String persId, String rgstrId) throws IllegalAccessException, InstantiationException {
- if (StringUtils.isNotBlank(rgstrId)) {
- //水库防洪调度总体情况管理
- BisInspRsfcoRgstrBase base = (BisInspRsfcoRgstrBase) ExpAndImpUtil.convertMapToBean(BisInspRsfcoRgstrBase.class, map);
- BisInspRsfcoRgstrBaseParam baseParam = new BisInspRsfcoRgstrBaseParam();
- baseParam.setRgstrId(rgstrId);
- List<BisInspRsfcoRgstrBase> baseList = bisInspRsfcoRgstrBaseDao.findList(baseParam);
- if (CollectionUtils.isEmpty(baseList)) {
- base.setId(UuidUtil.uuid());
- base.setIntm(new Date());
- base.setUptm(new Date());
- base.setRecPersId(persId);
- base.setRgstrId(rgstrId);
- bisInspRsfcoRgstrBaseDao.insert(base);
- } else {
- base.setId(baseList.get(0).getId());
- base.setUptm(new Date());
- base.setRecPersId(persId);
- bisInspRsfcoRgstrBaseDao.update(base);
- }
- }
- }
- @Override
- public BisInspRsfcoRgstr get(String key) {
- BisInspRsfcoRgstr rgstr = super.get(key);
- if (rgstr != null) {
- if (rgstr.getAdCode() != null && rgstr.getAdCode().length() == 6) {
- rgstr.setAdCode(rgstr.getAdCode() + "000000");
- }
- AttAdXBase adXBase = attAdXBaseDao.get(rgstr.getAdCode());
- if (adXBase != null) {
- rgstr.setLocation(adXBase.getAdFullName());
- }
- }
- return rgstr;
- }
- }
|