|
|
|
@ -192,8 +192,33 @@ public class AttendanceanalysisAction {
|
|
|
|
|
public String dumpDefaultCalendar(@Context HttpServletRequest request, @Context HttpServletResponse response){
|
|
|
|
|
try {
|
|
|
|
|
String sql = "update uf_jcl_kq_rlmc set mrrl = '0'";
|
|
|
|
|
List<Map<String,Object>> resultList = Lists.newArrayList();
|
|
|
|
|
Map<String,Object> map = Maps.newHashMap();
|
|
|
|
|
if(DbTools.update(sql))
|
|
|
|
|
return ApiReturnTools.success(Lists.newArrayList());
|
|
|
|
|
map.put("update","1");
|
|
|
|
|
else
|
|
|
|
|
map.put("update","0");
|
|
|
|
|
resultList.add(map);
|
|
|
|
|
return ApiReturnTools.success(resultList);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
log.error("execute fail,catch error: [{}]",e);
|
|
|
|
|
return ApiReturnTools.error("500","saveApplicableOrganization error");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获得已经设置为默认日历的日历名称信息
|
|
|
|
|
*/
|
|
|
|
|
@POST
|
|
|
|
|
@Path("/getCalendarRef")
|
|
|
|
|
@Produces({"text/plain"})
|
|
|
|
|
public String getCalendarRef(@Context HttpServletRequest request, @Context HttpServletResponse response){
|
|
|
|
|
try {
|
|
|
|
|
Map<String,Object> paramMap = ParamUtil.request2Map(request);
|
|
|
|
|
String calendarId = Util.null2String(paramMap.get("id"));
|
|
|
|
|
String sql = "select count(id) refcount from uf_jcl_kq_glpb where qyrl = "+calendarId;
|
|
|
|
|
List<Map<String,Object>> calendarList = DbTools.getSqlToList(sql);
|
|
|
|
|
return ApiReturnTools.success(calendarList);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
log.error("execute fail,catch error: [{}]",e);
|
|
|
|
|
return ApiReturnTools.error("500","saveApplicableOrganization error");
|
|
|
|
|