Browse Source

增加debug日志

scr 7 năm trước cách đây
mục cha
commit
ef83dc2b89

+ 3 - 18
src/main/java/com/uas/credit/controller/ErpQueryController.java

@@ -42,16 +42,8 @@ public class ErpQueryController {
      * ERP对企业进行查询
      */
     @RequestMapping(value = "/queryEn",method = RequestMethod.POST)
-    public ModelMap queryEn(@RequestBody String json) {
+    public ModelMap queryEn(@RequestBody EnterpriseQuery erpQuery) {
         ModelMap modelMap = new ModelMap();
-        EnterpriseQuery erpQuery = new EnterpriseQuery();
-        try {
-            String query = URLDecoder.decode(json, "utf-8");
-            erpQuery = JSON.parseObject(query, EnterpriseQuery.class);
-        } catch (UnsupportedEncodingException e) {
-
-            e.printStackTrace();
-        }
         if (erpQuery != null) {
                 //查询企业债务信息
                 String Endept = enterpriseDeptService.queryAndSave(erpQuery);
@@ -72,16 +64,9 @@ public class ErpQueryController {
     /**
      * erp对个人进行查询
      */
-    @RequestMapping(value = "/queryPe",method = RequestMethod.POST)
-    public ModelMap queryPerson(@RequestBody String json) {
+    @RequestMapping(value = "/queryPe",method = RequestMethod.POST, produces="application/json;charset=UTF-8")
+    public ModelMap queryPerson(@RequestBody PersonQuery erpQuery) {
         ModelMap modelMap = new ModelMap();
-        PersonQuery erpQuery = new PersonQuery();
-        try {
-            String query = URLDecoder.decode(json, "utf-8");
-            erpQuery = JSON.parseObject(query, PersonQuery.class);
-        } catch (UnsupportedEncodingException e) {
-            e.printStackTrace();
-        }
         if(erpQuery != null){
             //查询个人身份信息
             String Pnidentity = personalService.queryAndSave(erpQuery);

+ 5 - 0
src/main/java/com/uas/credit/model/corpriskinfo/EnRiskInfoReport.java

@@ -12,6 +12,11 @@ import java.util.Date;
 @Table(name = "risk$report")
 public class EnRiskInfoReport implements Serializable {
 
+    /**
+     * default serialVersionUID
+     */
+    private static final long serialVersionUID = 1L;
+
     @Id
     @GeneratedValue(strategy = GenerationType.IDENTITY)
     @Column(name = "id")

+ 0 - 3
src/main/java/com/uas/credit/service/impl/EnRiskInfoServiceImpl.java

@@ -33,9 +33,6 @@ public class EnRiskInfoServiceImpl implements EnRiskInfoService {
     //收费子报告类型
     private static String SubreportIDs = "22527";
 
-    @Autowired
-    private EnRiskInfoDao corpRiskInfoDao;
-
     @Autowired
     private EnRiskInfoDao enRiskInfoDao;
 

+ 2 - 1
src/main/resources/config/application-dev.properties

@@ -23,4 +23,5 @@ spring.jpa.hibernate.ddl-auto=update
 spring.jpa.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect  
 spring.jackson.serialization.indent_output=false  
 
-pengyuan=http://test.pycredit.com:6001/rest/query/report/unzip       
+pengyuan=http://test.pycredit.com:6001/rest/query/report/unzip       
+logging.level.com.uas=debug

+ 2 - 1
src/main/resources/config/application-prod.properties

@@ -21,4 +21,5 @@ datasource.connectionProperties=druid.stat.mergeSql=false;druid.stat.slowSqlMill
 spring.jpa.hibernate.show-sql= true  
 spring.jpa.hibernate.ddl-auto=update
 spring.jpa.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect  
-spring.jackson.serialization.indent_output=false  
+spring.jackson.serialization.indent_output=false  
+logging.level.com.uas=debug