1.接口打印是否推送成功到单据
This commit is contained in:
parent
28722b2ab8
commit
507838ad23
|
|
@ -2,5 +2,6 @@ package tqq9.lc123.cloud.app.eip.iscb;
|
|||
|
||||
public interface LCLogService {
|
||||
public void savelog(String interfaceName,String interfaceUrl,Boolean isPost,Boolean isSucess,String request,String response);
|
||||
public void isSuccess(String entityType, String billno, String PrimaryName, String label, Boolean isSuccess);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import kd.bos.orm.query.QFilter;
|
|||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||
import kd.bos.servicehelper.coderule.CodeRuleServiceHelper;
|
||||
import kd.bos.servicehelper.operation.OperationServiceHelper;
|
||||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||
import kd.bos.servicehelper.user.UserServiceHelper;
|
||||
import tqq9.lc123.cloud.app.eip.iscb.LCLogService;
|
||||
|
||||
|
|
@ -53,6 +54,7 @@ public class LCLogServiceImpl implements LCLogService {
|
|||
}
|
||||
apiLog.set("createtime", new Date());
|
||||
apiLog.set("status", "A");
|
||||
apiLog.set("enable", "1");
|
||||
CodeRuleInfo codeRule = CodeRuleServiceHelper.getCodeRule(apiLog.getDataEntityType().getName(), apiLog, null);
|
||||
// 获取根据编码规则得到的编码字符串
|
||||
String number = CodeRuleServiceHelper.getNumber(codeRule, apiLog);
|
||||
|
|
@ -75,6 +77,22 @@ public class LCLogServiceImpl implements LCLogService {
|
|||
}
|
||||
logger.info("日志微服务-saveLog-f-end");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void isSuccess(String entityType, String PrimaryKey,String PrimaryName, String label, Boolean isSuccess) {
|
||||
logger.info("日志微服务-isSuccess-start");
|
||||
logger.info("日志微服务-isSuccess-entityType-" + entityType);
|
||||
logger.info("日志微服务-isSuccess-PrimaryKey-" + PrimaryKey);
|
||||
logger.info("日志微服务-isSuccess-PrimaryName-" + PrimaryName);
|
||||
logger.info("日志微服务-isSuccess-label-" + label);
|
||||
logger.info("日志微服务-isSuccess-isSuccess-" + isSuccess);
|
||||
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(entityType, new QFilter[]{new QFilter(PrimaryName, QCP.equals, PrimaryKey)});
|
||||
dynamicObject.set(label,isSuccess);
|
||||
SaveServiceHelper.save(new DynamicObject[]{dynamicObject});
|
||||
logger.info("日志微服务-isSuccess-end");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue