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