完成坐席工号查询接口。
This commit is contained in:
parent
2e72789a4f
commit
f31d9e9812
@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import com.cpic.xim.utils.account.CpicXIMStaffInfo;
|
import com.cpic.xim.utils.account.CpicXIMStaffInfo;
|
||||||
|
import com.cpic.xim.utils.account.TeleSalerInfo;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping( "/account" )
|
@RequestMapping( "/account" )
|
||||||
@ -58,8 +59,31 @@ public class StaffInfoQueryController
|
|||||||
public TeleSalerQueryResult queryTeleSalerInfo( String teleSalerCode )
|
public TeleSalerQueryResult queryTeleSalerInfo( String teleSalerCode )
|
||||||
{
|
{
|
||||||
TeleSalerQueryResult result = new TeleSalerQueryResult();
|
TeleSalerQueryResult result = new TeleSalerQueryResult();
|
||||||
|
TeleSalerInfo saler = null;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
saler = TeleSalerInfo.queryTeleSalerInfo( teleSalerCode );
|
||||||
|
|
||||||
|
result.setTeleSalerCode( saler.getCode() );
|
||||||
|
result.setTeleSalerName( saler.getName() );
|
||||||
|
result.setTeamCode( saler.getTeamCode() );
|
||||||
|
result.setTeamName( saler.getTeamName() );
|
||||||
|
result.setDepartmentCode( saler.getDepartmentCode() );
|
||||||
|
result.setDepartmentName( saler.getDepartmentName() );
|
||||||
|
|
||||||
|
result.setSuccess( true );
|
||||||
|
}
|
||||||
|
catch ( SQLException error )
|
||||||
|
{
|
||||||
|
result.setSuccess( false );
|
||||||
|
result.setMessage( error.getMessage() );
|
||||||
|
}
|
||||||
|
catch ( ClassNotFoundException error )
|
||||||
|
{
|
||||||
|
result.setSuccess( false );
|
||||||
|
result.setMessage( error.getMessage() );
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user