main
黄海 1 year ago
parent aadca918da
commit 2987add2d6

@ -1879,17 +1879,27 @@ public class CollectController extends Controller {
@Before({GET.class, RepeatIntercetpor.class})
@IsNumericInterface({"is_match", "page", "limit"})
public void getAllBureau(int is_match, int page, int limit) {
int cnt = cm.OneKeyMatch();
Page<Record> dataPage = cm.getAllBureau(is_match, page, limit);
Map<String, Object> result = new HashMap<>();
result.put("code", 0);
result.put("msg", "");
result.put("cnt", cnt);//本次成功同步的单位个数
result.put("count", dataPage.getTotalRow());
result.put("data", dataPage.getList());
renderJson(result);
}
/**
*
*/
@Before({POST.class, RepeatIntercetpor.class})
public void OneKeyMatch() {
int cnt = cm.OneKeyMatch();
Map<String, Object> result = new HashMap<>();
result.put("msg", "刷新成功!");
result.put("count", cnt);
renderJson(result);
}
/**
* ID
*

Loading…
Cancel
Save