医保上传相关修改

scpwxyy
yewj 7 months ago
parent cce12bb0ec
commit e1c30a18ed

@ -1,6 +1,9 @@
package com.glxp.mipsdl.controller;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.glxp.mipsdl.dao.basic.BasicUdirelDao;
@ -21,6 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Slf4j
@ -66,6 +70,12 @@ public class YbApiController {
@PostMapping("/udiwms/erp/yb/sign")
public BaseResponse signNo(@RequestBody BaseYbRequest baseYbRequest) {
SignRequest signRequest = baseYbRequest.getSignIn();
signRequest.setCurrenttime(DateUtil.format(new Date(), DatePattern.PURE_DATETIME_PATTERN));
String password = signRequest.getCurrenttime() + signRequest.getPassword();
// 该字符串通过32位的MD5算法加密字母大写生成密文86B31EDFE60F7BA28765DF860D56B7B2
password = SecureUtil.md5(password).toUpperCase();
signRequest.setPassword(password);
String jsonStr = JSONUtil.toJsonStr(baseYbRequest);
log.error("【1201】医药机构信息获取请求参数" + jsonStr);
return ResultVOUtils.success(ybClient.ybPost("9001", jsonStr));

@ -8,5 +8,7 @@ public class SignRequest {
private String ip;
private String mac;
private String opter_no;
private String userid;
private String password;
private String currenttime;
}

Loading…
Cancel
Save