Commit 0111c17e by 徐高华

导购任务

parent eebe0cc3
......@@ -21,6 +21,8 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -105,7 +107,9 @@ public class ClerkTaskController {
if(!resp.isSuccess()) {
return RestResponse.failure("9999",resp.getMessage()) ;
}
Map<Long,Integer> map = this.statusMap(Arrays.asList(resp.getResult())) ;
vo = EntityUtil.changeEntityByJSON(TaskPlanDetailVO.class,resp.getResult());
vo.setStatus(map.get(vo.getPlanId()));
return RestResponse.successResult(vo) ;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment