|
@@ -1,12 +1,10 @@
|
|
|
package com.steerinfo.dil.service.impl;
|
|
|
|
|
|
-import com.google.inject.internal.cglib.core.$Constants;
|
|
|
import com.steerinfo.dil.mapper.RmsCapacityMapper;
|
|
|
import com.steerinfo.dil.mapper.RmsCarrierMapper;
|
|
|
import com.steerinfo.dil.model.RmsCapacity;
|
|
|
import com.steerinfo.dil.service.IRmsCapacityService;
|
|
|
import com.steerinfo.dil.util.DataChange;
|
|
|
-import io.swagger.models.auth.In;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -89,11 +87,14 @@ public class RmsCapacityServiceImpl implements IRmsCapacityService {
|
|
|
* 删除运力信息
|
|
|
* */
|
|
|
@Override
|
|
|
- public int deleteCapacity(BigDecimal id) {
|
|
|
- RmsCapacity rmsCapacity = rmsCapacityMapper.selectByPrimaryKey(id);
|
|
|
- rmsCapacity.setDeleted(new BigDecimal(1));
|
|
|
- return rmsCapacityMapper.updateByPrimaryKeySelective(rmsCapacity);
|
|
|
-
|
|
|
+ public String deleteCapacity(BigDecimal id) {
|
|
|
+ RmsCapacity rmsCapacity=new RmsCapacity();
|
|
|
+ rmsCapacity.setCapacityId(id);
|
|
|
+ //根据id查找ssoid
|
|
|
+ String ssoId = rmsCapacityMapper.ssoIdBycapacityId(id);
|
|
|
+ rmsCapacity.setDeleted(new BigDecimal(1));
|
|
|
+ rmsCapacityMapper.updateByPrimaryKeySelective(rmsCapacity);
|
|
|
+ return ssoId;
|
|
|
}
|
|
|
|
|
|
/**
|