2 changed files with 45 additions and 2 deletions
@ -0,0 +1,43 @@ |
|||
package com.ccsens.defaultwbs.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.common.bean.dto.CClockingInDto; |
|||
import com.ccsens.common.bean.dto.CDeliverDto; |
|||
import com.ccsens.common.bean.vo.CClockingInVo; |
|||
import com.ccsens.common.bean.vo.CDeliverVo; |
|||
import com.ccsens.common.service.IClockingInService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Api(tags = "考勤相关") |
|||
@RestController |
|||
@RequestMapping("/clock") |
|||
@Slf4j |
|||
public class ClockingInController { |
|||
|
|||
@Resource |
|||
private IClockingInService clockingInService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询考勤信息", notes = "") |
|||
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CClockingInVo.ClockingInInfo>> queryDeliverOfTask(@ApiParam @Validated @RequestBody QueryDto<CClockingInDto.QueryClockingIn> params) throws Exception{ |
|||
List<CClockingInVo.ClockingInInfo> clockingInInfos = clockingInService.queryClockingIn(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(clockingInInfos); |
|||
} |
|||
} |
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: test |
|||
include: common, util-test |
|||
active: dev |
|||
include: common, util-dev |
|||
|
Loading…
Reference in new issue