BUG修复
parent
08a9ab7b0d
commit
6576335c6c
@ -1,14 +0,0 @@
|
||||
package com.api.organization.web;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @Description:
|
||||
* @Date 2022/4/26
|
||||
* @Version V1.0
|
||||
**/
|
||||
@Path("/bs/hrmorganization/demo")
|
||||
public class DemoController extends com.engine.organization.web.DemoController {
|
||||
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
package com.engine.organization.mapper;
|
||||
|
||||
|
||||
import com.engine.organization.entity.po.Demo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @description:
|
||||
* @Date 2022/3/9
|
||||
* @Version V1.0
|
||||
**/
|
||||
public interface DemoMapper {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
* @return
|
||||
*/
|
||||
List<Demo> listAll();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.engine.organization.mapper.DemoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.engine.organization.entity.po.Demo">
|
||||
<result column="fid" property="fid"/>
|
||||
<result column="flevel" property="flevel"/>
|
||||
<result column="fwd" property="fwd"/>
|
||||
<result column="fnumber" property="fnumber"/>
|
||||
<result column="fname" property="fname"/>
|
||||
<result column="fleader" property="fleader"/>
|
||||
<result column="fplan" property="fplan"/>
|
||||
<result column="fonjob" property="fonjob"/>
|
||||
<result column="fisvitual" property="fisvitual"/>
|
||||
<result column="ftimebegin" property="ftimebegin"/>
|
||||
<result column="ftimeend" property="ftimeend"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 表字段 -->
|
||||
<sql id="baseColumns">
|
||||
t.fid
|
||||
, t.flevel
|
||||
, t.fwd
|
||||
, t.fnumber
|
||||
, t.fname
|
||||
, t.fleader
|
||||
, t.fplan
|
||||
, t.fonjob
|
||||
, t.fisvitual
|
||||
, t.ftimebegin
|
||||
, t.ftimeend
|
||||
</sql>
|
||||
|
||||
<select id="listAll" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="baseColumns"/>
|
||||
FROM hr_company t
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
@ -1,22 +0,0 @@
|
||||
package com.engine.organization.service;
|
||||
|
||||
import com.engine.organization.entity.po.Demo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @description:
|
||||
* @Date 2022/4/27
|
||||
* @Version V1.0
|
||||
**/
|
||||
public interface DemoService {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
List<Demo> list(String name);
|
||||
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
package com.engine.organization.service;
|
||||
|
||||
import com.engine.organization.entity.po.Demo;
|
||||
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @description:
|
||||
* @Date 2022/4/28
|
||||
* @Version V1.0
|
||||
**/
|
||||
public interface TestService {
|
||||
|
||||
Demo list(String name);
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package com.engine.organization.service.impl;
|
||||
|
||||
import com.engine.organization.entity.po.Demo;
|
||||
import com.engine.organization.service.TestService;
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @description:
|
||||
* @Date 2022/4/28
|
||||
* @Version V1.0
|
||||
**/
|
||||
//@WeaIocService
|
||||
public class TestServiceImpl implements TestService {
|
||||
|
||||
@Override
|
||||
public Demo list(String name) {
|
||||
return Demo.builder().fid(1).build();
|
||||
}
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
package com.engine.organization.wrapper;
|
||||
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.annotation.Log;
|
||||
import com.engine.organization.entity.po.Demo;
|
||||
import com.engine.organization.enums.OperateTypeEnum;
|
||||
import com.engine.organization.service.DemoService;
|
||||
import com.engine.organization.service.impl.DemoServiceImpl;
|
||||
import com.engine.organization.util.OrganizationWrapper;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import weaver.hrm.User;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @description:
|
||||
* @Date 2022/4/26
|
||||
* @Version V1.0
|
||||
**/
|
||||
public class DemoWrapper extends OrganizationWrapper {
|
||||
|
||||
private DemoService getDemoService(User user) {
|
||||
return ServiceUtil.getService(DemoServiceImpl.class, user);
|
||||
}
|
||||
|
||||
@Log(operateType = OperateTypeEnum.DELETE, operateDesc = "operateDesc")
|
||||
public ReturnResult testDemo(String name) {
|
||||
List<Demo> list = getDemoService(user).list(name);
|
||||
//writeOperateLog(new Object(){}.getClass(), "记录testDemo操作日志");
|
||||
return ReturnResult.successed(list);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue