|
|
@ -6,6 +6,7 @@ import com.win.module.wms.controller.unplannedreceiptJob.vo.*; |
|
|
|
import com.win.module.wms.convert.unplannedreceiptJob.UnplannedreceiptJobDetailConvert; |
|
|
|
import com.win.module.wms.dal.dataobject.unplannedreceiptJob.UnplannedreceiptJobDetailDO; |
|
|
|
import com.win.module.wms.service.unplannedreceiptJob.UnplannedreceiptJobDetailService; |
|
|
|
import jodd.util.StringUtil; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import javax.annotation.Resource; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
@ -139,4 +140,19 @@ public class UnplannedreceiptJobMainController { |
|
|
|
return success(result); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/getCountByStatus") |
|
|
|
@Operation(summary = "APP获得计划外入库任务数量根据任务状态") |
|
|
|
@Parameter(name = "types", description = "类型数组", required = false, example = "\"types\":[\"1\",\"2\"]") |
|
|
|
@PreAuthorize("@ss.hasPermission('wms:unplannedreceipt-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 = unplannedreceiptJobMainService.getCountByStatus(list); |
|
|
|
return success(countByStatus); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|