|
|
|
@ -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));
|
|
|
|
|