|
|
@ -7,9 +7,6 @@ import com.google.common.annotations.VisibleForTesting; |
|
|
|
import com.win.framework.common.exception.ServiceException; |
|
|
|
import com.win.framework.common.pojo.PageResult; |
|
|
|
import com.win.framework.datapermission.core.util.DataPermissionUtils; |
|
|
|
import com.win.framework.security.core.util.SecurityFrameworkUtils; |
|
|
|
import com.win.module.infra.api.trends.TrendsApi; |
|
|
|
import com.win.module.infra.api.trends.dto.TrendsCreateReqDTO; |
|
|
|
import com.win.module.wms.controller.supplier.vo.*; |
|
|
|
import com.win.module.wms.convert.supplier.SupplierConvert; |
|
|
|
import com.win.module.wms.dal.dataobject.supplier.SupplierDO; |
|
|
@ -38,9 +35,6 @@ public class SupplierServiceImpl implements SupplierService { |
|
|
|
@Resource |
|
|
|
private SupplierMapper supplierMapper; |
|
|
|
|
|
|
|
@Resource |
|
|
|
private TrendsApi trendsApi; |
|
|
|
|
|
|
|
@Override |
|
|
|
public Long createSupplier(SupplierCreateReqVO createReqVO) { |
|
|
|
validateSupplierForCreateOrUpdate(createReqVO.getId(),createReqVO.getCode(),createReqVO.getShortName(),createReqVO.getAvailable()); |
|
|
@ -57,13 +51,6 @@ public class SupplierServiceImpl implements SupplierService { |
|
|
|
validateSupplierForCreateOrUpdate(updateReqVO.getId(),updateReqVO.getCode(),updateReqVO.getShortName(),updateReqVO.getAvailable()); |
|
|
|
// 更新
|
|
|
|
SupplierDO updateObj = SupplierConvert.INSTANCE.convert(updateReqVO); |
|
|
|
TrendsCreateReqDTO dto = new TrendsCreateReqDTO(); |
|
|
|
dto.setTableName("basicItembasic"); |
|
|
|
dto.setTableId(updateObj.getId()); |
|
|
|
dto.setType(2); |
|
|
|
dto.setContent("更新basic_itembasic表数据"); |
|
|
|
dto.setCreator(String.valueOf(SecurityFrameworkUtils.getLoginUserId())); |
|
|
|
trendsApi.createTrends(dto); |
|
|
|
supplierMapper.updateById(updateObj); |
|
|
|
} |
|
|
|
|
|
|
|