package com.product.org.admin.service;
|
|
import java.util.Date;
|
|
import org.apache.log4j.Logger;
|
import org.springframework.stereotype.Service;
|
|
import com.product.core.spring.context.SpringMVCContextHolder;
|
|
@Service("testChange")
|
public class TestChangeService {
|
|
|
|
/**
|
* 测试方法
|
* @param staff_uuid
|
* @param employment_date
|
*/
|
public void testServerMethod(String staff_uuid,Date employment_date) {
|
for (int i = 1; i <10; i++) {
|
for (int j = 1; j <= i; j++) {
|
SpringMVCContextHolder.getSystemLogger().error(j + "*" + i + "=" + i * j + " ");
|
}
|
Logger logger=Logger.getLogger(TestChangeService.class);
|
logger.info("");
|
SpringMVCContextHolder.getSystemLogger().error("");
|
SpringMVCContextHolder.getSystemLogger().error("staff_uuid:"+staff_uuid+" employment_date:"+employment_date);
|
}
|
}
|
|
/**
|
* 测试方法
|
* @param staff_uuid
|
* @param employment_date
|
*/
|
public void testServerMethod(String staff_uuid) {
|
for (int i = 1; i <10; i++) {
|
for (int j = 1; j <= i; j++) {
|
SpringMVCContextHolder.getSystemLogger().error(j + "*" + i + "=" + i * j + " ");
|
}
|
Logger logger=Logger.getLogger(TestChangeService.class);
|
logger.info("logger:");
|
logger.info("logger:"+staff_uuid);
|
SpringMVCContextHolder.getSystemLogger().error("systemlogger:");
|
SpringMVCContextHolder.getSystemLogger().error("staff_uuid:"+staff_uuid);
|
}
|
}
|
}
|