You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
920 B
34 lines
920 B
|
2 months ago
|
package com.ynxbd.common.action.xk;
|
||
|
|
|
||
|
|
import com.ynxbd.common.action.base.BaseAction;
|
||
|
|
import com.ynxbd.common.dao.his.HisXKDao;
|
||
|
|
import com.ynxbd.common.result.Result;
|
||
|
|
import com.ynxbd.common.result.ResultEnum;
|
||
|
|
import lombok.extern.slf4j.Slf4j;
|
||
|
|
import org.apache.struts2.convention.annotation.Action;
|
||
|
|
import org.apache.struts2.convention.annotation.Namespace;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
|
||
|
|
@Slf4j
|
||
|
|
@Namespace("/xk")
|
||
|
|
public class XKAction extends BaseAction {
|
||
|
|
|
||
|
|
|
||
|
|
@Action("queryDict")
|
||
|
|
public Result queryDict(String callNo, String type) {
|
||
|
|
if (!"xbd2026".equals(callNo)) {
|
||
|
|
return Result.error(ResultEnum.PARAM_IS_INVALID);
|
||
|
|
}
|
||
|
|
log.info("[开方]字典查询 type={}", type);
|
||
|
|
if (type == null) {
|
||
|
|
return Result.error(ResultEnum.PARAM_IS_DEFECT);
|
||
|
|
}
|
||
|
|
|
||
|
|
List<?> dataList = new HisXKDao().queryHisRxDict(type);
|
||
|
|
return Result.success(dataList);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|