丽知:新增u8c查询方法
This commit is contained in:
parent
20c11900ea
commit
5f762ea504
|
@ -4,9 +4,11 @@ import com.hzya.frame.plugin.lets.constant.ProfilesActiveConstant;
|
||||||
import com.hzya.frame.plugin.lets.dao.IBdCorpDao;
|
import com.hzya.frame.plugin.lets.dao.IBdCorpDao;
|
||||||
import com.hzya.frame.plugin.lets.dao.IBdInvbasdocDao;
|
import com.hzya.frame.plugin.lets.dao.IBdInvbasdocDao;
|
||||||
import com.hzya.frame.plugin.lets.dao.IBdInvmandocDao;
|
import com.hzya.frame.plugin.lets.dao.IBdInvmandocDao;
|
||||||
|
import com.hzya.frame.plugin.lets.dao.IBdStordocDao;
|
||||||
import com.hzya.frame.plugin.lets.entity.BdCorpEntity;
|
import com.hzya.frame.plugin.lets.entity.BdCorpEntity;
|
||||||
import com.hzya.frame.plugin.lets.entity.BdInvbasdocEntity;
|
import com.hzya.frame.plugin.lets.entity.BdInvbasdocEntity;
|
||||||
import com.hzya.frame.plugin.lets.entity.BdInvmandocEntity;
|
import com.hzya.frame.plugin.lets.entity.BdInvmandocEntity;
|
||||||
|
import com.hzya.frame.plugin.lets.entity.BdStordocEntity;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
@ -38,6 +40,7 @@ public class QueryU8CEntityUtil {
|
||||||
*/
|
*/
|
||||||
public BdCorpEntity queryBdCorpByUnitCode(String unitCode) {
|
public BdCorpEntity queryBdCorpByUnitCode(String unitCode) {
|
||||||
BdCorpEntity entity = new BdCorpEntity();
|
BdCorpEntity entity = new BdCorpEntity();
|
||||||
|
entity.setDr(0);
|
||||||
entity.setUnitcode(unitCode);
|
entity.setUnitcode(unitCode);
|
||||||
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||||
List<BdCorpEntity> query = iBdCorpDao.query(entity);
|
List<BdCorpEntity> query = iBdCorpDao.query(entity);
|
||||||
|
@ -53,6 +56,7 @@ public class QueryU8CEntityUtil {
|
||||||
*/
|
*/
|
||||||
public BdCorpEntity queryBdCorpByPkCorp(String pkCorp) {
|
public BdCorpEntity queryBdCorpByPkCorp(String pkCorp) {
|
||||||
BdCorpEntity entity = new BdCorpEntity();
|
BdCorpEntity entity = new BdCorpEntity();
|
||||||
|
entity.setDr(0);
|
||||||
entity.setPkCorp(pkCorp);
|
entity.setPkCorp(pkCorp);
|
||||||
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||||
List<BdCorpEntity> query = iBdCorpDao.query(entity);
|
List<BdCorpEntity> query = iBdCorpDao.query(entity);
|
||||||
|
@ -64,6 +68,82 @@ public class QueryU8CEntityUtil {
|
||||||
}
|
}
|
||||||
////////////////////////////////////////////////////////////////////////////////////////公司
|
////////////////////////////////////////////////////////////////////////////////////////公司
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////仓库
|
||||||
|
@Autowired
|
||||||
|
private IBdStordocDao iBdStordocDao;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据仓库编码查询仓库
|
||||||
|
* @param storCode
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public BdStordocEntity queryBdStordocByCode(String storCode){
|
||||||
|
BdStordocEntity entity = new BdStordocEntity();
|
||||||
|
entity.setDr(0L);
|
||||||
|
entity.setStorcode(storCode);
|
||||||
|
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||||
|
List<BdStordocEntity> query = iBdStordocDao.query(entity);
|
||||||
|
if (query.size() >= 1) {
|
||||||
|
return query.get(0);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 根据仓库主键查询仓库
|
||||||
|
* @param pkStordoc
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public BdStordocEntity queryBdStordocByPk(String pkStordoc){
|
||||||
|
BdStordocEntity entity = new BdStordocEntity();
|
||||||
|
entity.setDr(0L);
|
||||||
|
entity.setPkStordoc(pkStordoc);
|
||||||
|
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||||
|
List<BdStordocEntity> query = iBdStordocDao.query(entity);
|
||||||
|
if (query.size() >= 1) {
|
||||||
|
return query.get(0);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 根据仓库名称查询仓库
|
||||||
|
* @param StorName
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public BdStordocEntity queryBdStordocByNamek(String StorName){
|
||||||
|
BdStordocEntity entity = new BdStordocEntity();
|
||||||
|
entity.setDr(0L);
|
||||||
|
entity.setStorname(StorName);
|
||||||
|
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||||
|
List<BdStordocEntity> query = iBdStordocDao.query(entity);
|
||||||
|
if (query.size() >= 1) {
|
||||||
|
return query.get(0);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 根据仓库编码+公司编码查询仓库
|
||||||
|
* @param storCode
|
||||||
|
* @param pkCorp
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public BdStordocEntity queryBdStordocByCodeAndPkCorp(String storCode,String pkCorp){
|
||||||
|
BdStordocEntity entity = new BdStordocEntity();
|
||||||
|
entity.setDr(0L);
|
||||||
|
entity.setStorcode(storCode);
|
||||||
|
entity.setPkCorp(pkCorp);
|
||||||
|
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||||
|
List<BdStordocEntity> query = iBdStordocDao.query(entity);
|
||||||
|
if (query.size() >= 1) {
|
||||||
|
return query.get(0);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////仓库
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////存货基本档案
|
////////////////////////////////////////////////////////////////////////////////////////存货基本档案
|
||||||
@Autowired
|
@Autowired
|
||||||
private IBdInvbasdocDao iBdInvbasdocDao;
|
private IBdInvbasdocDao iBdInvbasdocDao;
|
||||||
|
|
Loading…
Reference in New Issue