|
@@ -14,7 +14,6 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.Arrays;
|
|
|
-import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -38,10 +37,9 @@ public class TimeTypeController {
|
|
|
public HttpRespMsg get(Integer companyId) {
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
List<User> userList = userMapper.selectList(new QueryWrapper<User>().eq("company_id", companyId).eq("report_status", 1));
|
|
|
- HashMap map=new HashMap();
|
|
|
- map.put("result", timeTypeService.getById(companyId));
|
|
|
- map.put("userList", userList);
|
|
|
- httpRespMsg.data=map;
|
|
|
+ TimeType timeType = timeTypeService.getById(companyId);
|
|
|
+ timeType.setUserList(userList);
|
|
|
+ httpRespMsg.data=timeType;
|
|
|
return httpRespMsg;
|
|
|
}
|
|
|
|