由内向外同步

master
wj 2 years ago
parent 6e3dcbf684
commit 93ce0d6898

@ -24,7 +24,7 @@ public enum BasicExportTypeEnum {
/**
*
*/
DOCUMENT_TYPE("document_type", "单据类型"),
DOCUMENT_TYPE_DATA("document_type_data", "单据类型"),
/**
*

@ -334,7 +334,7 @@ public class SpsSyncDownloadController {
case OTHER_DATA:
saveUploadOtherData(JSONUtil.toBean(obj, SpsSyncOtherDataResponse.class));
break;
case DOCUMENT_TYPE:
case DOCUMENT_TYPE_DATA:
saveUploadDocumentTypeData(JSONUtil.toBean(obj, SpsSyncBusResponse.class));
break;
case COUNTRY_DI_DATA:

@ -1,7 +1,6 @@
package com.glxp.api.dao.basic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.dao.BaseMapperPlus;
import com.glxp.api.entity.basic.BasicCorpEntity;
import com.glxp.api.req.basic.BasicUnitMaintainFilterRequest;
@ -19,7 +18,7 @@ public interface BasicCorpDao extends BaseMapperPlus<BasicCorpDao, BasicCorpEnti
boolean insertThrUnitMaintainignore(ThrUnitMaintainResponse thrUnitMaintainResponse);
int insert(BasicCorpEntity basicUnitMaintainEntity);
int insertEntity(BasicCorpEntity basicUnitMaintainEntity);
int updateById(BasicCorpEntity basicUnitMaintainSaveRequest);

@ -1,13 +1,11 @@
package com.glxp.api.service.basic.impl;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.BooleanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
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.res.thrsys.ThrCorpsResponse;
import com.glxp.api.res.thrsys.ThrUnitMaintainResponse;
import com.glxp.api.service.basic.BasicCorpService;
import org.springframework.stereotype.Service;
@ -52,7 +50,7 @@ public class BasicCorpServiceImpl extends ServiceImpl<BasicCorpDao, BasicCorpEnt
@Override
public boolean insert(BasicCorpEntity basicUnitMaintainEntity) {
return basicCorpDao.insert(basicUnitMaintainEntity) == 0 ? false : true;
return basicCorpDao.insertEntity(basicUnitMaintainEntity) == 0 ? false : true;
}
@Override

@ -151,7 +151,7 @@
)
</insert>
<insert id="insert" parameterType="com.glxp.api.entity.basic.BasicCorpEntity">
<insert id="insertEntity" parameterType="com.glxp.api.entity.basic.BasicCorpEntity">
insert INTO basic_corp(thirdId, erpId, name, spell, addr,
status, type, creditNo, contact, mobile, thirdId1, thirdId2, thirdId3, thirdId4,
thirdName, thirdName1, thirdName2, thirdName3, thirdName4, updateTime, corpType, outType,createUser,createTime,updateUser,remark)

Loading…
Cancel
Save