|
|
@@ -15,6 +15,7 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
import com.jeeplus.common.config.Global;
|
|
|
+import com.jeeplus.common.utils.StringUtils;
|
|
|
import com.jeeplus.modules.sys.entity.HpMember;
|
|
|
import com.jeeplus.modules.sys.service.HpMemberService;
|
|
|
import com.jeeplus.modules.sys.utils.businessAccountUtils;
|
|
|
@@ -92,6 +93,10 @@ public class WsPunchClockService extends CrudService<WsPunchClockMapper, WsPunch
|
|
|
if (TokenUtil.validateToken(userId, userToken)) {
|
|
|
String longitude = requestMap.get("longitude"); //经度
|
|
|
String latitude = requestMap.get("latitude"); //纬度
|
|
|
+ if(StringUtils.isBlank(longitude) || StringUtils.isBlank(latitude)){
|
|
|
+ returnMap.put("success", "2105");
|
|
|
+ return returnMap;
|
|
|
+ }
|
|
|
int clockType=1; //1:上班打卡 2:下班打卡 3:超出范围 4:已完成 5:审核中
|
|
|
int sumDuration=0; //定义本周总打卡时长
|
|
|
Double sumMoney=0.00; //本周预支
|
|
|
@@ -257,6 +262,10 @@ public class WsPunchClockService extends CrudService<WsPunchClockMapper, WsPunch
|
|
|
if (TokenUtil.validateToken(userId, userToken)) {
|
|
|
String longitude = requestMap.get("longitude"); //经度
|
|
|
String latitude = requestMap.get("latitude"); //纬度
|
|
|
+ if(StringUtils.isBlank(longitude) || StringUtils.isBlank(latitude)){
|
|
|
+ returnMap.put("success", "2105");
|
|
|
+ return returnMap;
|
|
|
+ }
|
|
|
String clockType=requestMap.get("clockType"); //打卡状态 1:上班打卡 2:下班打卡
|
|
|
//获取打卡设置信息
|
|
|
List<WsSetting> wsSettingList=wsSettingService.findList(new WsSetting());
|