第三方服务更新

purchase
anthonyywj2 3 years ago
parent f477c2e068
commit 19f32be2a0

@ -123,11 +123,6 @@ public class BussinessOriginTypeController {
} }
bussinessTypeEntity.setUpdateTime(new Date()); bussinessTypeEntity.setUpdateTime(new Date());
BussinessOriginTypeEntity bussinessOriginTypeEntity = bussinessOriginTypeService.findByAction(bussinessTypeEntity.getAction());
if (bussinessOriginTypeEntity != null) {
return ResultVOUtils.error(500, "单据类型已存在!");
}
bussinessOriginTypeService.insertBusOriginType(bussinessTypeEntity); bussinessOriginTypeService.insertBusOriginType(bussinessTypeEntity);
} else { } else {
return ResultVOUtils.error(999, "参数错误"); return ResultVOUtils.error(999, "参数错误");

@ -59,6 +59,6 @@ public class BasicThirdSysDetailServiceImpl implements BasicThirdSysDetailServic
@Override @Override
public BaseResponse testThirdService(BasicThirdSysEntity basicThirdSysEntity) { public BaseResponse testThirdService(BasicThirdSysEntity basicThirdSysEntity) {
return erpBasicClient.testConnection(basicThirdSysEntity); return erpBasicClient.testThridConnect(basicThirdSysEntity);
} }
} }

@ -89,6 +89,7 @@ public class ThrProductsDlService {
item -> { item -> {
ThrProductsImportDetailEntity thrProductsImportDetailEntity = new ThrProductsImportDetailEntity(); ThrProductsImportDetailEntity thrProductsImportDetailEntity = new ThrProductsImportDetailEntity();
BeanUtils.copyProperties(item, thrProductsImportDetailEntity); BeanUtils.copyProperties(item, thrProductsImportDetailEntity);
thrProductsImportDetailEntity.setSpec(item.getStandard());
thrProductsImportDetailEntity.setThirdSysFk(thirdSys); thrProductsImportDetailEntity.setThirdSysFk(thirdSys);
thrProductsImportDetailEntity.setGenKeyFk(thrProductsImportLogEntity.getGenKey()); thrProductsImportDetailEntity.setGenKeyFk(thrProductsImportLogEntity.getGenKey());
return thrProductsImportDetailEntity; return thrProductsImportDetailEntity;
@ -445,6 +446,7 @@ public class ThrProductsDlService {
item -> { item -> {
ThrProductsImportDetailEntity thrProductsImportDetailEntity = new ThrProductsImportDetailEntity(); ThrProductsImportDetailEntity thrProductsImportDetailEntity = new ThrProductsImportDetailEntity();
BeanUtils.copyProperties(item, thrProductsImportDetailEntity); BeanUtils.copyProperties(item, thrProductsImportDetailEntity);
thrProductsImportDetailEntity.setSpec(item.getStandard());
thrProductsImportDetailEntity.setThirdSysFk(thirdSys); thrProductsImportDetailEntity.setThirdSysFk(thirdSys);
thrProductsImportDetailEntity.setGenKeyFk(thrProductsImportLogEntity.getGenKey()); thrProductsImportDetailEntity.setGenKeyFk(thrProductsImportLogEntity.getGenKey());
return thrProductsImportDetailEntity; return thrProductsImportDetailEntity;

@ -1,6 +1,6 @@
server.port=9991 server.port=9991
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.jdbc-url=jdbc:mysql://127.0.0.1/udiwms?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true spring.datasource.jdbc-url=jdbc:mysql://127.0.0.1:3306/udiwms?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=123456 spring.datasource.password=123456
server.servlet.context-path= server.servlet.context-path=

@ -1,4 +1,4 @@
spring.profiles.active=test1 spring.profiles.active=dev
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

@ -49,6 +49,7 @@
AND inv_warehouse_sub.parentId = #{parentId} AND inv_warehouse_sub.parentId = #{parentId}
</if> </if>
</where> </where>
limit 1
</select> </select>
<select id="filterGroupInvSub" parameterType="com.glxp.api.admin.req.inventory.FilterInvWarehouseRequest" <select id="filterGroupInvSub" parameterType="com.glxp.api.admin.req.inventory.FilterInvWarehouseRequest"

Loading…
Cancel
Save