@@ -79,7 +79,8 @@ public class RmsCapacityController extends BaseRESTfulController {
@ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "Short")
@PostMapping(value = "/deleteCapacity/{id}")
public RESTfulResult deleteCapacity(@PathVariable("id") BigDecimal id){
- return success(rmsCapacityService.deleteCapacity(id));
+ int s = rmsCapacityService.deleteCapacity(id);
+ return success(s);
}
/**
@@ -32,4 +32,7 @@ public interface RmsCapacityMapper extends IBaseMapper<RmsCapacity, BigDecimal>
//根据ssoId查询承运商名称
Map<String, Object> getCarrierNameBySSOId(String carrierSSOId);
+
+ //根据运力id查找ssoId
+ String ssoIdBycapacityId(BigDecimal id);
@@ -253,7 +253,7 @@
</set>
where BID_AREA_ID = #{bidAreaId,jdbcType=DECIMAL}
</update>
- <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
+ <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
<include refid="select" />
</select>
@@ -845,4 +845,10 @@
from RMS_CARRIER RC
where RC.CARRIER_SSO_ID=#{carrierSSOId}
+ <select id="ssoIdBycapacityId" parameterType="java.math.BigDecimal" resultType="java.lang.String">
+ select RC.CAPACITY_SSO_ID "capacitySsoId"
+ from RMS_CAPACITY RC
+ where RC.CAPACITY_ID=#{id}
+ </select>
</mapper>
@@ -889,7 +889,7 @@
where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
@@ -470,7 +470,7 @@
where CONSIGNEE_ID = #{consigneeId,jdbcType=DECIMAL}
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
@@ -252,7 +252,7 @@
where MATERIAL_TYPE_ID = #{materialTypeId,jdbcType=DECIMAL}
@@ -296,7 +296,7 @@
where PRICE_ID = #{priceId,jdbcType=DECIMAL}
@@ -423,7 +423,7 @@
where PERSONNEL_ID = #{personnelId,jdbcType=DECIMAL}
@@ -725,7 +725,7 @@
where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}