zjh
2025-04-08 983d95bdcbb273b4a78efd0058a2a35141be1b51
ltkj-admin/src/main/java/com/ltkj/web/controller/api/DefaultController.java
@@ -17,6 +17,7 @@
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
 * @Company: 西安路泰科技有限公司
@@ -69,7 +70,22 @@
        JSONObject entries = JSONUtil.parseObj(json);
        String card = entries.getStr("card");
//        TjCustomer customer = tjCustomerMapper.getCusInfo(card);
        List<TjCustomer> customer = tjCustomerMapper.getCusInfoList(card);
        List<Map<String ,Object>> customer = tjCustomerMapper.getCusInfoList(card);
        return AjaxResult.success(customer);
    }
    /**
     * 对于小程序提供
     * 根据身份证号查询返回体检记录:包含姓名、身份证号、性别、出生日期、年龄、体检号、联系电话,体检日期,报告状态
     * @param json
     * @return
     */
    @PostMapping("/getCusInfo")
    public AjaxResult getInfoCus(@RequestBody String json){
        JSONObject entries = JSONUtil.parseObj(json);
        String card = entries.getStr("card");
        String name = entries.getStr("name");
        List<Map<String ,Object>> customer = tjCustomerMapper.getCusInfoListByCardAndName(card,name);
        return AjaxResult.success(customer);
    }