shichongfu
2023-04-25 ce0b49552668d3331055e2b1a1447a743dc54939
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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);
        }
    }
}