新增工种功能
This commit is contained in:
parent
f8f015c324
commit
0657276512
@ -40,14 +40,13 @@ public class WorkTypeController extends DefaultBaseController {
|
||||
|
||||
|
||||
|
||||
// @ApiOperation(value = "工种类型树形列表", notes = "工种类型树形列表")
|
||||
// @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
// @GetMapping("listztree")
|
||||
// public List<WorkTypeZTreeDTO> listZTree() {
|
||||
// Map<String, Object> params = requestParams();
|
||||
// //return workTypeService.list(params);
|
||||
//
|
||||
// }
|
||||
@ApiOperation(value = "工种类型树形列表", notes = "工种类型树形列表")
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("listztree")
|
||||
public List<WorkTypeZTreeDTO> listZTree() {
|
||||
Map<String, Object> params = requestParams();
|
||||
return workTypeService.listZTree(params);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
package cn.com.tenlion.service.worktype;
|
||||
|
||||
import cn.com.tenlion.pojo.dtos.worktype.WorkTypeZTreeDTO;
|
||||
import ink.wgink.pojo.ListPage;
|
||||
import ink.wgink.pojo.result.SuccessResultList;
|
||||
import cn.com.tenlion.pojo.dtos.worktype.WorkTypeDTO;
|
||||
@ -19,6 +20,14 @@ import java.util.Map;
|
||||
**/
|
||||
public interface IWorkTypeService {
|
||||
|
||||
|
||||
/**
|
||||
* 工种类型树形列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<WorkTypeZTreeDTO> listZTree(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 新增工种类型
|
||||
*
|
||||
|
@ -40,7 +40,7 @@
|
||||
</resultMap>
|
||||
|
||||
|
||||
<resultMap id="workTypeZTreeDTO" type="cn.com.tenlion.pojo.pos.worktype.WorkTypeZTreeDTO">
|
||||
<resultMap id="workTypeZTreeDTO" type="cn.com.tenlion.pojo.dtos.worktype.WorkTypeZTreeDTO">
|
||||
<result column="work_type_id" property="id"/>
|
||||
<result column="work_type_name" property="name"/>
|
||||
<result column="work_type_parent_id" property="pId"/>
|
||||
|
Loading…
Reference in New Issue
Block a user