|
@@ -11,6 +11,7 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -141,7 +142,7 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
@ApiOperation(value="查询所有空闲的运力信息")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
|
|
|
- @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "apiId(248)", value = "动态表头", required = false, dataType = "Integer"),
|
|
|
@ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
|
|
|
@ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
|
|
|
})
|
|
@@ -157,14 +158,16 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
mapValue = new HashMap<>();
|
|
|
}
|
|
|
if(index != null){
|
|
|
- mapValue.put("index", "%" + index + "%");
|
|
|
+ mapValue.put("index","%" + index + "%");
|
|
|
}
|
|
|
- if(carrierSsoId != null){
|
|
|
- if(!"null".equals(carrierSsoId)){
|
|
|
- mapValue.put("carrierSsoId", carrierSsoId);
|
|
|
- }
|
|
|
+ if (carrierSsoId != null && carrierSsoId.equals("undefined")) {
|
|
|
+ carrierSsoId = null;
|
|
|
}
|
|
|
-
|
|
|
+ BigDecimal carrierId = null;
|
|
|
+ if (carrierSsoId != null) {
|
|
|
+ carrierId = universalMapper.getCarrierIdBySSO(carrierSsoId);
|
|
|
+ }
|
|
|
+ mapValue.put("carrierId",carrierId);
|
|
|
//不分页筛选数据
|
|
|
List<Map<String, Object>> allCapacity = universalMapper.getAllCapacityByCarrierLike(mapValue);
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
@@ -452,6 +455,23 @@ public class UniversalController extends BaseRESTfulController {
|
|
|
return universalMapper.getAllGatepost();
|
|
|
}
|
|
|
|
|
|
+ //通过承运商id获取userId
|
|
|
+ @PostMapping("/getUserIdByCarrierId")
|
|
|
+ public String getUserIdByCarrierId(@RequestBody Map<String,Object> map){
|
|
|
+ //获取承运商id
|
|
|
+ Integer carrierId =(Integer) map.get("carrierId");
|
|
|
+ return universalMapper.getUserIdbyCarrierId(carrierId);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "已经在sso权限模块承运商下拉框")
|
|
|
+ @GetMapping("/getAllCarrierIdForSso")
|
|
|
+ public List<Map<String,Object>> getAllCarrierIdForSso(){
|
|
|
+ return universalMapper.getAllCarrierIdForSso();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@ApiModelProperty(value = "模糊查询收货单位")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|