|
|
|
@ -1,6 +1,9 @@ |
|
|
|
package com.dreamchaser.depository_manage; |
|
|
|
|
|
|
|
|
|
|
|
import com.dreamchaser.depository_manage.pojo.callBackXml.approvalCallBackXml.ApprovalInfo_Details; |
|
|
|
import com.dreamchaser.depository_manage.pojo.callBackXml.approvalCallBackXml.ApprovalInfo_Details_Approver; |
|
|
|
import com.dreamchaser.depository_manage.service.DepositoryRecordService; |
|
|
|
import com.dreamchaser.depository_manage.utils.ObjectFormatUtil; |
|
|
|
import com.google.zxing.BarcodeFormat; |
|
|
|
import com.google.zxing.EncodeHintType; |
|
|
|
@ -12,7 +15,9 @@ import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel; |
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
import org.junit.Test; |
|
|
|
import org.junit.runner.RunWith; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.boot.test.context.SpringBootTest; |
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
import org.springframework.test.context.junit4.SpringRunner; |
|
|
|
|
|
|
|
import javax.imageio.ImageIO; |
|
|
|
@ -30,9 +35,24 @@ import java.util.Map; |
|
|
|
public class TestOther { |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
DepositoryRecordService depositoryRecordService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
RedisTemplate<String, String> redisTemplate; |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
public void Test() throws IOException { |
|
|
|
String mainId = (String) redisTemplate.opsForHash().get("202302220008", "mainId"); |
|
|
|
ApprovalInfo_Details finalApprovalInfo_details = new ApprovalInfo_Details(); |
|
|
|
ApprovalInfo_Details_Approver approver = new ApprovalInfo_Details_Approver(); |
|
|
|
approver.setUserId("PangFuZhen"); |
|
|
|
finalApprovalInfo_details.setApprover(approver); |
|
|
|
String spNo = "202302220008"; |
|
|
|
String crypt = "4dc6ed4606a02bb4df643536b80cc48b"; |
|
|
|
String spStatus = "2"; |
|
|
|
depositoryRecordService.reviewByQyWxApprovalIn(mainId, finalApprovalInfo_details,crypt,spStatus,spNo); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|