新增工种功能

This commit is contained in:
ly19960718 2021-05-01 14:28:44 +08:00
parent f8f015c324
commit 0657276512
3 changed files with 17 additions and 9 deletions

View File

@ -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);
}

View File

@ -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);
/**
* 新增工种类型
*

View File

@ -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"/>