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

View File

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

View File

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