登录科技考勤action修改

dev^2
wangxuanran 2023-07-31 16:07:08 +08:00
parent 6bbb49f0a1
commit 341fa9e043
3 changed files with 59 additions and 3 deletions

View File

@ -14,7 +14,7 @@ import java.util.function.Consumer;
/** /**
* <h1></h1> * <h1></h1>
* *
* @author xuanran.wang * @author xuanran.wang
* @date 2023/4/6 19:34 * @date 2023/4/6 19:34
@ -24,25 +24,79 @@ import java.util.function.Consumer;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
public class CusRestTemplateResponse { public class CusRestTemplateResponse {
/**
* <h2></h2>
**/
private ResponeVo vo; private ResponeVo vo;
/**
* <h2></h2>
**/
private Object requestParam; private Object requestParam;
/**
* <h2></h2>
**/
private String successField; private String successField;
/**
* <h2></h2>
**/
private Object successValue; private Object successValue;
/**
* <h2></h2>
**/
private String errorMsg; private String errorMsg;
/**
* <h2>data</h2>
**/
private String dataKey; private String dataKey;
/**
* <h2></h2>
**/
private String msg; private String msg;
/**
* <h2>map</h2>
**/
private Map<String, Object> response; private Map<String, Object> response;
/**
* <h2> </h2>
**/
private CusDataDecipher cusDataDecipher; private CusDataDecipher cusDataDecipher;
/**
* <h2>url</h2>
**/
private String url; private String url;
/**
* <h2></h2>
**/
private Exception exception; private Exception exception;
/**
* <h2> </h2>
**/
@Builder.Default @Builder.Default
private boolean checkResponse = true; private boolean checkResponse = true;
/**
* <h2></h2>
**/
private BiConsumer<Exception, CusApiLogBaseDto> errorCallBack; private BiConsumer<Exception, CusApiLogBaseDto> errorCallBack;
/**
* <h2> </h2>
**/
@Builder.Default @Builder.Default
private boolean writeLog = false; private boolean writeLog = false;
/**
* <h2></h2>
**/
private CusApiLogBaseDto logDto; private CusApiLogBaseDto logDto;
/**
* <h2>id</h2>
**/
private String logModelId; private String logModelId;
/**
* <h2></h2>
**/
private Consumer<CusApiLogBaseDto> successCallBack; private Consumer<CusApiLogBaseDto> successCallBack;
/**
* <h2> </h2>
**/
@Builder.Default @Builder.Default
private boolean asyncWriteLog = true; private boolean asyncWriteLog = true;

View File

@ -163,9 +163,9 @@ public class KqFreezeVacationAction extends BaseBean implements Action {
RecordSet tempRs = new RecordSet(); RecordSet tempRs = new RecordSet();
String sql = "select duration from " + billTable + " where requestid = ?"; String sql = "select duration from " + billTable + " where requestid = ?";
if(CollectionUtils.isNotEmpty(splitBeans)){ if(CollectionUtils.isNotEmpty(splitBeans)){
if (tempRs.execute(sql, requestId) && tempRs.next()) { if (tempRs.executeQuery(sql, requestId) && tempRs.next()) {
for (SplitBean splitBean : splitBeans) { for (SplitBean splitBean : splitBeans) {
String workflowDuration = Util.null2String(tempRs.getString(1)); String workflowDuration = Util.null2String(tempRs.getString("duration"));
if(StringUtils.isBlank(workflowDuration)){ if(StringUtils.isBlank(workflowDuration)){
continue; continue;
} }

View File

@ -43,6 +43,8 @@ public class CusApiLogUtilTest extends BaseTest {
.successField("code") .successField("code")
.successValue(0) .successValue(0)
.errorMsg("msg") .errorMsg("msg")
.writeLog(true)
.asyncWriteLog(false)
.logDto(demoDto) .logDto(demoDto)
.build(); .build();