部门周报填报第二版(修改业务未完成)
This commit is contained in:
parent
f5f551a7d8
commit
3d105b0c4d
@ -693,8 +693,9 @@ public class Api {
|
|||||||
* 部门周报填报管理
|
* 部门周报填报管理
|
||||||
*/
|
*/
|
||||||
public static final String PROJECT_DEPARTMENT = PROJECT_PREFIX + "/departmentWeekly";
|
public static final String PROJECT_DEPARTMENT = PROJECT_PREFIX + "/departmentWeekly";
|
||||||
public static final String PROJECT_DEPARTMENT_EDIT= PROJECT_DEPARTMENT+"/{id}";
|
public static final String PROJECT_DEPARTMENT_EDIT= PROJECT_DEPARTMENT+"/update";
|
||||||
public static final String PROJECT_DEPARTMENT_SHOW= PROJECT_DEPARTMENT+"showById/{id}";
|
public static final String PROJECT_DEPARTMENT_SHOW= PROJECT_DEPARTMENT+"/showById";
|
||||||
|
public static final String PROJECT_DEPARTMENT_UPDATE= PROJECT_DEPARTMENT_SHOW+"/{id}";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
left join personal_member pm on pm.id_ =sl.userinfo_id
|
left join personal_member pm on pm.id_ =sl.userinfo_id
|
||||||
left join project_info pi on pi.id_=cast(pw.project_id as BIGINT)
|
left join project_info pi on pi.id_=cast(pw.project_id as BIGINT)
|
||||||
where
|
where
|
||||||
pw.is_complete='0' and pw.dept_id=#{projectWeekly.deptId}
|
pw.is_complete='0' and pw.dept_id=#{projectWeekly.deptId} and pw.weekly_type = '1'
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getDeptId" resultType="java.lang.String" parameterType="java.lang.String">
|
<select id="getDeptId" resultType="java.lang.String" parameterType="java.lang.String">
|
||||||
@ -67,11 +67,12 @@
|
|||||||
from project_weekly
|
from project_weekly
|
||||||
where user_id = #{userId}
|
where user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
<select id="showById" resultType="java.lang.Object" parameterType="java.lang.String">
|
<select id="showById" resultType="java.util.Map" parameterType="java.lang.String">
|
||||||
select pm.person_name , pw.workload
|
select pm.person_name , pw.workload
|
||||||
from project_weekly pw
|
from project_weekly pw
|
||||||
left join system_user_login sl on cast(pw.user_id as BIGINT)=sl.id_
|
left join system_user_login sl on cast(pw.user_id as BIGINT)=sl.id_
|
||||||
left join personal_member pm on pm.id_ =sl.userinfo_id
|
left join personal_member pm on pm.id_ =sl.userinfo_id
|
||||||
where pw.id_=#{id}
|
where pw.id_=#{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -39,11 +39,13 @@ public class ProjectDepartmentController implements ProjectDepartmentApi {
|
|||||||
ISystemUserLoginService systemUserLoginService;
|
ISystemUserLoginService systemUserLoginService;
|
||||||
|
|
||||||
|
|
||||||
|
// 获取用户名和工作量
|
||||||
@Override
|
@Override
|
||||||
@GetMapping(Api.PROJECT_DEPARTMENT_SHOW)
|
@GetMapping(Api.PROJECT_DEPARTMENT_UPDATE)
|
||||||
public String showById(@PathVariable("id") Long id) throws XQException {
|
public String showById(@PathVariable Long id) throws XQException {
|
||||||
//根据项目id获取员工信息
|
//根据项目id获取员工信息
|
||||||
List<Object> list = projectDepartmentService.showById(id.toString());
|
List<Object> list = projectDepartmentService.showById(id.toString());
|
||||||
|
System.out.println("list = " + list);
|
||||||
return ApiResponse.fillSuccess(list);
|
return ApiResponse.fillSuccess(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +107,7 @@ public class ProjectDepartmentController implements ProjectDepartmentApi {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@PutMapping(Api.PROJECT_DEPARTMENT_EDIT)
|
@PutMapping(Api.PROJECT_DEPARTMENT_EDIT)
|
||||||
public String edit(Long userId, ProjectInfoInitDto initDto, Long id) throws XQException {
|
public String edit(@RequestHeader("userId") Long userId, @RequestBody ProjectWeeklyAddReq projectWeeklyAddReq) throws XQException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,5 +29,5 @@ public interface ProjectDepartmentApi {
|
|||||||
@ApiImplicitParam(name = "token", value = "登录标识符", required = true, paramType = "header", dataType = "String"),
|
@ApiImplicitParam(name = "token", value = "登录标识符", required = true, paramType = "header", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "userId", value = "用户id", required = true, paramType = "header", dataType = "Long"),
|
@ApiImplicitParam(name = "userId", value = "用户id", required = true, paramType = "header", dataType = "Long"),
|
||||||
})
|
})
|
||||||
String edit(Long userId, ProjectInfoInitDto initDto, Long id) throws XQException;
|
String edit(Long userId, ProjectWeeklyAddReq projectWeeklyAddReq) throws XQException;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user