|
|
|
@ -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一致
|
|
|
|
|
*
|
|
|
|
|