修改基础数据往来单位类名字

master
郑明梁 2 years ago
parent 5eb62999e9
commit 59959b9ef7

@ -8,7 +8,6 @@ import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.constant.ConstantStatus;
import com.glxp.api.entity.basic.BasicCorpEntity;
import com.glxp.api.entity.system.SystemParamConfigEntity;
import com.glxp.api.entity.thrsys.ThrCorpEntity;
import com.glxp.api.entity.thrsys.ThrSystemDetailEntity;
import com.glxp.api.entity.thrsys.ThrSystemEntity;
import com.glxp.api.http.ErpBasicClient;
@ -16,12 +15,11 @@ import com.glxp.api.req.basic.BasicUnitMaintainFilterRequest;
import com.glxp.api.req.basic.CombineUnitRequest;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.thrsys.FilterBasicThirdSysRequest;
import com.glxp.api.req.thrsys.FilterThrCorpRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.basic.BasicErpUnitsResponse;
import com.glxp.api.res.basic.BasicProductThirdSysResponse;
import com.glxp.api.res.basic.BasicUnitMaintainResponse;
import com.glxp.api.service.basic.BasicUnitMaintainService;
import com.glxp.api.service.basic.BasicCorpService;
import com.glxp.api.service.system.CompanyService;
import com.glxp.api.service.system.SystemParamConfigService;
import com.glxp.api.service.thrsys.ThrCorpService;
@ -45,10 +43,10 @@ import java.util.stream.Collectors;
*
*/
@RestController
public class BasicUnitMaintainController {
public class BasicCorpController {
@Resource
private BasicUnitMaintainService basicUnitMaintainService;
private BasicCorpService basicUnitMaintainService;
@Resource
ThrSystemDetailService thrSystemDetailService;
@Resource

@ -14,7 +14,7 @@ import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.basic.BasicCorpExportLogResponse;
import com.glxp.api.service.basic.BasicCorpExportLogService;
import com.glxp.api.service.basic.BasicUnitMaintainService;
import com.glxp.api.service.basic.BasicCorpService;
import com.glxp.api.util.CustomUtil;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
@ -37,7 +37,7 @@ public class BasicCorpExportLogController {
@Resource
BasicCorpExportLogService basicCorpExportLogService;
@Resource
private BasicUnitMaintainService basicUnitMaintainService;
private BasicCorpService basicUnitMaintainService;
@Resource
private BasicGenJsonService basicGenJsonService;;

@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.constant.BasicProcessStatus;
import com.glxp.api.constant.ConstantStatus;
import com.glxp.api.entity.basic.BasicCorpEntity;
import com.glxp.api.entity.basic.BasicCorpsExportLogEntity;
import com.glxp.api.entity.system.SyncDataSetEntity;
@ -12,12 +11,9 @@ import com.glxp.api.http.HttpOkClient;
import com.glxp.api.req.basic.BasicCorpsExportRequest;
import com.glxp.api.req.basic.BasicUnitMaintainFilterRequest;
import com.glxp.api.res.basic.BasicCorpExportLogResponse;
import com.glxp.api.res.basic.UdiRelevanceResponse;
import com.glxp.api.service.basic.BasicCorpExportLogService;
import com.glxp.api.service.basic.BasicUnitMaintainService;
import com.glxp.api.service.basic.UdiRelevanceService;
import com.glxp.api.service.basic.BasicCorpService;
import com.glxp.api.service.system.SyncDataSetService;
import com.glxp.api.service.system.SystemParamConfigService;
import com.glxp.api.util.ExcelUtil;
import org.springframework.beans.BeanUtils;
import org.springframework.scheduling.annotation.Async;
@ -45,7 +41,7 @@ public class BasicGenExcelService {
@Resource
BasicCorpExportLogService basicCorpExportLogService;
@Resource
BasicUnitMaintainService basicUnitMaintainService;
BasicCorpService basicUnitMaintainService;
// @Resource
// UdiInfoExportLogService udiInfoExportLogService;
// @Resource

@ -1,6 +1,5 @@
package com.glxp.api.controller.basic;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.io.file.FileWriter;
import cn.hutool.core.util.ReflectUtil;
@ -11,21 +10,18 @@ import com.glxp.api.constant.BasicProcessStatus;
import com.glxp.api.dao.thrsys.ThrCorpDao;
import com.glxp.api.entity.basic.BasicCorpEntity;
import com.glxp.api.entity.basic.BasicCorpsExportLogEntity;
import com.glxp.api.entity.thrsys.ThrCorpEntity;
import com.glxp.api.req.basic.BasicCorpsExportRequest;
import com.glxp.api.req.basic.BasicUnitMaintainFilterRequest;
import com.glxp.api.req.thrsys.FilterThrCorpRequest;
import com.glxp.api.res.basic.BasicCorpExportLogResponse;
import com.glxp.api.res.thrsys.ThrCorpsResponse;
import com.glxp.api.service.basic.BasicCorpExportLogService;
import com.glxp.api.service.basic.BasicUnitMaintainService;
import com.glxp.api.service.basic.BasicCorpService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.io.File;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
@ -37,7 +33,7 @@ public class BasicGenJsonService {
@Resource
BasicCorpExportLogService corpExportLogService;
@Resource
BasicUnitMaintainService basicUnitMaintainService;
BasicCorpService basicUnitMaintainService;
// @Resource
// UdiInfoExportLogService udiInfoExportLogService;
// @Resource

@ -20,7 +20,7 @@ import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.basic.UdiRlSupResponse;
import com.glxp.api.res.basic.UdiRelevanceResponse;
import com.glxp.api.service.auth.AuthAdminService;
import com.glxp.api.service.basic.BasicUnitMaintainService;
import com.glxp.api.service.basic.BasicCorpService;
import com.glxp.api.service.basic.UdiRlSupService;
import com.glxp.api.service.basic.CompanyProductsRelService;
import com.glxp.api.service.basic.UdiRelevanceService;
@ -50,7 +50,7 @@ public class UdiRlSupController {
@Resource
private CompanyProductsRelService companyProductsRelService;
@Resource
private BasicUnitMaintainService basicUnitMaintainService;
private BasicCorpService basicUnitMaintainService;
@Resource
private UdiRelevanceService udiRelevanceService;

@ -17,7 +17,6 @@ import com.glxp.api.entity.basic.UdiEntity;
import com.glxp.api.entity.basic.UdiProductEntity;
import com.glxp.api.entity.inout.IoCodeEnttity;
import com.glxp.api.entity.inout.IoCodeTempEntity;
import com.glxp.api.entity.inout.IoCodeTempEntity;
import com.glxp.api.entity.inout.IoOrderEntity;
import com.glxp.api.entity.system.SystemParamConfigEntity;
import com.glxp.api.http.SpsDirectClient;
@ -32,7 +31,6 @@ import com.glxp.api.res.basic.UdiRlSupResponse;
import com.glxp.api.res.inout.AddCodeResult;
import com.glxp.api.service.auth.InvWarehouseService;
import com.glxp.api.service.basic.*;
import com.glxp.api.service.inout.IoCodeService;
import com.glxp.api.service.inout.IoCodeTempService;
import com.glxp.api.service.inout.IoOrderService;
import com.glxp.api.service.inout.IoTransInoutService;
@ -78,7 +76,7 @@ public class IoCodeTempController extends BaseController {
@Resource
UdiProductService udiProductService;
@Resource
BasicUnitMaintainService basicUnitMaintainService;
BasicCorpService basicUnitMaintainService;
@Resource
GennerOrderUtils gennerOrderUtils;
@Resource

@ -9,7 +9,7 @@ import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface BasicUnitMaintainDao {
public interface BasicCorpDao {
List<BasicCorpEntity> filterList(BasicUnitMaintainFilterRequest basicUnitMaintainFilterRequest);
boolean insertBasicUnitMaintain(BasicCorpEntity basicUnitMaintainEntity);

@ -8,7 +8,7 @@ import com.glxp.api.req.basic.BasicUnitMaintainFilterRequest;
import java.util.List;
public interface BasicUnitMaintainService {
public interface BasicCorpService {
List<BasicCorpEntity> filterList(BasicUnitMaintainFilterRequest basicUnitMaintainFilterRequest);

@ -2,21 +2,16 @@ package com.glxp.api.service.basic.impl;
import cn.hutool.core.collection.CollUtil;
import com.github.pagehelper.PageHelper;
import com.glxp.api.constant.BasicProcessStatus;
import com.glxp.api.dao.basic.BasicCorpImportLogDao;
import com.glxp.api.dao.basic.BasicUnitMaintainDao;
import com.glxp.api.dao.basic.BasicCorpDao;
import com.glxp.api.dao.thrsys.ThrCorpDao;
import com.glxp.api.entity.basic.BasicCorpEntity;
import com.glxp.api.entity.basic.BasicCorpsImportDetailEntity;
import com.glxp.api.entity.basic.BasicCorpsImportLogEntity;
import com.glxp.api.entity.thrsys.ThrCorpEntity;
import com.glxp.api.req.basic.BasicUnitMaintainFilterRequest;
import com.glxp.api.req.basic.FilterCorpImportLogRequest;
import com.glxp.api.res.basic.BasicCorpExportLogResponse;
import com.glxp.api.res.thrsys.ThrCorpsResponse;
import com.glxp.api.service.basic.BasicCorpImportLogService;
import com.glxp.api.service.basic.BasicUnitMaintainService;
import com.glxp.api.util.IpUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
@ -95,7 +90,7 @@ public class BasicCorpImportLogServiceImpl implements BasicCorpImportLogService
if (CollUtil.isNotEmpty(importData.getCorpList())) {
try {
List<BasicCorpEntity> corpList = importData.getCorpList();
BasicUnitMaintainDao mapper = batchSession.getMapper(BasicUnitMaintainDao.class);
BasicCorpDao mapper = batchSession.getMapper(BasicCorpDao.class);
for (BasicCorpEntity basicUnitMaintainEntity : corpList) {
mapper.importBasicUnitMaintain(basicUnitMaintainEntity);
}

@ -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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.glxp.api.dao.basic.BasicUnitMaintainDao">
<mapper namespace="com.glxp.api.dao.basic.BasicCorpDao">
<select id="filterList" parameterType="com.glxp.api.req.basic.BasicUnitMaintainFilterRequest"
resultType="com.glxp.api.entity.basic.BasicCorpEntity">
Loading…
Cancel
Save