FAISP/src/main/java/com/dbnt/faisp/kwms/KwmsController.java

22 lines
681 B
Java
Raw Normal View History

2022-10-27 00:02:05 +00:00
package com.dbnt.faisp.kwms;
import com.dbnt.faisp.kwms.model.VEmployee;
import com.dbnt.faisp.kwms.service.KwmsService;
import com.dbnt.faisp.main.userInfo.model.UserInfo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequiredArgsConstructor
@RequestMapping("/kwms")
public class KwmsController {
private final KwmsService kwmsService;
@GetMapping("/getEmpInfo")
public UserInfo getEmpInfo(VEmployee empInfo){
return kwmsService.selectEmpInfo(empInfo.getDicCode());
}
}