Skip to content
Snippets Groups Projects
Commit 97207e6c authored by wyl's avatar wyl
Browse files

hospital

parent 6b82d498
Branches
No related tags found
1 merge request!17hospital function
package com.cardiff.client_project.controller.hospital;
import com.cardiff.client_project.service.HospitalService;
import com.cardiff.client_project.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
//TODO
@RequestMapping("/hospital")
public class HospitalController {
@Autowired
private HospitalService hospitalService;
/**
* select all
* @return
*/
public Result SelectAll() {
// Result result=hospitalService.selectAll();
return null;
//return result;
}
}
......@@ -65,7 +65,7 @@ public class AdminMapper {
* @return
*/
public int[] deleteById(List<Integer> ids) {
//TODO
String sql = "DELETE FROM common_admin WHERE id=?";
List<Object[]> idList = new ArrayList<>();
// Build parameter list
......@@ -110,6 +110,12 @@ public class AdminMapper {
return update;
}
/**
* fuzzy query
* @param selectVo
* @return
*/
public List<SelectDto> selectByItem(SelectVo selectVo) {
// Get query type
......
......@@ -13,6 +13,5 @@ public class SignUserVo {
private String address;
private String type;
private String role;
private String maxAmount;
private int status;
}
package com.cardiff.client_project.service;
public interface HospitalService {
}
package com.cardiff.client_project.service.imp;
import com.cardiff.client_project.service.HospitalService;
import org.springframework.stereotype.Service;
@Service
public class HospitalServiceImp implements HospitalService {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment