|
@ -6,6 +6,7 @@ import com.win.module.system.api.user.dto.AdminUserRespDTO; |
|
|
import com.win.module.wms.convert.deliverJob.DeliverJobDetailConvert; |
|
|
import com.win.module.wms.convert.deliverJob.DeliverJobDetailConvert; |
|
|
import com.win.module.wms.dal.dataobject.deliverJob.DeliverJobDetailDO; |
|
|
import com.win.module.wms.dal.dataobject.deliverJob.DeliverJobDetailDO; |
|
|
import com.win.module.wms.service.deliverJob.DeliverJobDetailService; |
|
|
import com.win.module.wms.service.deliverJob.DeliverJobDetailService; |
|
|
|
|
|
import jodd.util.StringUtil; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import javax.annotation.Resource; |
|
|
import javax.annotation.Resource; |
|
|
import org.springframework.validation.annotation.Validated; |
|
|
import org.springframework.validation.annotation.Validated; |
|
@ -145,4 +146,19 @@ public class DeliverJobMainController { |
|
|
return success(result); |
|
|
return success(result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/getCountByStatus") |
|
|
|
|
|
@Operation(summary = "APP获得发货任务数量根据任务状态") |
|
|
|
|
|
@Parameter(name = "types", description = "类型数组", required = false, example = "\"types\":[\"1\",\"2\"]") |
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('wms:deliver-job-main:query')") |
|
|
|
|
|
public CommonResult<Map<String,Integer>> getCountByStatus(@RequestBody Map<String, List<String>> map) { |
|
|
|
|
|
List<String> list = new ArrayList<>(); |
|
|
|
|
|
if(map==null||map.get("types")==null|| StringUtil.isEmpty(map.get("types").toString())){ |
|
|
|
|
|
list.add("1");//默认不传为执行中的
|
|
|
|
|
|
}else{ |
|
|
|
|
|
list = map.get("types"); |
|
|
|
|
|
} |
|
|
|
|
|
Map<String, Integer> countByStatus = deliverJobMainService.getCountByStatus(list); |
|
|
|
|
|
return success(countByStatus); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|