|
|
|
@ -1,10 +1,10 @@
|
|
|
|
|
package com.glxp.api.service.basic.impl;
|
|
|
|
|
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.glxp.api.dao.basic.BasicUnitMaintainDao;
|
|
|
|
|
import com.glxp.api.dao.basic.BasicCorpDao;
|
|
|
|
|
import com.glxp.api.entity.basic.BasicCorpEntity;
|
|
|
|
|
import com.glxp.api.req.basic.BasicUnitMaintainFilterRequest;
|
|
|
|
|
import com.glxp.api.service.basic.BasicUnitMaintainService;
|
|
|
|
|
import com.glxp.api.service.basic.BasicCorpService;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@ -13,10 +13,10 @@ import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
|
public class BasicUnitMaintainServiceImpl implements BasicUnitMaintainService {
|
|
|
|
|
public class BasicCorpServiceImpl implements BasicCorpService {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
BasicUnitMaintainDao basicUnitMaintainDao;
|
|
|
|
|
BasicCorpDao basicCorpDao;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<BasicCorpEntity> filterList(BasicUnitMaintainFilterRequest basicUnitMaintainFilterRequest) {
|
|
|
|
@ -28,34 +28,34 @@ public class BasicUnitMaintainServiceImpl implements BasicUnitMaintainService {
|
|
|
|
|
PageHelper.offsetPage(offset, basicUnitMaintainFilterRequest.getLimit());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<BasicCorpEntity> data = basicUnitMaintainDao.filterList(basicUnitMaintainFilterRequest);
|
|
|
|
|
List<BasicCorpEntity> data = basicCorpDao.filterList(basicUnitMaintainFilterRequest);
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean insertBasicUnitMaintainignore(BasicCorpEntity basicUnitMaintainEntity) {
|
|
|
|
|
return basicUnitMaintainDao.insertBasicUnitMaintainignore(basicUnitMaintainEntity);
|
|
|
|
|
return basicCorpDao.insertBasicUnitMaintainignore(basicUnitMaintainEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean insertBasicUnitMaintain(BasicCorpEntity basicUnitMaintainEntity) {
|
|
|
|
|
return basicUnitMaintainDao.insertBasicUnitMaintain(basicUnitMaintainEntity);
|
|
|
|
|
return basicCorpDao.insertBasicUnitMaintain(basicUnitMaintainEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean insert(BasicCorpEntity basicUnitMaintainEntity) {
|
|
|
|
|
return basicUnitMaintainDao.insert(basicUnitMaintainEntity);
|
|
|
|
|
return basicCorpDao.insert(basicUnitMaintainEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean updateById(BasicCorpEntity basicUnitMaintainSaveRequest) {
|
|
|
|
|
basicUnitMaintainSaveRequest.setUpdateTime(new Date());
|
|
|
|
|
return basicUnitMaintainDao.updateById(basicUnitMaintainSaveRequest);
|
|
|
|
|
return basicCorpDao.updateById(basicUnitMaintainSaveRequest);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean deleteById(String id) {
|
|
|
|
|
return basicUnitMaintainDao.deleteById(id);
|
|
|
|
|
return basicCorpDao.deleteById(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -74,27 +74,27 @@ public class BasicUnitMaintainServiceImpl implements BasicUnitMaintainService {
|
|
|
|
|
} else if ("thirdId4".equals(thirdSys)) {
|
|
|
|
|
filterUdiInfoRequest.setThirdId4(thirdId);
|
|
|
|
|
}
|
|
|
|
|
return basicUnitMaintainDao.selectByThirdId(filterUdiInfoRequest);
|
|
|
|
|
return basicCorpDao.selectByThirdId(filterUdiInfoRequest);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<BasicCorpEntity> batchSelectByIds(List<Integer> ids) {
|
|
|
|
|
return basicUnitMaintainDao.batchSelectByIds(ids);
|
|
|
|
|
return basicCorpDao.batchSelectByIds(ids);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<BasicCorpEntity> batchSelectByErpIds(List<String> erpIds) {
|
|
|
|
|
return basicUnitMaintainDao.batchSelectByErpIds(erpIds);
|
|
|
|
|
return basicCorpDao.batchSelectByErpIds(erpIds);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<BasicCorpEntity> batchSelectByErpIdsAndName(List<String> erpIds, String name) {
|
|
|
|
|
return basicUnitMaintainDao.batchSelectByErpIdsAndName(erpIds, name);
|
|
|
|
|
return basicCorpDao.batchSelectByErpIdsAndName(erpIds, name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public BasicCorpEntity selectById(String id) {
|
|
|
|
|
return basicUnitMaintainDao.selectById(id);
|
|
|
|
|
return basicCorpDao.selectById(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -104,7 +104,7 @@ public class BasicUnitMaintainServiceImpl implements BasicUnitMaintainService {
|
|
|
|
|
}
|
|
|
|
|
BasicUnitMaintainFilterRequest filterUdiInfoRequest = new BasicUnitMaintainFilterRequest();
|
|
|
|
|
filterUdiInfoRequest.setErpId(id);
|
|
|
|
|
List<BasicCorpEntity> basicUnitMaintainEntities = basicUnitMaintainDao.filterList(filterUdiInfoRequest);
|
|
|
|
|
List<BasicCorpEntity> basicUnitMaintainEntities = basicCorpDao.filterList(filterUdiInfoRequest);
|
|
|
|
|
if (basicUnitMaintainEntities != null && basicUnitMaintainEntities.size() > 0)
|
|
|
|
|
return basicUnitMaintainEntities.get(0);
|
|
|
|
|
return null;
|
|
|
|
@ -112,7 +112,7 @@ public class BasicUnitMaintainServiceImpl implements BasicUnitMaintainService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public BasicCorpEntity selectByName(String name) {
|
|
|
|
|
return basicUnitMaintainDao.selectByName(name);
|
|
|
|
|
return basicCorpDao.selectByName(name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|