记得上下班打卡 | git大法好,push需谨慎

Commit 190ce14a authored by jiangxiulong's avatar jiangxiulong

Merge remote-tracking branch 'origin/dev' into dev

parents d290a2d6 d4cd86c7
......@@ -69,13 +69,8 @@ liquidnet:
addresses: 127.0.0.1:8090
client:
admin:
phpPayUrl: https://devdragon.zhengzai.tv
kylinApiUrl: https://devkylin.zhengzai.tv
phpServiceUrl: https://devservice.zhengzai.tv
phpoMediaApiUrl: https://devmediaapi.zhengzai.tv
phpPayUrl: http://devdragon.zhengzai.tv
phpMallUrl: https://devmall.zhengzai.tv
phpMerchantApiUrl: https://devmerchantapi.zhengzai.tv
phpPassportUrl: https://devpassport.zhengzai.tv
platformUrl: https://devplatform.zhengzai.tv
shunfeng:
url: "https://butler-dev-ms.sf-express.com"
......
......@@ -69,14 +69,9 @@ liquidnet:
addresses: 172.17.121.166:8090
client:
admin:
phpPayUrl: https://testdragon.zhengzai.tv/
kylinApiUrl: https://testkylin.zhengzai.tv
phpServiceUrl: https://testservice.zhengzai.tv
phpoMediaApiUrl: https://testmediaapi.zhengzai.tv
phpMallUrl: https://testmall.zhengzai.tv
phpMerchantApiUrl: https://testmerchantapi.zhengzai.tv
phpPassportUrl: https://testpassport.zhengzai.tv
platformUrl: https://testplatform.zhengzai.tv
phpPayUrl: http://testdragon.zhengzai.tv
phpMallUrl: https://testmall.zhengzai.tv
platformUrl: https://testplatform.zhengzai.tv
shunfeng:
url: "https://butler-dev-ms.sf-express.com"
sk: 21e9a70f677a2bf29dfa2b3bead4f018
......
......@@ -844,7 +844,7 @@ public class DataImpl {
Class.forName(driverClassName); //执行驱动
con = DriverManager.getConnection(url, username, password); //获取连接
String sql = "select m.id,name,mobile,father_id,m.created_at,m.updated_at from merchants as m left join merchant_relation as mr on m.id = mr.child_id where is_own = 'no' and mobile not like '%&%'";
String sql = "select m.id,name,mobile,father_id,m.created_at,m.updated_at from merchants as m left join merchant_relation as mr on m.id = mr.child_id where is_own = 'no' and mobile not like '%&%' group by mobile";
pstmt = con.prepareStatement(sql);
ResultSet resultData = pstmt.executeQuery();
//演出数据
......@@ -856,7 +856,9 @@ public class DataImpl {
checkUser.setName(resultData.getString("name"));
checkUser.setPwd(StringUtil.right(checkUser.getMobile(), 8));
checkUser.setStatus(1);
checkUser.setCreatedAt(DateUtil.Formatter.yyyyMMddHHmmssS.parse(resultData.getTimestamp("created_at").toString()));
if (null != resultData.getTimestamp("created_at")) {
checkUser.setCreatedAt(DateUtil.Formatter.yyyyMMddHHmmssS.parse(resultData.getTimestamp("created_at").toString()));
}
if (null != resultData.getTimestamp("updated_at")) {
checkUser.setUpdatedAt(DateUtil.Formatter.yyyyMMddHHmmssS.parse(resultData.getTimestamp("updated_at").toString()));
}
......@@ -882,13 +884,14 @@ public class DataImpl {
ResultSet relationData = pstmt.executeQuery();
while (relationData.next()) {
KylinCheckUserPerformances checkUserPerformances = new KylinCheckUserPerformances();
checkUserPerformances.setCheckUserId(resultData.getInt("merchant_id") + "");
checkUserPerformances.setPerformanceId(resultData.getInt("performance_id") + "");
checkUserPerformances.setCheckUserPerformanceId(resultData.getInt("id") + "");
checkUserPerformances.setCheckUserId(relationData.getInt("merchant_id") + "");
checkUserPerformances.setPerformanceId(relationData.getInt("performance_id") + "");
checkUserPerformances.setCheckUserPerformanceId(relationData.getInt("id") + "");
checkUserPerformances.setStatus(1);
checkUserPerformances.setCreatedAt(DateUtil.Formatter.yyyyMMddHHmmssS.parse(resultData.getTimestamp("created_at").toString()));
if (null != resultData.getTimestamp("updated_at")) {
checkUserPerformances.setUpdatedAt(DateUtil.Formatter.yyyyMMddHHmmssS.parse(resultData.getTimestamp("updated_at").toString()));
checkUserPerformances.setCreatedAt(DateUtil.Formatter.yyyyMMddHHmmssS.parse(relationData.getTimestamp("created_at").toString()));
checkUserPerformances.setCanDownTime(checkUserPerformances.getCreatedAt());
if (null != relationData.getTimestamp("updated_at")) {
checkUserPerformances.setUpdatedAt(DateUtil.Formatter.yyyyMMddHHmmssS.parse(relationData.getTimestamp("updated_at").toString()));
}
checkUserPerformancesArrayList.add(checkUserPerformances);
......@@ -900,7 +903,7 @@ public class DataImpl {
checkUserPerformanceVo.setRelationParams(voList);
dmCheckUserPerformanceService.saveBatch(checkUserPerformancesArrayList);
mongoTemplate.insert(checkUserPerformanceVo, KylinCheckUserPerformances.class.getSimpleName());
mongoTemplate.insert(checkUserPerformanceVo, KylinCheckUserPerformanceVo.class.getSimpleName());
}
dmCheckUserService.saveBatch(checkUserList);
mongoTemplate.insert(checkUserVoArrayList, KylinCheckUserVo.class.getSimpleName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment