Compare commits

..

12 Commits
main ... dev

Author SHA1 Message Date
姜玉琦 95525f5d54 提交 2024-11-10 11:44:06 +08:00
姜玉琦 e849cfee4a 1 2024-11-09 17:49:21 +08:00
姜玉琦 25171b9b6f 提交代码啊 2024-11-09 17:48:42 +08:00
姜玉琦 4bb09bec02 Merge branch 'dev' of http://62.234.3.186:3000/mkl/mkl_cas_ja into dev 2024-11-05 23:39:36 +08:00
姜玉琦 0f10e984e8 提交代码 2024-11-05 23:39:30 +08:00
lj7788 09fe898087 update code 2024-11-05 23:37:46 +08:00
姜玉琦 ff10ce3e8c 提交代码 2024-11-05 22:36:14 +08:00
lijun 503101b20b update code 2024-11-02 23:30:53 +08:00
lijun 7ed645b5d4 update code 2024-11-02 22:00:18 +08:00
姜玉琦 1e59a862ef 提价代码 2024-11-02 10:41:17 +08:00
lijun 54734a4d70 update code 2024-10-31 22:23:09 +08:00
lijun adffd21447 update code 2024-10-31 22:21:24 +08:00
89 changed files with 1184 additions and 10905 deletions

View File

@ -54,8 +54,11 @@ public class SecurityCheckDetail extends BaseEntity
@Excel(name = "整改时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date rectificationTime;
private String responsibleLoginName;
/** 删除状态0未删除1已删除 */
private Integer delFlag;
@ -69,6 +72,8 @@ public class SecurityCheckDetail extends BaseEntity
this.id = id;
}
public String getResponsibleLoginName() {
return responsibleLoginName;
}

View File

@ -51,6 +51,8 @@ public class SmcTypeInfo extends TreeEntity
@Excel(name = "数据更新人的标识")
private String updateuserId;
public void setTypeId(Long typeId)
{
this.typeId = typeId;

View File

@ -92,6 +92,9 @@ public class SysApplication extends BaseEntity {
private Integer delFlag;
public void setId(Long id) {
this.id = id;
}

View File

@ -79,6 +79,7 @@ public class SysServiceReg extends BaseEntity
/** 数据更新用户角色属性名称 */
private String roleParam;
private String postParam;
public String getAppName() {

View File

@ -1,14 +1,13 @@
package com.yanzhu.xd.system.controller;
package com.ruoyi.iot.api;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.DateUtils;
import com.yanzhu.xd.system.domain.DevTowerProjectConfig;
import com.yanzhu.xd.system.domain.TowerReqVo;
import com.yanzhu.xd.system.emuns.TowerTypeEnums;
import com.yanzhu.xd.system.service.IDevTowerProjectConfigService;
import com.ruoyi.iot.domain.TowerReqVo;
import com.ruoyi.iot.enums.TowerTypeEnums;
import com.ruoyi.iot.service.IIotDeviceInfoService;
import com.ruoyi.utils.HttpUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@ -30,22 +29,19 @@ import java.util.Objects;
* @date 2024-01-13
*/
@RestController
@RequestMapping("/mklApi/towerCrane")
@RequestMapping("/api/towerCrane")
public class TowerCraneApiController {
private static final Logger log = LoggerFactory.getLogger(TowerCraneApiController.class);
@Autowired
private IDevTowerProjectConfigService configService;
private final String HOST = "https://aqzg.makalu.cc";
private final String DEVSOURCE = "YF";
private Map<String, Object> cacheMap;
private Map<String, Object> cacheMap = new HashMap<>();
@Autowired
private IIotDeviceInfoService iIotDeviceInfoService;
{
cacheMap = new HashMap<>();
}
/**
* ++
* [6010IP]
@ -55,13 +51,6 @@ public class TowerCraneApiController {
*/
@PostMapping("/v1/push")
public AjaxResult pushData(@Validated @RequestBody TowerReqVo req) {
if(Objects.isNull(cacheMap.get("tower_cfg_"+req.getContent().getDeviceKey()))){
DevTowerProjectConfig config = configService.selectDevTowerProjectConfigBySn(req.getContent().getDeviceKey());
if(config==null){
throw new ServiceException("设备序列号错误,请联系管理员配置序列号...");
}
cacheMap.put("tower_cfg_"+req.getContent().getDeviceKey(),config);
}
if(req.getType() == TowerTypeEnums.BASE.getCode()){
this.pushConfigData(req);
}else if(req.getType() == TowerTypeEnums.RUN.getCode()){
@ -87,15 +76,15 @@ public class TowerCraneApiController {
Map<String, Object> dataContent = req.getContent().getDataContent();
//将数据同步至马卡鲁安管平台
Map<String, Object> dataMap = new HashMap<>();
JSONObject dataMap = new JSONObject();
dataMap.put("data_source",DEVSOURCE);
dataMap.put("device_sn",sn);
double rate = Convert.toInt(cacheMap.get("rate_"+sn),2);
dataMap.put("base",rate);
dataMap.put("coordX",dataContent.get("coordinateX"));
dataMap.put("coordY",dataContent.get("coordinateY"));
dataMap.put("foreArmLength",dataContent.get("frontBrachium"));
dataMap.put("postArmLength",dataContent.get("afterBrachium"));
dataMap.put("foreArmLength",Convert.toStr(dataContent.get("frontBrachium"),"60"));
dataMap.put("postArmLength",Convert.toStr(dataContent.get("afterBrachium"),"12"));
dataMap.put("hatHeight",dataContent.get("towerCapHeight"));
double remotePullRod = Convert.toDouble(cacheMap.get("remotePullRod_"+sn),0.00);
double nearPullRod = Convert.toDouble(cacheMap.get("nearPullRod_"+sn),0.00);
@ -106,7 +95,8 @@ public class TowerCraneApiController {
dataMap.put("downHeight",dataContent.get("towerSectionHeight"));
dataMap.put("updateTime", DateUtils.getTime());
HttpUtil.post(HOST+"/api/device/baseInfo",dataMap,-1);
String res = HttpUtils.commHttpPost(HOST+"/api/device/baseInfo",dataMap);
log.info("/api/device/baseInfo...{}...{}",res,dataMap);
}
/**
@ -118,7 +108,7 @@ public class TowerCraneApiController {
Map<String, Object> dataContent = req.getContent().getDataContent();
// 将数据同步至马卡鲁安管平台
Map<String, Object> dataMap = new HashMap<>();
JSONObject dataMap = new JSONObject();
dataMap.put("data_source",DEVSOURCE);
dataMap.put("deviceSn",sn);
dataMap.put("thisTime",System.currentTimeMillis());
@ -138,9 +128,28 @@ public class TowerCraneApiController {
if(dataContent.get("warnings")!=null){
this.pushWarnData(req);
}
HttpUtil.post(HOST+"/api/device/runInfo",dataMap,-1);
HttpUtils.commHttpPost(HOST+"/api/device/runInfo",dataMap);
}
public static void main(String[] args) {
JSONObject dataMap = new JSONObject();
dataMap.put("data_source","YF");
dataMap.put("deviceSn","E03C1CB382E61812");
dataMap.put("thisTime",System.currentTimeMillis());
dataMap.put("weightData","0.32");
dataMap.put("tiltData","1.6");
dataMap.put("windSpeedData","0.0");
String height = "48.1";
dataMap.put("heightData",height);
dataMap.put("ampData","16.74");
dataMap.put("torqueData","2");
dataMap.put("angleData","127.1");
String dingShengData = Convert.toStr("50",height);
dataMap.put("dingShengData",dingShengData);
dataMap.put("walkData","16.74");
String str = HttpUtils.commHttpPost("https://aqzg.makalu.cc/api/device/runInfo", dataMap);
System.out.println(str);
}
/**
*
* @param req
@ -150,7 +159,7 @@ public class TowerCraneApiController {
Map<String, Object> dataContent = req.getContent().getDataContent();
// 将数据同步至马卡鲁安管平台
Map<String, Object> dataMap = new HashMap<>();
JSONObject dataMap = new JSONObject();
dataMap.put("data_source",DEVSOURCE);
dataMap.put("deviceSn",sn);
dataMap.put("dataId",System.currentTimeMillis());
@ -166,7 +175,8 @@ public class TowerCraneApiController {
dataMap.put("minRotateAngle",dataContent.get("startRotation"));
dataMap.put("createTime",System.currentTimeMillis());
HttpUtil.post(HOST+"/api/device/roundInfo",dataMap,-1);
String res = HttpUtils.commHttpPost(HOST+"/api/device/roundInfo",dataMap);
log.info("/api/device/roundInfo...{}...{}",res,dataMap);
}
/**
@ -177,7 +187,7 @@ public class TowerCraneApiController {
String sn = req.getContent().getDeviceKey();
// 将数据同步至马卡鲁安管平台
Map<String, Object> dataMap = new HashMap<>();
JSONObject dataMap = new JSONObject();
dataMap.put("data_source",DEVSOURCE);
dataMap.put("deviceSn",sn);
dataMap.put("warn_name","none");
@ -189,7 +199,8 @@ public class TowerCraneApiController {
dataMap.put("real_data",Convert.toStr(cacheMap.get("collisionAngleAlarm_"+sn),"0"));
dataMap.put("warn_time",DateUtils.getTime());
HttpUtil.post(HOST+"/api/device/warnRecord",dataMap,-1);
String res = HttpUtils.commHttpPost(HOST+"/api/device/warnRecord",dataMap);
log.info("/api/device/warnRecord...{}...{}",res,dataMap);
}
/**
@ -201,7 +212,7 @@ public class TowerCraneApiController {
Map<String, Object> dataContent = req.getContent().getDataContent();
// 将数据同步至马卡鲁安管平台
Map<String, Object> dataMap = new HashMap<>();
JSONObject dataMap = new JSONObject();
dataMap.put("data_source",DEVSOURCE);
dataMap.put("deviceSn",sn);
dataMap.put("warn_name","none");
@ -441,7 +452,8 @@ public class TowerCraneApiController {
dataMap.put("warn_time",DateUtils.getTime());
if(Objects.nonNull(dataMap.get("warn_type"))){
HttpUtil.post(HOST+"/api/device/warnRecord",dataMap,-1);
String res = HttpUtils.commHttpPost(HOST+"/api/device/warnRecord",dataMap);
log.info("/api/device/warnRecord...{}...{}",res,dataMap);
}
}
}
@ -452,7 +464,6 @@ public class TowerCraneApiController {
* @param req
*/
private void pushLimitData(TowerReqVo req){
System.out.println("d3==>pushLimitData");
String sn = req.getContent().getDeviceKey();
Map<String, Object> dataContent = req.getContent().getDataContent();

View File

@ -11,7 +11,7 @@ package com.ruoyi.iot.conf;
public class HzApiConf {
/**
* IOTHOST&&
* IOTHOST
*/
public static String IOT_POWER_HOST = "http://api.1357.cn/hz-condition-monitor";

View File

@ -42,10 +42,10 @@ public class IotDeviceInfo extends BaseEntity
private String hzTenantId;
private String hzProjectId;
private String factoryName;
private String companyName;
private String projectName;
public void setId(Long id)
{
this.id = id;

View File

@ -1,4 +1,4 @@
package com.yanzhu.xd.system.domain;
package com.ruoyi.iot.domain;
import java.util.List;
import java.util.Map;

View File

@ -1,4 +1,4 @@
package com.yanzhu.xd.system.domain;
package com.ruoyi.iot.domain;
import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package com.yanzhu.xd.system.emuns;
package com.ruoyi.iot.enums;
/**
*

View File

@ -0,0 +1,882 @@
package com.ruoyi.iot.task;
import cn.hutool.core.codec.Base64;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.security.Md5Utils;
import okhttp3.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.stereotype.Component;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Component("attendanceJgwTask")
//@RestController
//@RequestMapping("/jgw")
public class AttendanceJgwTask {
static String host="http://api.gongyoumishu.com:80/gomeetapi/";
static String appId="6a6f24fe35b04ee0bcf31cfb46ed1051";
static String secret="sxyzxx2024suc";
static String projectId="6ffba4b6f18743f690b76b5b81d10052";
static String phone="13572235102";
public static void main(String[] args) {
System.out.println("---1--");
// asyncProContractor();
}
public static String getToken(){
String grantType="client_credential";
String path="/webapi/credential";
Map<String, Object> params = new HashMap<>();
params.put("appId",appId);
params.put("secret", Base64.encode(secret));
params.put("grantType",grantType);
Request request = new Request.Builder()
.url(host+path)
.post(toFormBody(params))
.build();
String data=getResult(request);
JSONObject jo=JSON.parseObject(data);
JSONObject joData= jo.getJSONObject("data");
if(joData!=null){
return joData.getString("token");
}
return null;
}
/**
*
*/
//@GetMapping("/asyncProContractor")
public AjaxResult asyncProContractor(){
String token=getToken();
if(StrUtil.isBlank(token)){
return AjaxResult.success();
}
String path="/webapi/project/findProContractorByProjectId";
String time = System.currentTimeMillis() + "";
String startId="0";
String url=host+path+"?appId=" + appId + "&tokenSign=" + token +"&timestamp=" + time;
String tokenSign = Md5Utils.hash(url);
Map<String, Object> params = new HashMap<>();
params.put("appId",appId);
params.put("timestamp",time);
params.put("tokenSign",tokenSign);
params.put("projectId",projectId);
params.put("rowId",startId);
url=host+path+"?appId="+appId+"&tokenSign="+tokenSign+"&projectId="+projectId+"&timestamp="+time+"&rowId="+startId;
String data=HttpUtil.get(url);
JSONObject j= JSON.parseObject(data);
JSONObject joData= j.getJSONObject("data");
JSONArray arr=joData.getJSONArray("proContractorList");
JSONArray unitList=getUnitList();
if(arr.size()>0){
for(int i=0;i<arr.size();i++){
JSONObject json=arr.getJSONObject(i);
callApiSaveParticipatings(json,unitList);
}
}
return AjaxResult.success();
}
/**
*
*/
//@GetMapping("/asyncGroup")
public AjaxResult asyncGroup(){
JSONArray unitList=getUnitList();
JSONArray groupList=getGroupList();
for(int i=0;i<unitList.size();i++){
JSONObject unit=unitList.getJSONObject(i);
if(!unitHasGroup(unit,groupList)){
JSONObject jo=new JSONObject();
jo.put("unitId",unit.getString("id"));
jo.put("uninName", unit.getString("enterpriseName"));
jo.put("groupName","西电队伍");
jo.put("projectId",mklPrjId);
callSaveGroupInfo(jo);
}
}
return AjaxResult.success();
}
/**
*
* @param unit
* @param groupList
* @return
*/
private boolean unitHasGroup(JSONObject unit, JSONArray groupList) {
for(int i=0;i<groupList.size();i++){
JSONObject group=groupList.getJSONObject(i);
if(group.getString("unitId").equals(unit.getString("id"))){
return true;
}
}
return false;
}
/**
*
*/
private void doSyncProContractor(String token, long startId) {
String path="/webapi/project/findProContractorByProjectId";
String time = System.currentTimeMillis() + "";
String url=host+path+"?appId=" + appId + "&tokenSign=" + token +"&timestamp=" + time;
String tokenSign = Md5Utils.hash(url);
Map<String, Object> params = new HashMap<>();
params.put("appId",appId);
params.put("timestamp",time);
params.put("tokenSign",tokenSign);
params.put("projectId",projectId);
params.put("rowId",startId);
url=host+path+"?appId="+appId+"&tokenSign="+tokenSign+"&projectId="+projectId+"&timestamp="+time+"&rowId="+startId;
String data=HttpUtil.get(url);
JSONObject j= JSON.parseObject(data);
JSONObject joData= j.getJSONObject("data");
JSONArray arr=joData.getJSONArray("proContractorList");
if(arr.size()>0){
long rowId=0;
for(int i=0;i<arr.size();i++){
JSONObject json=arr.getJSONObject(i);
rowId=json.getLong("id");
}
if(rowId>0){
doSyncProContractor(token,rowId+1);
}
}
}
/**
*
* @param token
*/
private void doSyncDirectlyUnderGroup(String token, long startId,JSONArray groupList,JSONArray unitList,JSONArray teamList) {
String subcontractorId=getSubcontractor(token);
String path="/webapi/project/findDirectlyUnderTeam";
String time = System.currentTimeMillis() + "";
String url=host+path+"?appId=" + appId + "&tokenSign=" + token +"&timestamp=" + time;
String tokenSign = Md5Utils.hash(url);
Map<String, Object> params = new HashMap<>();
params.put("appId",appId);
params.put("timestamp",time);
params.put("tokenSign",tokenSign);
params.put("projectId",projectId);
params.put("subcontractorId",subcontractorId);
params.put("rowId",startId);
String data= HttpRequest.post(host+path)
.header("Content-Type", "application/x-www-form-urlencoded")
.form(params).execute().body();
JSONObject j= JSON.parseObject(data);
JSONObject joData= j.getJSONObject("data");
JSONArray arr=joData.getJSONArray("teamList");
if(arr.size()>0){
long rowId=0;
for(int i=0;i<arr.size();i++){
JSONObject json=arr.getJSONObject(i);
if(!hasAddTeam(json,teamList)){
JSONObject group=getTeamGroup(json,groupList);
if(group!=null){
callSaveTeamInfoList(json,group,unitList);
}
}
}
if(rowId>0){
doSyncDirectlyUnderGroup(token,rowId+1,groupList,unitList,teamList);
}
}
}
/**
* ID
* @param token
* @return
*/
private String getSubcontractor(String token) {
String path="/webapi/project/querySubcontractorByPhone";
String time = System.currentTimeMillis() + "";
String url=host+path+"?appId=" + appId + "&tokenSign=" + token +"&timestamp=" + time;
System.out.println(url);
String tokenSign = Md5Utils.hash(url);
System.out.println(tokenSign);
Map<String, Object> params = new HashMap<>();
params.put("appId",appId);
params.put("timestamp",time);
params.put("tokenSign",tokenSign);
params.put("phone",phone);
String data= HttpRequest.post(host+path)
.header("Content-Type", "application/x-www-form-urlencoded")
.form(params).execute().body();
System.out.println(data);
JSONObject j= JSON.parseObject(data);
JSONObject jd=j.getJSONObject("data");
JSONArray arr=jd.getJSONArray("subcontractorList");
if(arr.size()>0){
JSONObject jo=arr.getJSONObject(0);
String tmp=jo.getString("subcontractorId");
return tmp;
}
return "";
}
private String getWorkType(String leaderTeamId,String subcontractorId,String findWrokId){
String token=getToken();
if(StrUtil.isBlank(token)){
return "";
}
String path="/webapi/project/findWorkerByLeader";
String time = System.currentTimeMillis() + "";
String url=host+path+"?appId=" + appId + "&tokenSign=" + token +"&timestamp=" + time;
String tokenSign = Md5Utils.hash(url);
Map<String, Object> params = new HashMap<>();
params.put("appId",appId);
params.put("timestamp",time);
params.put("tokenSign",tokenSign);
params.put("leaderTeamId",leaderTeamId);
params.put("subcontractorId",subcontractorId);
String data= HttpRequest.post(host+path)
.header("Content-Type", "application/x-www-form-urlencoded")
.form(params).execute().body();
JSONObject j= JSON.parseObject(data);
JSONObject jd=j.getJSONObject("data");
JSONArray arr=jd.getJSONArray("recordList");
if(arr!=null && arr.size()>0) {
for (int i = 0; i < arr.size(); i++) {
JSONObject json = arr.getJSONObject(i);
String workerId = json.getString("workerId");
if(workerId.equals(findWrokId)){
return json.getString("jobType");
}
}
}
return "";
}
/**
*
*/
//@GetMapping("/asyncTeam")
public AjaxResult asyncTeam(){
String token=getToken();
if(StrUtil.isBlank(token)){
return AjaxResult.error();
}
JSONArray teamList=getTeamList();
String path="webapi/project/findTeamByProjectId";
String time = System.currentTimeMillis() + "";
String startId="0";
String url=host+path+"?appId=" + appId + "&tokenSign=" + token +"&timestamp=" + time;
String tokenSign = Md5Utils.hash(url);
Map<String, Object> params = new HashMap<>();
params.put("appId",appId);
params.put("timestamp",time);
params.put("tokenSign",tokenSign);
params.put("projectId",projectId);
params.put("rowId",startId);
url=host+path+"?appId="+appId+"&tokenSign="+tokenSign+"&projectId="+projectId+"&timestamp="+time+"&rowId="+startId;
String data=HttpUtil.get(url);
JSONObject j= JSON.parseObject(data);
JSONObject joData= j.getJSONObject("data");
JSONArray arr=joData.getJSONArray("teamList");
JSONArray groupList=getGroupList();
JSONArray unitList=getUnitList();
if(arr.size()>0){
for(int i=0;i<arr.size();i++){
JSONObject json=arr.getJSONObject(i);
if(!hasAddTeam(json,teamList)){
JSONObject group=getTeamGroup(json,groupList);
if(group!=null){
callSaveTeamInfoList(json,group,unitList);
}
}
}
}
doSyncDirectlyUnderGroup(token,0l,groupList,unitList,teamList);
return AjaxResult.success();
}
private JSONObject getTeamGroup(JSONObject json,JSONArray groupList) {
String unitName=json.getString("corpName");
for(int i=0;i<groupList.size();i++){
JSONObject group=groupList.getJSONObject(i);
if(group.getString("uninName").equals(unitName)){
return group;
}
}
return null;
}
/**
*
*
* @param json
* @param teamList
* @return
*/
private boolean hasAddTeam(JSONObject json, JSONArray teamList) {
String unitName=json.getString("corpName");
String teamName=json.getString("teamName");
for(int i=0;i<teamList.size();i++){
JSONObject j=teamList.getJSONObject(i);
if(j.getString("uninName").equals(unitName) && j.getString("teamName").equals(teamName)){
return true;
}
}
return false;
}
/**
*
*/
//@GetMapping("/asyncWorker")
public AjaxResult asyncWorker(){
String token=getToken();
if(StrUtil.isBlank(token)){
return AjaxResult.error();
}
JSONArray userList=getUserInfoList();
JSONArray teamList=getTeamList();
JSONArray wrokTypeList=getWorkTypeList();
doSyncWorker(token,0l,userList,teamList,wrokTypeList);
return AjaxResult.success();
}
private void doSyncWorker(String token, long startId,JSONArray userList,JSONArray teamList,JSONArray wrokTypeList) {
String path="/webapi/project/findAddWorkerByProject";
String time = System.currentTimeMillis() + "";
String url=host+path+"?appId=" + appId + "&tokenSign=" + token +"&timestamp=" + time;
String tokenSign = Md5Utils.hash(url);
Map<String, Object> params = new HashMap<>();
params.put("appId",appId);
params.put("timestamp",time);
params.put("tokenSign",tokenSign);
params.put("projectId",projectId);
params.put("startId",startId);
String data= HttpRequest.post(host+path)
.header("Content-Type", "application/x-www-form-urlencoded")
.form(params).execute().body();
JSONObject j= JSON.parseObject(data);
JSONObject joData= j.getJSONObject("data");
long endId= joData.getLong("endId");
JSONArray arr=joData.getJSONArray("workerList");
if(arr.size()>0) {
for(int i=0;i<arr.size();i++){
JSONObject json=arr.getJSONObject(i);
String idNumber=json.getString("idNumber");
if(!existsIdNumberInList(idNumber,userList)){
JSONObject joTeam=getWrokerTeam(json.getString("subcontractorId"),teamList);
if(joTeam!=null){
callApiPersonSync(json,joTeam,wrokTypeList);
}
}
}
doSyncWorker(token,endId,userList,teamList,wrokTypeList);
}
}
private JSONObject getWrokerTeam(String subcontractorId, JSONArray teamList) {
for(int i=0;i<teamList.size();i++){
JSONObject j=teamList.getJSONObject(i);
if(j.getString("captainIdcard").equals(subcontractorId)){
return j;
}
}
return null;
}
/**
*
* @param idNumber
* @param userList
* @return
*/
private boolean existsIdNumberInList(String idNumber, JSONArray userList) {
for(int i=0;i<userList.size();i++){
JSONObject j=userList.getJSONObject(i);
if(j.getString("idcardnum").equals(idNumber)){
return true;
}
}
return false;
}
/**
*
*/
//@GetMapping("/asyncAttendanceData")
public AjaxResult asyncAttendanceData(){
String dtStart= DateUtil.format(new Date(),"yyyy-MM-dd");
String dtEnd=dtStart;
JSONArray userList=getUserInfoList();
syncAttendanceData(dtStart,dtEnd,userList);
return AjaxResult.success();
}
/**
* 7
*/
//@GetMapping("/syncLastWeekAttendanceData")
public void syncLastWeekAttendanceData(){
String dtEnd=DateUtil.format(new Date(),"yyyy-MM-dd");
String dtStart=DateUtil.format(DateUtil.offsetDay(new Date(),-7),"yyyy-MM-dd");
JSONArray userList=getUserInfoList();
syncAttendanceData(dtStart,dtEnd,userList);
}
/**
* 30
*/
//@GetMapping("/syncLast30DayAttendanceData")
public void syncLast30DayAttendanceData(){
String dtEnd=DateUtil.format(new Date(),"yyyy-MM-dd");
String dtStart=DateUtil.format(DateUtil.offsetDay(new Date(),-300),"yyyy-MM-dd");
JSONArray userList=getUserInfoList();
syncAttendanceData(dtStart,dtEnd,userList);
}
//@GetMapping("/syncLast202406to202410DayAttendanceData")
public void syncLast202406to202410DayAttendanceData(){
String dtStart="2024-06-01";
String dtEnd="2024-07-01";
JSONArray userList=getUserInfoList();
syncAttendanceData(dtStart,dtEnd,userList);
dtStart="2024-07-01";
dtEnd="2024-08-01";
syncAttendanceData(dtStart,dtEnd,userList);
dtStart="2024-08-01";
dtEnd="2024-09-01";
syncAttendanceData(dtStart,dtEnd,userList);
dtStart="2024-09-01";
dtEnd="2024-10-01";
syncAttendanceData(dtStart,dtEnd,userList);
dtStart="2024-10-01";
dtEnd="2024-11-01";
syncAttendanceData(dtStart,dtEnd,userList);
}
private void syncAttendanceData(String dtStart, String dtEnd, JSONArray userList) {
String token=getToken();
if(StrUtil.isBlank(token)){
return;
}
JSONObject jo=new JSONObject();
jo.put("token",token);
jo.put("startTime",dtStart);
jo.put("endTime",dtEnd);
doSyncAttendanceData(jo,"0",userList);
}
private void doSyncAttendanceData(JSONObject jo, String startId, JSONArray userList) {
String token=jo.getString("token");
String startTime=jo.getString("startTime");
String endTime=jo.getString("endTime");
String path="/webapi/project/findAttendanceByProject";
String time = System.currentTimeMillis() + "";
String url=host+path+"?appId=" + appId + "&tokenSign=" + token +"&timestamp=" + time;
String tokenSign = Md5Utils.hash(url);
Map<String, Object> params = new HashMap<>();
params.put("appId",appId);
params.put("timestamp",time);
params.put("tokenSign",tokenSign);
params.put("projectId",projectId);
params.put("startId",startId);
params.put("startTime",startTime);
params.put("endTime",endTime);
String data=HttpRequest.post(host+path)
.header("Content-Type", "application/x-www-form-urlencoded")
.form(params).execute().body();
System.out.println(data);
JSONObject j= JSON.parseObject(data);
JSONObject joData= j.getJSONObject("data");
String endId= joData.getString("endId");
JSONArray arr=joData.getJSONArray("workerAttList");
if(arr!=null && arr.size()>0){
for(int i=0;i<arr.size();i++) {
JSONObject json = arr.getJSONObject(i);
callApiclockData(json,userList);
}
doSyncAttendanceData(jo,endId,userList);
}
}
private static RequestBody toFormBody(Map<String, Object> params ){
FormBody.Builder builder=new FormBody.Builder();
for(String key :params.keySet()){
builder.add(key,params.get(key).toString());
}
return builder.build();
}
public static String getResult(Request request) {
OkHttpClient client = new OkHttpClient();
Response response;
try {
response = client.newCall(request).execute();
if (response.body() != null) {
return response.body().string();
} else {
throw new RuntimeException();
}
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException();
}
}
private static String mklAppId="4465a89944f94397897ba897abc5607e";
private static String mklAppsecret="BE6FC933B83C4BE78A3BD8F85E026E3B";
private static long mklPrjId=229;
public static String getMklSign(){
String tmp=mklAppsecret+"appid"+mklAppId+mklAppsecret;
return Md5Utils.hash(tmp).toUpperCase();
}
public static String getMklSign2(){
String tmp=mklAppsecret+"appid"+mklAppId+"projectId"+mklPrjId+mklAppsecret;
return Md5Utils.hash(tmp).toUpperCase();
}
private static String postJson(String url,JSONObject jo){
return HttpUtil.createPost(url)
.body(jo.toJSONString()) // 设置请求体为JSON字符串
.contentType("application/json") // 设置Content-Type为application/json
.execute() // 执行请求
.body(); // 获取响应体
}
/**
*
* @return
*/
private JSONArray getGroupList(){
String url="http://smz.makalu.cc/mkl/basic/getGroupList?appid="+mklAppId+"&sign="+getMklSign2()+"&projectId="+mklPrjId;
String data= HttpUtil.get(url);
JSONObject jo= JSON.parseObject(data);
return jo.getJSONArray("data");
}
/**
*
* @return
*/
private JSONArray getUnitList(){
String url="http://smz.makalu.cc/mkl/basic/getUnitList?appid="+mklAppId+"&sign="+getMklSign2()+"&projectId="+mklPrjId;
String data= HttpUtil.get(url);
JSONObject jo= JSON.parseObject(data);
return jo.getJSONArray("data");
}
/**
*
* @return
*/
private JSONArray getUserInfoList(){
String url="http://smz.makalu.cc/mkl/basic/getUserInfoList?appid="+mklAppId+"&sign="+getMklSign2()+"&projectId="+mklPrjId;
String data= HttpUtil.get(url);
JSONObject jo= JSON.parseObject(data);
return jo.getJSONArray("data");
}
/**
*
* @return
*/
private JSONArray getTeamList(){
String url="http://smz.makalu.cc/mkl/basic/getTeamList?appid="+mklAppId+"&sign="+getMklSign2()+"&projectId="+mklPrjId;
String data= HttpUtil.get(url);
JSONObject jo= JSON.parseObject(data);
return jo.getJSONArray("data");
}
private JSONArray getWorkTypeList(){
String url="http://smz.makalu.cc/mkl/basic/getWorkTypeList?appid="+mklAppId+"&sign="+getMklSign2()+"&projectId="+mklPrjId;
String data= HttpUtil.get(url);
JSONObject jo= JSON.parseObject(data);
return jo.getJSONArray("data");
}
/**
*
* @param jo
* @param unitList
* @return
*/
private boolean hasAddUnit(JSONObject jo,JSONArray unitList){
String code=jo.getString("corpCode");
for(int i=0;i<unitList.size();i++){
JSONObject json=unitList.getJSONObject(i);
if(json.getString("creditCode").equals(code)){
return true;
}
}
return false;
}
/**
*
* @param jo
*/
private void callSaveGroupInfo(JSONObject joPost) {
String url="http://smz.makalu.cc/mkl/api/saveGroupInfo";
joPost.put("sign",getMklSign());
joPost.put("appid",mklAppId);
String result= postJson(url,joPost);
}
/**
*
* @param json
* @param unitList
*/
private void callApiSaveParticipatings(JSONObject json,JSONArray unitList) {
if(hasAddUnit(json,unitList)){
return;
}
String url="http://smz.makalu.cc/mkl/api/saveParticipatings";
JSONObject jo=new JSONObject();
jo.put("project_id",mklPrjId);
jo.put("enterprise_name",json.getString("corpName"));
jo.put("credit_code",json.getString("corpCode"));
jo.put("unit_typeid",getMklUnitType(json.getString("corpType")));
jo.put("business_scope","");
jo.put("contact_name",json.getString("pmName"));
jo.put("contact_phone",json.getString("pmPhone"));
jo.put("regist_addr",json.getString("registerAddress"));
jo.put("regist_date",json.getString("registeredTime"));
jo.put("corporation_name",json.getString("pmName"));
jo.put("corporation_cardnum",json.getString("pmIdcardNumber"));
jo.put("corporation_phone",json.getString("pmPhone"));
jo.put("entrusted_agent_name",json.getString("pmName"));
jo.put("entrusted_agent_phone",json.getString("pmPhone"));
jo.put("entrusted_agent_education_level","");
jo.put("id_card_front","");
jo.put("id_card_back","");
jo.put("half_body_photo","");
jo.put("entrusted_agent_cardnum",json.getString("pmIdcardNumber"));
JSONArray data=new JSONArray();
data.add(jo);
JSONObject joPost=new JSONObject();
joPost.put("data",data);
joPost.put("sign",getMklSign());
joPost.put("appid",mklAppId);
String result= postJson(url,joPost);
}
/**
*
* @param json
* @param groupList
*/
private void callSaveTeamInfoList(JSONObject json, JSONObject group,JSONArray unitList) {
String url="http://smz.makalu.cc/mkl/api/saveTeamInfoList";
JSONObject jo=new JSONObject();
jo.put("projectId",mklPrjId);
jo.put("unitId",group.getIntValue("unitId"));
jo.put("uninName",group.getString("uninName"));
jo.put("groupId",group.getIntValue("id"));
jo.put("teamName",json.getString("teamName"));
String unitTypeid=getUnitTyeId(group.getString("unitId"),unitList);
jo.put("teamType","1".equals(unitTypeid)||"8".equals(unitTypeid)?"2":"1");
jo.put("captainName",json.getString("resPersonName"));
jo.put("captainIdcard",json.getString("subcontractorId"));
jo.put("captainPhone",json.getString("resPersonPhone"));
jo.put("sign",getMklSign());
jo.put("appid",mklAppId);
JSONArray data=new JSONArray();
data.add(jo);
JSONObject joPost=new JSONObject();
joPost.put("data",data);
joPost.put("sign",getMklSign());
joPost.put("appid",mklAppId);
String result= postJson(url,joPost);
}
/**
*
* @param json
* @param joTeam
*/
private void callApiPersonSync(JSONObject json, JSONObject joTeam,JSONArray workTypeList) {
String url="http://smz.makalu.cc/mkl/api/personSync";
JSONObject jo=new JSONObject();
String teamLeaderId=json.getString("teamLeaderId");
String subcontractorId=joTeam.getString("captainIdcard");
String workId=json.getString("workerId");
//String jobType=getWorkType(teamLeaderId,subcontractorId,workId);
String jobType=json.getString("jobtype");
jo.put("projectId",mklPrjId);
jo.put("idcardnum",json.getString("idNumber"));
jo.put("name",json.getString("name"));
jo.put("teamid",joTeam.getIntValue("id"));
jo.put("userphone",json.getString("phone"));
jo.put("userphoto",json.getString("headImage"));
jo.put("enterdate",json.getString("scannerTime"));
jo.put("worktypeid",getMKLWorkType(jobType,workTypeList));
jo.put("sex","1".equals(json.getString("sex"))?"男":"女");
jo.put("nation",json.getString("minor"));
jo.put("birthday",json.getString("birthday"));
jo.put("address",json.getString("address"));
jo.put("organization",workId);
jo.put("useStarttime",json.getString("expiryday"));
jo.put("useEndtime",json.getString("expiryday"));
jo.put("idcardimg",json.getString("idFront"));
jo.put("idcardimg2",json.getString("idBack"));
jo.put("information_path","");
jo.put("signature","");
jo.put("sign",getMklSign());
jo.put("appid",mklAppId);
String result= postJson(url,jo);
}
private void callApiclockData(JSONObject json, JSONArray userList) {
String url="http://smz.makalu.cc/mkl/api/clockData";
JSONObject jo=new JSONObject();
String workerId=json.getString("workerId");
JSONObject joUser=findUserByWorkId(workerId,userList);
if(joUser==null){
return;
}
jo.put("sign",getMklSign());
jo.put("appid",mklAppId);
jo.put("projectId",mklPrjId);
jo.put("user_cardnum",joUser.getString("idcardnum"));
jo.put("user_name",joUser.getString("name"));
jo.put("ic_num","");
jo.put("team_id",joUser.getIntValue("teamid"));
jo.put("workscope","");
jo.put("equipmentid",json.getString("deviceSerialNo"));
jo.put("clockin_type",getSignType(json.getString("signType")));
jo.put("clockinTime",json.getString("checkinTime"));
jo.put("faceimg",json.getString("signimg"));
jo.put("latitude",json.getString("latitude"));
jo.put("longitude",json.getString("longitude"));
jo.put("unionid",json.getString("attendanceId"));
jo.put("address",json.getString("projectCoordinate"));
jo.put("recommend","");
jo.put("state",json.getString("machineType").equals("3")?"O":"E");
String result= postJson(url,jo);
}
private String getSignType(String signType) {
//01:定位 02:短信 03NFC 签到 04:二维码05考勤机06WeChat07刷脸签到08 非活体 00没有
if("01".equals(signType)){
return "定位";
}
if("02".equals(signType)){
return "短信";
}
if("03".equals(signType)){
return "NFC 签到";
}
if("04".equals(signType)){
return "二维码";
}
if("05".equals(signType)){
return "考勤机";
}
if("06".equals(signType)){
return "WeChat";
}
if("07".equals(signType)){
return "刷脸签到";
}
if("08".equals(signType)){
return "非活体";
}
return "没有";
}
private JSONObject findUserByWorkId(String workerId, JSONArray userList) {
for(int i=0;i<userList.size();i++){
JSONObject jo=userList.getJSONObject(i);
if(jo.getString("organization").equals(workerId)){
return jo;
}
}
return null;
}
private int getMKLWorkType(String jobtype, JSONArray workTypeList) {
for(int i=0;i<workTypeList.size();i++){
JSONObject jo=workTypeList.getJSONObject(i);
String wk=jo.getString("workType");
if(wk.contains(jobtype)||jobtype.contains(wk)){
return jo.getIntValue("id");
}
}
return 1;
}
private String getUnitTyeId(String unitId, JSONArray unitList) {
for(int i=0;i<unitList.size();i++){
JSONObject json=unitList.getJSONObject(i);
if(json.getString("id").equals(unitId)){
return json.getString("unitTypeid");
}
}
return "12";
}
private int getMklUnitType(String corpType) {
if(corpType.equals("001")){
return 2;
}
if(corpType.equals("002")){
return 4;
}
if(corpType.equals("003")){
return 5;
}
if(corpType.equals("004")){
return 6;
}
if(corpType.equals("005")){
return 7;
}
if(corpType.equals("006")){
return 3;
}
if(corpType.equals("007")){
return 8;
}
if(corpType.equals("009")){
return 1;
}
if(corpType.equals("010")){
return 10;
}
if(corpType.equals("011")){
return 11;
}
return 12;
}
}

View File

@ -5,7 +5,6 @@ import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.HttpUtils;
import com.ruoyi.iot.conf.HzApiConf;
@ -31,7 +30,6 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.beans.Transient;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.*;
@ -47,6 +45,7 @@ import java.util.*;
@Component("gainHzDataTask")
public class GainHzDataTask {
private static final Logger log = LoggerFactory.getLogger(GainHzDataTask.class);
@Autowired
@ -61,6 +60,7 @@ public class GainHzDataTask {
@Autowired
private IStandardCuringRoomDeviceService iStandardCuringRoomDeviceService;
@Autowired
private IEnvironmentService environmentService;
@ -72,7 +72,6 @@ public class GainHzDataTask {
public static Boolean[] warrning = new Boolean[]{false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false};
public static Boolean[] warrning1 = new Boolean[]{false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false};
public static Boolean[] warrning_power_sd = new Boolean[]{false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false};
@Test
public void getPowerData() {
@ -85,91 +84,93 @@ public class GainHzDataTask {
IotDeviceInfo iotDeviceInfo = new IotDeviceInfo();
iotDeviceInfo.setDeviceName("配电箱");
iotDeviceInfo.setFactoryName("华筑");
List<IotDeviceInfo> iotDeviceInfos = iIotDeviceInfoService.selectIotDeviceInfoList(iotDeviceInfo);
iotDeviceInfos.forEach(item -> {
if(item.getHzTenantId() != null && item.getHzProjectId() != null) {
JSONObject body = new JSONObject();
body.put("tenantId", item.getHzTenantId());
body.put("projectId", item.getHzProjectId());
body.put("startTime", startTime);
body.put("endTime", endTime);
String res_str = HttpRequest.post(HzApiConf.IOT_POWER_HOST + HzApiConf.DISTRIBUTION_BOX_PAGE_REAL_DATA)
.header("appId", HzApiConf.APP_ID).header("appSecret", HzApiConf.APP_SECRET)
.body(body.toString())
.execute().body();
JSONObject res = JSONObject.parseObject(res_str);
if(Objects.isNull(item.getFactoryName()) || !Objects.equals("萨达",item.getFactoryName())){
if(item.getHzTenantId() != null && item.getHzProjectId() != null) {
JSONObject body = new JSONObject();
body.put("tenantId", item.getHzTenantId());
body.put("projectId", item.getHzProjectId());
body.put("startTime", startTime);
body.put("endTime", endTime);
String res_str = HttpRequest.post(HzApiConf.IOT_POWER_HOST + HzApiConf.DISTRIBUTION_BOX_PAGE_REAL_DATA)
.header("appId", HzApiConf.APP_ID).header("appSecret", HzApiConf.APP_SECRET)
.body(body.toString())
.execute().body();
JSONObject res = JSONObject.parseObject(res_str);
//2. 解析数据
System.out.println(res_str);
JSONArray content = res.getJSONObject("data").getJSONArray("content");
System.out.println(content);
List<IotWarningInfo> iotWarningInfos = new ArrayList<>(16);
List<IotPower> iotPowers = new ArrayList<>(16);
for (int i = 0; i < content.size(); i++) {
//2. 解析数据
System.out.println(res_str);
JSONArray content = res.getJSONObject("data").getJSONArray("content");
System.out.println(content);
List<IotWarningInfo> iotWarningInfos = new ArrayList<>(16);
List<IotPower> iotPowers = new ArrayList<>(16);
for (int i = 0; i < content.size(); i++) {
//3.数据转换
JSONObject tmp = content.getJSONObject(i);
IotPower iotPower = new IotPower();
iotPower.setUid(tmp.getString("deviceSn"));
iotPower.setTime(tmp.getDate("createTime"));
iotPower.setPower(BigDecimal.valueOf(tmp.getFloat("totalPower")));
iotPower.setLeak(BigDecimal.valueOf(tmp.getFloat("leftElectric")));
iotPower.setC1(BigDecimal.valueOf(tmp.getFloat("currentElectric1")));
iotPower.setC2(BigDecimal.valueOf(tmp.getFloat("currentElectric2")));
iotPower.setC3(BigDecimal.valueOf(tmp.getFloat("currentElectric3")));
iotPower.setV1(BigDecimal.valueOf(tmp.getFloat("currentVoltage1")));
iotPower.setV2(BigDecimal.valueOf(tmp.getFloat("currentVoltage2")));
iotPower.setV3(BigDecimal.valueOf(tmp.getFloat("currentVoltage3")));
iotPower.setT1(BigDecimal.valueOf(tmp.getFloat("monitorTem1")));
iotPower.setT2(BigDecimal.valueOf(tmp.getFloat("monitorTem2")));
iotPower.setT3(BigDecimal.valueOf(tmp.getFloat("monitorTem3")));
iotPower.setT4(BigDecimal.valueOf(tmp.getFloat("monitorTem4")));
if (t % 2 == 0 && !warrning[t]) {
warrning = new Boolean[]{false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false};
warrning[t] = true;
if (iotPower.getLeak().floatValue() > HzApiConf.DISTRIBUTION_BOX_WARNING_LEAK) {
IotWarningInfo iotWarningInfo = new IotWarningInfo();
iotWarningInfo.setDeviceId(iotPower.getUid());
iotWarningInfo.setType("漏电预警");
iotWarningInfo.setContent(String.format("设备存在漏电,当前剩余电流:%s", iotPower.getLeak()));
iotWarningInfo.setCreateTime(new Date());
iotWarningInfos.add(iotWarningInfo);
//3.数据转换
JSONObject tmp = content.getJSONObject(i);
IotPower iotPower = new IotPower();
iotPower.setUid(tmp.getString("deviceSn"));
iotPower.setTime(tmp.getDate("createTime"));
iotPower.setPower(BigDecimal.valueOf(tmp.getFloat("totalPower")));
iotPower.setLeak(BigDecimal.valueOf(tmp.getFloat("leftElectric")));
iotPower.setC1(BigDecimal.valueOf(tmp.getFloat("currentElectric1")));
iotPower.setC2(BigDecimal.valueOf(tmp.getFloat("currentElectric2")));
iotPower.setC3(BigDecimal.valueOf(tmp.getFloat("currentElectric3")));
iotPower.setV1(BigDecimal.valueOf(tmp.getFloat("currentVoltage1")));
iotPower.setV2(BigDecimal.valueOf(tmp.getFloat("currentVoltage2")));
iotPower.setV3(BigDecimal.valueOf(tmp.getFloat("currentVoltage3")));
iotPower.setT1(BigDecimal.valueOf(tmp.getFloat("monitorTem1")));
iotPower.setT2(BigDecimal.valueOf(tmp.getFloat("monitorTem2")));
iotPower.setT3(BigDecimal.valueOf(tmp.getFloat("monitorTem3")));
iotPower.setT4(BigDecimal.valueOf(tmp.getFloat("monitorTem4")));
if (t % 2 == 0 && !warrning[t]) {
warrning = new Boolean[]{false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false};
warrning[t] = true;
if (iotPower.getLeak().floatValue() > HzApiConf.DISTRIBUTION_BOX_WARNING_LEAK) {
IotWarningInfo iotWarningInfo = new IotWarningInfo();
iotWarningInfo.setDeviceId(iotPower.getUid());
iotWarningInfo.setType("漏电预警");
iotWarningInfo.setContent(String.format("设备存在漏电,当前剩余电流:%s", iotPower.getLeak()));
iotWarningInfo.setCreateTime(new Date());
iotWarningInfos.add(iotWarningInfo);
}
if (iotPower.getT1().floatValue() > HzApiConf.DISTRIBUTION_BOX_WARNING_TEMP
|| iotPower.getT2().floatValue() > HzApiConf.DISTRIBUTION_BOX_WARNING_TEMP
|| iotPower.getT3().floatValue() > HzApiConf.DISTRIBUTION_BOX_WARNING_TEMP
|| iotPower.getT4().floatValue() > HzApiConf.DISTRIBUTION_BOX_WARNING_TEMP) {
IotWarningInfo iotWarningInfo = new IotWarningInfo();
iotWarningInfo.setDeviceId(iotPower.getUid());
iotWarningInfo.setType("温度异常");
iotWarningInfo.setContent(String.format("设备当前温度:%s,%s,%s,%s有温度高于70度", iotPower.getT1(), iotPower.getT2(), iotPower.getT3(), iotPower.getT4()));
iotWarningInfo.setCreateTime(new Date());
iotWarningInfos.add(iotWarningInfo);
}
}
if (iotPower.getT1().floatValue() > HzApiConf.DISTRIBUTION_BOX_WARNING_TEMP
|| iotPower.getT2().floatValue() > HzApiConf.DISTRIBUTION_BOX_WARNING_TEMP
|| iotPower.getT3().floatValue() > HzApiConf.DISTRIBUTION_BOX_WARNING_TEMP
|| iotPower.getT4().floatValue() > HzApiConf.DISTRIBUTION_BOX_WARNING_TEMP) {
IotWarningInfo iotWarningInfo = new IotWarningInfo();
iotWarningInfo.setDeviceId(iotPower.getUid());
iotWarningInfo.setType("温度异常");
iotWarningInfo.setContent(String.format("设备当前温度:%s,%s,%s,%s有温度高于70度", iotPower.getT1(), iotPower.getT2(), iotPower.getT3(), iotPower.getT4()));
iotWarningInfo.setCreateTime(new Date());
iotWarningInfos.add(iotWarningInfo);
//4. 数据入库
iotPowers.add(iotPower);
Request request = new Request();
request.setUri("https://aqzg.makalu.cc/api/iot/power/save");
request.addBody(JSONObject.parseObject(JSONObject.toJSONString(iotPower), HashMap.class));
try {
HttpClient.json(request);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
//4. 数据入库
iotPowers.add(iotPower);
Request request = new Request();
request.setUri("https://aqzg.makalu.cc/api/iot/power/save");
request.addBody(JSONObject.parseObject(JSONObject.toJSONString(iotPower), HashMap.class));
try {
HttpClient.json(request);
} catch (Exception e) {
throw new RuntimeException(e);
if (iotPowers.size() > 0) {
iotPowerService.batchInsertPower(iotPowers);
}
if (iotWarningInfos.size() > 0) {
iotWarningInfoService.batchInsertWarning(iotWarningInfos);
}
}
if (iotPowers.size() > 0) {
iotPowerService.batchInsertPower(iotPowers);
}
if (iotWarningInfos.size() > 0) {
iotWarningInfoService.batchInsertWarning(iotWarningInfos);
}
}
});
}
@Test

View File

@ -1,20 +1,43 @@
package com.ruoyi.iot.task;
import cc.casually.htmlParse.http.*;
import cc.casually.htmlParse.util.HttpUtil;
import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.message.MessageOneUtil;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.iot.conf.HzApiConf;
import com.ruoyi.iot.domain.IotPower;
import com.ruoyi.iot.domain.IotWarningInfo;
import com.ruoyi.iot.domain.StandardCuringRoomDevice;
import com.ruoyi.iot.service.IIotPowerService;
import com.ruoyi.iot.service.IIotWarningInfoService;
import com.ruoyi.iot.service.IStandardCuringRoomDeviceService;
import com.ruoyi.system.mapper.MeasureDeviceMapper;
import com.ruoyi.system.service.ISysConfigService;
import com.ruoyi.utils.HttpUtils;
import com.ruoyi.weixin.domain.Environment;
import com.ruoyi.weixin.mapper.ConcreteStrengthDataMapper;
import com.ruoyi.weixin.mapper.EnvironmentMapper;
import com.ruoyi.weixin.service.IEnvironmentService;
import org.apache.commons.collections.map.HashedMap;
import org.apache.http.HttpResponse;
import org.apache.http.protocol.HTTP;
import org.apache.http.util.EntityUtils;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.stream.Collectors;
/**
*

View File

@ -52,6 +52,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="typeName != null">type_name,</if>
<if test="hzTenantId != null">hz_tenant_id,</if>
<if test="hzProjectId != null">hz_project_id,</if>
<if test="factoryName != null">factory_name,</if>
<if test="companyName != null">company_name,</if>
<if test="projectName != null">project_name,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deviceId != null and deviceId != ''">#{deviceId},</if>
@ -62,6 +65,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="typeName != null">#{typeName},</if>
<if test="hzTenantId != null">#{hzTenantId},</if>
<if test="hzProjectId != null">#{hzProjectId},</if>
<if test="factoryName != null">#{factoryName},</if>
<if test="companyName != null">#{companyName},</if>
<if test="projectName != null">#{projectName},</if>
</trim>
</insert>

View File

@ -1,5 +1,6 @@
package com.ruoyi.weixin.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.controller.BaseController;

View File

@ -289,7 +289,7 @@
</div>
</div>
</body>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak="></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=5M76qMCiVjSG7bGOTcYmZdg0MQinsKve"></script>
<script src="https://cdn.makalu.cc/js/vue/vue.js"></script>
<script src="https://cdn.makalu.cc/js/element-ui/index.js"></script>
<script src="/js/jquery-3.0.0.min.js"></script>

View File

@ -158,7 +158,7 @@
</div>
</div>
</body>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak="></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=5M76qMCiVjSG7bGOTcYmZdg0MQinsKve"></script>
<script src="https://cdn.makalu.cc/js/vue/vue.js"></script>
<script src="https://cdn.makalu.cc/js/element-ui/index.js"></script>
<script src="/js/jquery-3.0.0.min.js"></script>

View File

@ -555,7 +555,7 @@
</body>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak="></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=5M76qMCiVjSG7bGOTcYmZdg0MQinsKve"></script>
<script src="https://cdn.makalu.cc/js/vue/vue.js"></script>
<script src="https://cdn.makalu.cc/js/element-ui/index.js"></script>
<script src="/js/jquery-3.0.0.min.js"></script>

View File

@ -390,7 +390,7 @@
</body>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak="></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=5M76qMCiVjSG7bGOTcYmZdg0MQinsKve"></script>
<script src="https://cdn.makalu.cc/js/vue/vue.js"></script>
<script src="https://cdn.makalu.cc/js/element-ui/index.js"></script>
<script src="/js/echarts.js"></script>

View File

@ -328,7 +328,7 @@
</div>
</body>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak="></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=5M76qMCiVjSG7bGOTcYmZdg0MQinsKve"></script>
<script src="https://cdn.makalu.cc/js/vue/vue.js"></script>
<script src="https://cdn.makalu.cc/js/element-ui/index.js"></script>
<script src="/js/jquery-3.0.0.min.js"></script>

View File

@ -823,7 +823,7 @@
</div>
</body>
<script src="https://cdn.makalu.cc/js/moment/2.24.0/moment.min.js"></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak="></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=5M76qMCiVjSG7bGOTcYmZdg0MQinsKve"></script>
<script src="https://cdn.makalu.cc/js/moment/2.24.0/moment.min.js"></script>
<script src="https://cdn.makalu.cc/js/vue/vue.js"></script>
<script src="https://cdn.makalu.cc/js/element-ui/index.js"></script>

View File

@ -2,15 +2,14 @@ package com.ruoyi.api.controller;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.api.service.ApiService;
//import com.sun.org.apache.xpath.internal.operations.Mod;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
//import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* @ClassName:ApiController

19
pom.xml
View File

@ -26,7 +26,6 @@
<mybatis-spring-boot.version>2.1.4</mybatis-spring-boot.version>
<pagehelper.boot.version>1.3.1</pagehelper.boot.version>
<fastjson.version>1.2.76</fastjson.version>
<fastjson2.version>2.0.34</fastjson2.version>
<oshi.version>5.7.4</oshi.version>
<jna.version>5.8.0</jna.version>
<commons.io.version>2.10.0</commons.io.version>
@ -184,12 +183,6 @@
<version>${fastjson.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>${fastjson2.version}</version>
</dependency>
<!-- 定时任务-->
<dependency>
<groupId>com.ruoyi</groupId>
@ -305,13 +298,6 @@
<artifactId>mkl-examine</artifactId>
<version>${ruoyi.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.32</version> <!-- 请检查是否有更新的版本 -->
</dependency>
</dependencies>
</dependencyManagement>
@ -322,7 +308,6 @@
<module>ruoyi-quartz</module>
<module>ruoyi-generator</module>
<module>ruoyi-common</module>
<module>ruoyi-yanzhu</module>
<module>mkl-business</module>
<module>mkl-largeScreenApi</module>
<module>mkl-building</module>
@ -363,7 +348,7 @@
<repository>
<id>public</id>
<name>aliyun nexus</name>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
@ -374,7 +359,7 @@
<pluginRepository>
<id>public</id>
<name>aliyun nexus</name>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>

View File

@ -27,7 +27,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<optional>true</optional> <!-- 表示依赖不会传递 -->
</dependency>
<!-- swagger3-->
@ -108,8 +108,6 @@
<artifactId>mkl-screen</artifactId>
</dependency>
<!-- 业务模块-->
<dependency>
<groupId>com.qcloud</groupId>
<artifactId>cos_api</artifactId>
@ -155,15 +153,6 @@
<groupId>com.ruoyi</groupId>
<artifactId>mkl-examine</artifactId>
</dependency>
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-yanzhu</artifactId>
<version>4.6.1</version>
</dependency>
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
</dependency>
</dependencies>
@ -192,14 +181,7 @@
<failOnMissingWebXml>false</failOnMissingWebXml>
<warName>${project.artifactId}</warName>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugin>
<!-- YUI Compressor (CSS/JS压缩)
<plugin>
<groupId>net.alchim31.maven</groupId>

View File

@ -3,20 +3,17 @@ package com.ruoyi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
/**
*
*
* @author ruoyi
*/
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class },
scanBasePackages = {"com.yanzhu","com.ruoyi"})
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
public static void main(String[] args)
{
// System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication.run(RuoYiApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n" +

View File

@ -8,7 +8,6 @@ import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

View File

@ -52,6 +52,7 @@ public class SysDictDataController extends BaseController
return getDataTable(list);
}
@PostMapping("/listData")
@ResponseBody
public TableDataInfo listData(SysDictData dictData)

View File

@ -6,9 +6,33 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://62.234.3.186:3306/mkl_cas2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# url: jdbc:mysql://rm-wz91cyo73auob3500o.mysql.rds.aliyuncs.com:3306/mkl_cas_demonstration?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: weihu
# password: mkl!2021
url: jdbc:mysql://10.4.9.233:3306/mkl_cas_v1?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8
username: root
password: Sxyanzhu@cf123
password: Makalu2024
# url: jdbc:mysql://rm-wz91cyo73auob3500o.mysql.rds.aliyuncs.com:3306/mkl_cas_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: weihu
# password: mkl!2021
# url: jdbc:mysql://192.168.31.130:3306/mkl_cas_v1?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: root
# password: root
# url: jdbc:mysql://rm-wz91cyo73auob3500o.mysql.rds.aliyuncs.com:3306/mkl_aqsc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: weihu
# password: mkl!2021
# url: jdbc:mysql://rm-wz91cyo73auob3500o.mysql.rds.aliyuncs.com:3306/mkl_cas_v1?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: weihu
# password: mkl!2021
# url: jdbc:mysql://127.0.0.1:3306/mkl_aqsc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: root
# password: root
#中铁三局数字三局
# url: jdbc:mysql://rm-wz91s59439vhza70ho.mysql.rds.aliyuncs.com/mkl_cas_ztsj?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: weihu
# password: mkl!2021
# 从库数据源
slave:
# 从数据源开关/默认关闭

View File

@ -11,8 +11,10 @@ ruoyi:
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
#中铁一局建安公司
profile: /mnt/data/typt/uploadPath
# 安全生产、数字三局
# profile: /mnt/typt/uploadPath
# 本地
# profile: D://mnt/typt/uploadPath
# profile: D://mnt/typt/uploadPath
# 获取ip地址开关
addressEnabled: true
@ -76,7 +78,7 @@ spring:
# MyBatis
mybatis:
# 搜索指定包别名
typeAliasesPackage: com.ruoyi.**.domain,com.yanzhu.**.domain
typeAliasesPackage: com.ruoyi.**.domain
# 配置mapper的扫描找到所有的mapper.xml映射文件
mapperLocations: classpath*:mapper/**/*Mapper.xml
# 加载全局的配置文件
@ -142,17 +144,43 @@ swagger:
# cas配置
cas:
client-name: CasClientTYPT
# client-name: CasClientTYPTSJ
# client-name: aqscClient
server:
url: http://62.234.3.186/cas
# url: https://cas-ty.makalu.cc/cas
# url: https://cas-sj.makalu.cc/cas
url: https://jaszpt-cas.crfeb.com.cn/cas
# url: http://localhost:8080/cas
project:
url: http://127.0.0.1:9004
# url: http://typt-t.makalu.cc
# url: https://typt-t1.makalu.cc
# url: https://szh.makalu.cc
# url: https://aqsc.makalu.cc
# url: http://127.0.0.1:9004
url: https://jaszpt.crfeb.com.cn
# url:https://sz-test.makalu.cc/
# url: https://ztsj.makalu.cc/
# url: https://szsj.makalu.cc/
user-center:
# url: https://user-center-sj.makalu.cc
url: https://jaszpt-usercenter.crfeb.com.cn
# url: https://user-center.makalu.cc
# url: 127.0.0.1:8099
# helmet文件下载路径路径配置
helmet:
#建安公司数字化集成管控平台
#建安公司数字化集成管控平台
localFilePath: /mnt/data/aqm/
downloadFileHost: http://127.0.0.1:9004/typt/
downloadFileHost: https://jaszpt.crfeb.com.cn/typt/
downloadWritePath: /mnt/data/typt/
templateFilePath: /mnt/data/temporary/
#一局三公司安全生产 、数字三局
# localFilePath: /mnt/aqm/
# downloadFileHost: https://filedown.makalu.cc/
# downloadWritePath: /mnt/typt/
# templateFilePath: /mnt/temporary/
#本地
# localFilePath: D:/aqm/
# downloadFileHost: D:/mnt/typt/
@ -162,7 +190,4 @@ helmet:
## 定时任务基础配置
scheduling:
enabled: true #定时任务开关
# enabled: false #定时任务开关
vue:
#path: classpath:/yanzhuui/
path: file:D:\\hahaprj\\dapeng\\v4\mkl2\\yanzhu-ui\\dist\\
# enabled: false #定时任务开关

View File

@ -1,31 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 日志存放路径 -->
<property name="log.path" value="./logs" />
<property name="log.path" value="./logs" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-info.log</file>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
@ -33,16 +33,16 @@
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-error.log</file>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
@ -50,16 +50,16 @@
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 用户访问日志输出 -->
<!-- 用户访问日志输出 -->
<appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-user.log</file>
<file>${log.path}/sys-user.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 按天回滚 daily -->
<fileNamePattern>${log.path}/sys-user.%d{yyyy-MM-dd}.log</fileNamePattern>
@ -70,23 +70,23 @@
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.ruoyi" level="info" />
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn" />
<root level="info">
<appender-ref ref="console" />
</root>
<!--系统操作日志-->
<!-- 系统模块日志级别控制 -->
<logger name="com.ruoyi" level="info" />
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn" />
<root level="info">
<appender-ref ref="console" />
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info" />
<appender-ref ref="file_error" />
</root>
<!--系统用户操作日志-->
<!--系统用户操作日志-->
<logger name="sys-user" level="info">
<appender-ref ref="sys-user"/>
</logger>

File diff suppressed because one or more lines are too long

View File

@ -89,7 +89,7 @@
</div>
</nav>
</div>
<!--左侧导航开始111-->
<!--左侧导航开始-->
<nav class="navbar-default navbar-static-side" role="navigation">
<div class="sidebar-collapse">

View File

@ -16,10 +16,7 @@
</description>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<!-- Spring框架基本的核心工具 -->
<dependency>
<groupId>org.springframework</groupId>

View File

@ -101,5 +101,4 @@ public class Constants
* RMI
*/
public static final String LOOKUP_RMI = "rmi://";
public static final Integer BIGSCREEN_QUERY_CACHE = 1;
}

View File

@ -1,268 +0,0 @@
package com.ruoyi.common.core.redis;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.BoundSetOperations;
import org.springframework.data.redis.core.HashOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.stereotype.Component;
/**
* spring redis
*
* @author ruoyi
**/
@SuppressWarnings(value = { "unchecked", "rawtypes" })
@Component
public class RedisCache
{
@Autowired
public RedisTemplate redisTemplate;
/**
* IntegerString
*
* @param key
* @param value
*/
public <T> void setCacheObject(final String key, final T value)
{
redisTemplate.opsForValue().set(key, value);
}
/**
* IntegerString
*
* @param key
* @param value
* @param timeout
* @param timeUnit
*/
public <T> void setCacheObject(final String key, final T value, final Integer timeout, final TimeUnit timeUnit)
{
redisTemplate.opsForValue().set(key, value, timeout, timeUnit);
}
/**
*
*
* @param key Redis
* @param timeout
* @return true=false=
*/
public boolean expire(final String key, final long timeout)
{
return expire(key, timeout, TimeUnit.SECONDS);
}
/**
*
*
* @param key Redis
* @param timeout
* @param unit
* @return true=false=
*/
public boolean expire(final String key, final long timeout, final TimeUnit unit)
{
return redisTemplate.expire(key, timeout, unit);
}
/**
*
*
* @param key Redis
* @return
*/
public long getExpire(final String key)
{
return redisTemplate.getExpire(key);
}
/**
* key
*
* @param key
* @return true false
*/
public Boolean hasKey(String key)
{
return redisTemplate.hasKey(key);
}
/**
*
*
* @param key
* @return
*/
public <T> T getCacheObject(final String key)
{
ValueOperations<String, T> operation = redisTemplate.opsForValue();
return operation.get(key);
}
/**
*
*
* @param key
*/
public boolean deleteObject(final String key)
{
return redisTemplate.delete(key);
}
/**
*
*
* @param collection
* @return
*/
public boolean deleteObject(final Collection collection)
{
return redisTemplate.delete(collection) > 0;
}
/**
* List
*
* @param key
* @param dataList List
* @return
*/
public <T> long setCacheList(final String key, final List<T> dataList)
{
Long count = redisTemplate.opsForList().rightPushAll(key, dataList);
return count == null ? 0 : count;
}
/**
* list
*
* @param key
* @return
*/
public <T> List<T> getCacheList(final String key)
{
return redisTemplate.opsForList().range(key, 0, -1);
}
/**
* Set
*
* @param key
* @param dataSet
* @return
*/
public <T> BoundSetOperations<String, T> setCacheSet(final String key, final Set<T> dataSet)
{
BoundSetOperations<String, T> setOperation = redisTemplate.boundSetOps(key);
Iterator<T> it = dataSet.iterator();
while (it.hasNext())
{
setOperation.add(it.next());
}
return setOperation;
}
/**
* set
*
* @param key
* @return
*/
public <T> Set<T> getCacheSet(final String key)
{
return redisTemplate.opsForSet().members(key);
}
/**
* Map
*
* @param key
* @param dataMap
*/
public <T> void setCacheMap(final String key, final Map<String, T> dataMap)
{
if (dataMap != null) {
redisTemplate.opsForHash().putAll(key, dataMap);
}
}
/**
* Map
*
* @param key
* @return
*/
public <T> Map<String, T> getCacheMap(final String key)
{
return redisTemplate.opsForHash().entries(key);
}
/**
* Hash
*
* @param key Redis
* @param hKey Hash
* @param value
*/
public <T> void setCacheMapValue(final String key, final String hKey, final T value)
{
redisTemplate.opsForHash().put(key, hKey, value);
}
/**
* Hash
*
* @param key Redis
* @param hKey Hash
* @return Hash
*/
public <T> T getCacheMapValue(final String key, final String hKey)
{
HashOperations<String, String, T> opsForHash = redisTemplate.opsForHash();
return opsForHash.get(key, hKey);
}
/**
* Hash
*
* @param key Redis
* @param hKeys Hash
* @return Hash
*/
public <T> List<T> getMultiCacheMapValue(final String key, final Collection<Object> hKeys)
{
return redisTemplate.opsForHash().multiGet(key, hKeys);
}
/**
* Hash
*
* @param key Redis
* @param hKey Hash
* @return
*/
public boolean deleteCacheMapValue(final String key, final String hKey)
{
return redisTemplate.opsForHash().delete(key, hKey) > 0;
}
/**
*
*
* @param pattern
* @return
*/
public Collection<String> keys(final String pattern)
{
return redisTemplate.keys(pattern);
}
}

View File

@ -127,7 +127,7 @@ public class FileUploadUtils
return fileName;
}
public static final File getAbsoluteFile(String uploadDir, String fileName) throws IOException
private static final File getAbsoluteFile(String uploadDir, String fileName) throws IOException
{
File desc = new File(uploadDir + File.separator + fileName);
@ -141,7 +141,7 @@ public class FileUploadUtils
return desc;
}
public static final String getPathFileName(String uploadDir, String fileName) throws IOException
private static final String getPathFileName(String uploadDir, String fileName) throws IOException
{
int dirLastIndex = RuoYiConfig.getProfile().length() + 1;
String currentDir = StringUtils.substring(uploadDir, dirLastIndex);

View File

@ -1,13 +1,15 @@
package com.ruoyi.common.utils.file;
import java.io.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.utils.DateUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.ArrayUtils;
import com.ruoyi.common.utils.StringUtils;
@ -75,56 +77,7 @@ public class FileUtils
}
}
}
/**
*
*
* @param photoByte
* @return
*/
public static String getFileExtendName(byte[] photoByte)
{
String strFileExtendName = "jpg";
if ((photoByte[0] == 71) && (photoByte[1] == 73) && (photoByte[2] == 70) && (photoByte[3] == 56)
&& ((photoByte[4] == 55) || (photoByte[4] == 57)) && (photoByte[5] == 97))
{
strFileExtendName = "gif";
}
else if ((photoByte[6] == 74) && (photoByte[7] == 70) && (photoByte[8] == 73) && (photoByte[9] == 70))
{
strFileExtendName = "jpg";
}
else if ((photoByte[0] == 66) && (photoByte[1] == 77))
{
strFileExtendName = "bmp";
}
else if ((photoByte[1] == 80) && (photoByte[2] == 78) && (photoByte[3] == 71))
{
strFileExtendName = "png";
}
return strFileExtendName;
}
public static String writeBytes(byte[] data, String uploadDir,String fileName) throws IOException
{
FileOutputStream fos = null;
String pathName = "";
try
{
String extension = getFileExtendName(data);
pathName = DateUtils.datePath() + "/" + fileName;
File file = FileUploadUtils.getAbsoluteFile(uploadDir, pathName);
if(file.exists()){
file.delete();
}
fos = new FileOutputStream(file);
fos.write(data);
}
finally
{
IOUtils.close(fos);
}
return FileUploadUtils.getPathFileName(uploadDir, pathName);
}
/**
*
*
@ -247,15 +200,4 @@ public class FileUtils
String encode = URLEncoder.encode(s, StandardCharsets.UTF_8.toString());
return encode.replaceAll("\\+", "%20");
}
public static String getName(String fileName) {
if (fileName == null)
{
return null;
}
int lastUnixPos = fileName.lastIndexOf('/');
int lastWindowsPos = fileName.lastIndexOf('\\');
int index = Math.max(lastUnixPos, lastWindowsPos);
return fileName.substring(index + 1);
}
}

View File

@ -1,7 +1,6 @@
package com.ruoyi.framework.config;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
@ -15,7 +14,6 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
@EnableAspectJAutoProxy(exposeProxy = true)
// 指定要扫描的Mapper类的包的路径
@MapperScan("com.ruoyi.**.mapper")
@MapperScan("com.yanzhu.**.mapper")
public class ApplicationConfig
{

View File

@ -39,7 +39,6 @@ public class MyBatisConfig
public static String setTypeAliasesPackage(String typeAliasesPackage)
{
System.out.println("----->"+typeAliasesPackage);
ResourcePatternResolver resolver = (ResourcePatternResolver) new PathMatchingResourcePatternResolver();
MetadataReaderFactory metadataReaderFactory = new CachingMetadataReaderFactory(resolver);
List<String> allResult = new ArrayList<String>();

View File

@ -36,18 +36,15 @@ public class ResourcesConfig implements WebMvcConfigurer
{
registry.addViewController("/").setViewName("forward:" + indexUrl);
}
@Value("${vue.path}")
private String vuePath;
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry)
{
System.out.println("--->vuePath:" + vuePath);
/** 本地文件上传路径 */
registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**").addResourceLocations("file:" + RuoYiConfig.getProfile() + "/");
/** swagger配置 */
registry.addResourceHandler("/swagger-ui/**").addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/");
registry.addResourceHandler("/yanzhuui/**").addResourceLocations(vuePath);
}
/**

View File

@ -348,7 +348,6 @@ public class ShiroConfig
private void loadShiroFilterChain(ShiroFilterFactoryBean shiroFilterFactoryBean)
{
Map<String, String> filterChainDefinitionMap = new LinkedHashMap<>();
//开放接口
filterChainDefinitionMap.put("/screen/**", "anon");
filterChainDefinitionMap.put("/profile/**", "anon");
@ -384,8 +383,6 @@ public class ShiroConfig
filterChainDefinitionMap.put("/components/**", "anon");
filterChainDefinitionMap.put("/js/**", "anon");
filterChainDefinitionMap.put("/css/**", "anon");
filterChainDefinitionMap.put("/yanzhuui/**", "anon");
filterChainDefinitionMap.put("/mklapi/**", "anon");
filterChainDefinitionMap.put("/images/**", "anon");
filterChainDefinitionMap.put("/fonts/**", "anon");
filterChainDefinitionMap.put("/fileimg.makalu.cc/**", "anon");
@ -398,7 +395,6 @@ public class ShiroConfig
filterChainDefinitionMap.put("/system/alterationEndorseConfig/**", "anon");
filterChainDefinitionMap.put("/mkl/api/queryEnvironment", "anon");
filterChainDefinitionMap.put("/mkl/api/getWaringIngBaseInfo", "anon");
filterChainDefinitionMap.put("/mklApi/towerCrane/v1/push", "anon");
filterChainDefinitionMap.put("/business/saftEducationOpenIdMap/**", "anon");
filterChainDefinitionMap.put("/system/checkDutyUser/**", "anon");
filterChainDefinitionMap.put("/system/saftcheckissue/**", "anon");

View File

@ -82,9 +82,4 @@ public class SysPasswordService
{
return new Md5Hash(loginName + password + salt).toHex();
}
public static void main(String[] args){
String data="xdadminadmin123c73d0c";
System.out.println(new Md5Hash(data).toHex());
}
}

View File

@ -1,36 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ruoyi</artifactId>
<groupId>com.ruoyi</groupId>
<version>4.6.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-yanzhu</artifactId>
<description>
system系统模块
</description>
<dependencies>
<!-- 通用工具-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common</artifactId>
</dependency>
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-system</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -1,119 +0,0 @@
package com.yanzhu.xd.system.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.xd.system.domain.SurProjectAttendanceCfg;
import com.yanzhu.xd.system.service.ISurProjectAttendanceCfgService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-10-25
*/
@Controller
@RequestMapping("/mklapi/system/attendanceCfg")
public class SurProjectAttendanceCfgController extends BaseController
{
private String prefix = "system/attendanceCfg";
@Autowired
private ISurProjectAttendanceCfgService surProjectAttendanceCfgService;
@GetMapping()
public String attendanceCfg()
{
return prefix + "/attendanceCfg";
}
@GetMapping("/findAttendanceCfgList")
@ResponseBody
public AjaxResult findAttendanceCfgList(SurProjectAttendanceCfg surProjectAttendanceCfg)
{
List<SurProjectAttendanceCfg> list = surProjectAttendanceCfgService.selectSurProjectAttendanceCfgList(surProjectAttendanceCfg);
return AjaxResult.success(list);
}
/**
*
*/
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(SurProjectAttendanceCfg surProjectAttendanceCfg)
{
startPage();
List<SurProjectAttendanceCfg> list = surProjectAttendanceCfgService.selectSurProjectAttendanceCfgList(surProjectAttendanceCfg);
return getDataTable(list);
}
@GetMapping(value = "/{id}")
@ResponseBody
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success (surProjectAttendanceCfgService.selectSurProjectAttendanceCfgById(id));
}
/**
*
*/
@Log(title = "考勤配置", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(SurProjectAttendanceCfg surProjectAttendanceCfg)
{
List<SurProjectAttendanceCfg> list = surProjectAttendanceCfgService.selectSurProjectAttendanceCfgList(surProjectAttendanceCfg);
ExcelUtil<SurProjectAttendanceCfg> util = new ExcelUtil<SurProjectAttendanceCfg>(SurProjectAttendanceCfg.class);
return util.exportExcel(list, "考勤配置数据");
}
/**
*
*/
@Log(title = "考勤配置", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(SurProjectAttendanceCfg surProjectAttendanceCfg)
{
return toAjax(surProjectAttendanceCfgService.insertSurProjectAttendanceCfg(surProjectAttendanceCfg));
}
/**
*
*/
@Log(title = "考勤配置", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(@RequestBody SurProjectAttendanceCfg surProjectAttendanceCfg)
{
return toAjax(surProjectAttendanceCfgService.updateSurProjectAttendanceCfg(surProjectAttendanceCfg));
}
/**
*
*/
@Log(title = "考勤配置", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(Long[] ids)
{
return toAjax(surProjectAttendanceCfgService.deleteSurProjectAttendanceCfgByIds(ids));
}
}

View File

@ -1,134 +0,0 @@
package com.yanzhu.xd.system.controller;
import java.util.List;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.xd.system.domain.SurProjectAttendanceData;
import com.yanzhu.xd.system.service.ISurProjectAttendanceDataService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-10-25
*/
@Controller
@RequestMapping("/mklapi/system/attendanceData")
public class SurProjectAttendanceDataController extends BaseController
{
private String prefix = "system/attendanceData";
@Autowired
private ISurProjectAttendanceDataService surProjectAttendanceDataService;
@GetMapping()
public String attendanceData()
{
return prefix + "/attendanceData";
}
@GetMapping("/listEx")
@ResponseBody
public TableDataInfo listEx(SurProjectAttendanceData surProjectAttendanceData)
{
startPage();
String tmp=surProjectAttendanceData.getAttendanceTime();
if(StrUtil.isNotEmpty(tmp)){
int year= DateUtil.parse(tmp).year();
surProjectAttendanceData.setYear(year);
}
List<SurProjectAttendanceData> list = surProjectAttendanceDataService.selectSurProjectAttendanceDataList(surProjectAttendanceData);
return getDataTable(list);
}
/**
*
*/
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(SurProjectAttendanceData surProjectAttendanceData)
{
startPage();
List<SurProjectAttendanceData> list = surProjectAttendanceDataService.selectSurProjectAttendanceDataList(surProjectAttendanceData);
return getDataTable(list);
}
/**
*
*/
@Log(title = "考勤数据", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(SurProjectAttendanceData surProjectAttendanceData)
{
List<SurProjectAttendanceData> list = surProjectAttendanceDataService.selectSurProjectAttendanceDataList(surProjectAttendanceData);
ExcelUtil<SurProjectAttendanceData> util = new ExcelUtil<SurProjectAttendanceData>(SurProjectAttendanceData.class);
return util.exportExcel(list, "考勤数据数据");
}
/**
*
*/
@Log(title = "考勤数据", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(SurProjectAttendanceData surProjectAttendanceData)
{
return toAjax(surProjectAttendanceDataService.insertSurProjectAttendanceData(surProjectAttendanceData));
}
/**
*
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
SurProjectAttendanceData surProjectAttendanceData = surProjectAttendanceDataService.selectSurProjectAttendanceDataById(id);
mmap.put("surProjectAttendanceData", surProjectAttendanceData);
return prefix + "/edit";
}
/**
*
*/
@Log(title = "考勤数据", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(SurProjectAttendanceData surProjectAttendanceData)
{
return toAjax(surProjectAttendanceDataService.updateSurProjectAttendanceData(surProjectAttendanceData));
}
/**
*
*/
@Log(title = "考勤数据", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(Long[] ids)
{
return toAjax(surProjectAttendanceDataService.deleteSurProjectAttendanceDataByIds(ids));
}
}

View File

@ -1,116 +0,0 @@
package com.yanzhu.xd.system.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.xd.system.domain.SurProjectAttendanceGroup;
import com.yanzhu.xd.system.service.ISurProjectAttendanceGroupService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-10-25
*/
@Controller
@RequestMapping("/mklapi/system/attendanceGroup")
public class SurProjectAttendanceGroupController extends BaseController
{
private String prefix = "system/attendanceGroup";
@Autowired
private ISurProjectAttendanceGroupService surProjectAttendanceGroupService;
@GetMapping()
public String attendanceGroup()
{
return prefix + "/attendanceGroup";
}
/**
*
*/
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(SurProjectAttendanceGroup surProjectAttendanceGroup)
{
startPage();
List<SurProjectAttendanceGroup> list = surProjectAttendanceGroupService.selectSurProjectAttendanceGroupList(surProjectAttendanceGroup);
return getDataTable(list);
}
/**
*
*/
@Log(title = "班组信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(SurProjectAttendanceGroup surProjectAttendanceGroup)
{
List<SurProjectAttendanceGroup> list = surProjectAttendanceGroupService.selectSurProjectAttendanceGroupList(surProjectAttendanceGroup);
ExcelUtil<SurProjectAttendanceGroup> util = new ExcelUtil<SurProjectAttendanceGroup>(SurProjectAttendanceGroup.class);
return util.exportExcel(list, "班组信息数据");
}
/**
*
*/
@Log(title = "班组信息", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(SurProjectAttendanceGroup surProjectAttendanceGroup)
{
return toAjax(surProjectAttendanceGroupService.insertSurProjectAttendanceGroup(surProjectAttendanceGroup));
}
/**
*
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
SurProjectAttendanceGroup surProjectAttendanceGroup = surProjectAttendanceGroupService.selectSurProjectAttendanceGroupById(id);
mmap.put("surProjectAttendanceGroup", surProjectAttendanceGroup);
return prefix + "/edit";
}
/**
*
*/
@Log(title = "班组信息", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(SurProjectAttendanceGroup surProjectAttendanceGroup)
{
return toAjax(surProjectAttendanceGroupService.updateSurProjectAttendanceGroup(surProjectAttendanceGroup));
}
/**
*
*/
@Log(title = "班组信息", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(Long[] ids)
{
return toAjax(surProjectAttendanceGroupService.deleteSurProjectAttendanceGroupByIds(ids));
}
}

View File

@ -1,133 +0,0 @@
package com.yanzhu.xd.system.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.xd.system.domain.SurProjectAttendanceUser;
import com.yanzhu.xd.system.service.ISurProjectAttendanceUserService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-10-25
*/
@Controller
@RequestMapping("/mklapi/system/attendanceUser")
public class SurProjectAttendanceUserController extends BaseController
{
private String prefix = "system/attendanceUser";
@Autowired
private ISurProjectAttendanceUserService surProjectAttendanceUserService;
@GetMapping()
public String attendanceUser()
{
return prefix + "/attendanceUser";
}
@GetMapping("/query")
@ResponseBody
public TableDataInfo query(SurProjectAttendanceUser surProjectAttendanceUser)
{
startPage();
List<SurProjectAttendanceUser> list = surProjectAttendanceUserService.querySurProjectAttendanceUserList(surProjectAttendanceUser);
return getDataTable(list);
}
@GetMapping("/listjgw")
@ResponseBody
public TableDataInfo listjgw(SurProjectAttendanceUser surProjectAttendanceUser)
{
startPage();
List<SurProjectAttendanceUser> list = surProjectAttendanceUserService.selectSurProjectAttendanceUserListJgw(surProjectAttendanceUser);
return getDataTable(list);
}
/**
*
*/
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(SurProjectAttendanceUser surProjectAttendanceUser)
{
startPage();
List<SurProjectAttendanceUser> list = surProjectAttendanceUserService.selectSurProjectAttendanceUserList(surProjectAttendanceUser);
return getDataTable(list);
}
/**
*
*/
@Log(title = "实名制人员", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(SurProjectAttendanceUser surProjectAttendanceUser)
{
List<SurProjectAttendanceUser> list = surProjectAttendanceUserService.selectSurProjectAttendanceUserList(surProjectAttendanceUser);
ExcelUtil<SurProjectAttendanceUser> util = new ExcelUtil<SurProjectAttendanceUser>(SurProjectAttendanceUser.class);
return util.exportExcel(list, "实名制人员数据");
}
/**
*
*/
@Log(title = "实名制人员", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(SurProjectAttendanceUser surProjectAttendanceUser)
{
return toAjax(surProjectAttendanceUserService.insertSurProjectAttendanceUser(surProjectAttendanceUser));
}
/**
*
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
SurProjectAttendanceUser surProjectAttendanceUser = surProjectAttendanceUserService.selectSurProjectAttendanceUserById(id);
mmap.put("surProjectAttendanceUser", surProjectAttendanceUser);
return prefix + "/edit";
}
/**
*
*/
@Log(title = "实名制人员", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(SurProjectAttendanceUser surProjectAttendanceUser)
{
return toAjax(surProjectAttendanceUserService.updateSurProjectAttendanceUser(surProjectAttendanceUser));
}
/**
*
*/
@Log(title = "实名制人员", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(Long[] ids)
{
return toAjax(surProjectAttendanceUserService.deleteSurProjectAttendanceUserByIds(ids));
}
}

View File

@ -1,117 +0,0 @@
package com.yanzhu.xd.system.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.yanzhu.xd.system.domain.SurProject;
import com.yanzhu.xd.system.service.ISurProjectService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2024-10-25
*/
@Controller
@RequestMapping("/mklapi/system/project")
public class SurProjectController extends BaseController
{
private String prefix = "system/yzProject";
@Autowired
private ISurProjectService surProjectService;
@GetMapping()
public String yzProject()
{
return prefix + "/yzProject";
}
/**
*
*/
@GetMapping("/list")
@ResponseBody
public TableDataInfo list(SurProject surProject)
{
startPage();
List<SurProject> list = surProjectService.selectSurProjectList(surProject);
return getDataTable(list);
}
/**
*
*/
@Log(title = "项目", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(SurProject surProject)
{
List<SurProject> list = surProjectService.selectSurProjectList(surProject);
ExcelUtil<SurProject> util = new ExcelUtil<SurProject>(SurProject.class);
return util.exportExcel(list, "项目数据");
}
/**
*
*/
@Log(title = "项目", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(SurProject surProject)
{
return toAjax(surProjectService.insertSurProject(surProject));
}
/**
*
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
SurProject surProject = surProjectService.selectSurProjectById(id);
mmap.put("surProject", surProject);
return prefix + "/edit";
}
/**
*
*/
@Log(title = "项目", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(SurProject surProject)
{
return toAjax(surProjectService.updateSurProject(surProject));
}
/**
*
*/
@Log(title = "项目", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(surProjectService.deleteSurProjectByIds(ids));
}
}

View File

@ -1,37 +0,0 @@
package com.yanzhu.xd.system.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.system.service.ISysDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
/**
*
*
* @author ruoyi
*/
@Controller
@RequestMapping("/mklapi/system/dict/data")
public class SurSysDictDataController extends BaseController
{
@Autowired
private ISysDictDataService dictDataService;
@GetMapping("/type/{dictType}")
@ResponseBody
public AjaxResult getDictype(@PathVariable("dictType") String dictType)
{
SysDictData where=new SysDictData();
where.setDictType(dictType);
return AjaxResult.success( dictDataService.selectDictDataList(where));
}
}

View File

@ -1,315 +0,0 @@
package com.yanzhu.xd.system.domain;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* dev_tower_project_config
*
* @author JiangYuQi
* @date 2024-08-04
*/
public class DevTowerProjectConfig extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 项目主键 */
private Long projectId;
/** 项目名称 */
@Excel(name = "项目名称")
private String projectName;
/** 设备序列号 */
@Excel(name = "设备序列号")
private String deviceSn;
/** 设备名称 */
@Excel(name = "设备名称")
private String deviceName;
/** 设备来源 */
@Excel(name = "设备来源")
private String deviceSource;
/** 塔机编号 */
@Excel(name = "塔机编号")
private String towerId;
/** 塔机类型 */
@Excel(name = "塔机类型")
private String towerType;
/** 塔机坐标x */
@Excel(name = "塔机坐标x")
private String coordinateX;
/** 塔机坐标y */
@Excel(name = "塔机坐标y")
private String coordinateY;
/** 前臂长度 */
@Excel(name = "前臂长度")
private String frontBrachium;
/** 平衡臂长度 */
@Excel(name = "平衡臂长度")
private String afterBrachium;
/** 塔身高度 */
@Excel(name = "塔身高度")
private String towerBodyHeight;
/** 塔帽高度 */
@Excel(name = "塔帽高度")
private String towerCapHeight;
/** 塔节高度 */
@Excel(name = "塔节高度")
private String towerSectionHeight;
/** 设备状态 */
@Excel(name = "设备状态")
private String online;
/** 司机名称 */
@Excel(name = "司机名称")
private String driName;
/** 司机电话 */
@Excel(name = "司机电话")
private String driPhone;
/** 安全员名称 */
@Excel(name = "安全员名称")
private String safName;
/** 安全员电话 */
@Excel(name = "安全员电话")
private String safPhone;
/** 是否有效 */
@Excel(name = "是否有效")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setProjectId(Long projectId)
{
this.projectId = projectId;
}
public Long getProjectId()
{
return projectId;
}
public void setDeviceSn(String deviceSn)
{
this.deviceSn = deviceSn;
}
public String getDeviceSn()
{
return deviceSn;
}
public String getDeviceName() {
return deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public void setDeviceSource(String deviceSource)
{
this.deviceSource = deviceSource;
}
public String getDeviceSource()
{
return deviceSource;
}
public String getTowerId() {
return towerId;
}
public void setTowerId(String towerId) {
this.towerId = towerId;
}
public void setTowerType(String towerType)
{
this.towerType = towerType;
}
public String getTowerType()
{
return towerType;
}
public void setCoordinateX(String coordinateX)
{
this.coordinateX = coordinateX;
}
public String getCoordinateX()
{
return coordinateX;
}
public void setCoordinateY(String coordinateY)
{
this.coordinateY = coordinateY;
}
public String getCoordinateY()
{
return coordinateY;
}
public void setFrontBrachium(String frontBrachium)
{
this.frontBrachium = frontBrachium;
}
public String getFrontBrachium()
{
return frontBrachium;
}
public void setAfterBrachium(String afterBrachium)
{
this.afterBrachium = afterBrachium;
}
public String getAfterBrachium()
{
return afterBrachium;
}
public void setTowerBodyHeight(String towerBodyHeight)
{
this.towerBodyHeight = towerBodyHeight;
}
public String getTowerBodyHeight()
{
return towerBodyHeight;
}
public void setTowerCapHeight(String towerCapHeight)
{
this.towerCapHeight = towerCapHeight;
}
public String getTowerCapHeight()
{
return towerCapHeight;
}
public void setTowerSectionHeight(String towerSectionHeight)
{
this.towerSectionHeight = towerSectionHeight;
}
public String getTowerSectionHeight()
{
return towerSectionHeight;
}
public String getOnline() {
return online;
}
public void setOnline(String online) {
this.online = online;
}
public String getDriName() {
return driName;
}
public void setDriName(String driName) {
this.driName = driName;
}
public String getDriPhone() {
return driPhone;
}
public void setDriPhone(String driPhone) {
this.driPhone = driPhone;
}
public String getSafName() {
return safName;
}
public void setSafName(String safName) {
this.safName = safName;
}
public String getSafPhone() {
return safPhone;
}
public void setSafPhone(String safPhone) {
this.safPhone = safPhone;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
public String getProjectName() {
return projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("projectId", getProjectId())
.append("deviceSn", getDeviceSn())
.append("deviceName", getDeviceName())
.append("deviceSource", getDeviceSource())
.append("towerType", getTowerType())
.append("coordinateX", getCoordinateX())
.append("coordinateY", getCoordinateY())
.append("frontBrachium", getFrontBrachium())
.append("afterBrachium", getAfterBrachium())
.append("towerBodyHeight", getTowerBodyHeight())
.append("towerCapHeight", getTowerCapHeight())
.append("towerSectionHeight", getTowerSectionHeight())
.append("online", getOnline())
.append("driName", getDriName())
.append("driPhone", getDriPhone())
.append("safName", getSafName())
.append("safPhone", getSafPhone())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

View File

@ -1,602 +0,0 @@
package com.yanzhu.xd.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* sur_project
*
* @author ruoyi
* @date 2024-10-25
*/
public class SurProject extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 所属单位 */
@Excel(name = "所属单位")
private Long deptId;
/** 项目名称 */
@Excel(name = "项目名称")
private String projectName;
/** 项目编号 */
@Excel(name = "项目编号")
private String projectCode;
/** 父级项目名称 */
@Excel(name = "父级项目名称")
private String paretProjectName;
/** 父级项目编号 */
@Excel(name = "父级项目编号")
private String paretProjectCode;
/** 项目简称 */
@Excel(name = "项目简称")
private String simpleName;
/** 项目类型 */
@Excel(name = "项目类型")
private String projectType;
/** 项目等级 */
@Excel(name = "项目等级")
private String projiectLevel;
/** 项目区县 */
@Excel(name = "项目区县")
private String projectRegional;
/** 项目地址 */
@Excel(name = "项目地址")
private String projectAddress;
/** 项目建设属性 */
@Excel(name = "项目建设属性")
private String projectNature;
/** 许可证号 */
@Excel(name = "许可证号")
private String licenceNumber;
/** 立项批文 */
@Excel(name = "立项批文")
private String projectApproval;
/** 项目负责人 */
@Excel(name = "项目负责人")
private String projectPerson;
/** 负责人电话 */
@Excel(name = "负责人电话")
private String projectPhone;
/** 经度 */
@Excel(name = "经度")
private String longitude;
/** 纬度 */
@Excel(name = "纬度")
private String latitude;
/** 项目工期 */
@Excel(name = "项目工期")
private Long projectTimeLimit;
/** 总投资 */
@Excel(name = "总投资")
private String totalInvestment;
/** 建筑面积 */
@Excel(name = "建筑面积")
private String floorArea;
/** 开累产值 */
@Excel(name = "开累产值")
private String totalOutputValue;
/** 计划完工时间 */
@Excel(name = "计划完工时间")
private String plannedCompletionTime;
/** 计划开始时间 */
@Excel(name = "计划开始时间")
private String scheduledStartTime;
/** 实际开始时间 */
@Excel(name = "实际开始时间")
private String actualOperatingTime;
/** 实际完工时间 */
@Excel(name = "实际完工时间")
private String actualCompletionTime;
/** 合同总金额 */
@Excel(name = "合同总金额")
private String contractAmount;
/** 已支付金额 */
@Excel(name = "已支付金额")
private String paidAmount;
/** 挂账金额 */
@Excel(name = "挂账金额")
private String onAccountAmount;
/** 项目进度 */
@Excel(name = "项目进度")
private String projectSchedule;
/** 项目概述 */
@Excel(name = "项目概述")
private String projectSummarize;
/** 基坑平面图 */
@Excel(name = "基坑平面图")
private String prjPlanUrl;
/** 效果图 */
@Excel(name = "效果图")
private String prjRenderingUrl;
/** 删除标识 */
@Excel(name = "删除标识")
private Long isDel;
/** 项目状态 */
@Excel(name = "项目状态")
private String projectStatus;
/** 劳务人员数 */
@Excel(name = "劳务人员数")
private Long servicePersonnel;
/** 监理人员数 */
@Excel(name = "监理人员数")
private Long supervisorPersonnel;
/** 总包人员数 */
@Excel(name = "总包人员数")
private Long generalContractor;
/** 重要级别 */
@Excel(name = "重要级别")
private String weightType;
/** 项目排序 */
@Excel(name = "项目排序")
private Long projectSort;
/** 进度显示(大屏使用) */
@Excel(name = "进度显示", readConverterExp = "大=屏使用")
private String progressVisible;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
public void setProjectName(String projectName)
{
this.projectName = projectName;
}
public String getProjectName()
{
return projectName;
}
public void setProjectCode(String projectCode)
{
this.projectCode = projectCode;
}
public String getProjectCode()
{
return projectCode;
}
public void setParetProjectName(String paretProjectName)
{
this.paretProjectName = paretProjectName;
}
public String getParetProjectName()
{
return paretProjectName;
}
public void setParetProjectCode(String paretProjectCode)
{
this.paretProjectCode = paretProjectCode;
}
public String getParetProjectCode()
{
return paretProjectCode;
}
public void setSimpleName(String simpleName)
{
this.simpleName = simpleName;
}
public String getSimpleName()
{
return simpleName;
}
public void setProjectType(String projectType)
{
this.projectType = projectType;
}
public String getProjectType()
{
return projectType;
}
public void setProjiectLevel(String projiectLevel)
{
this.projiectLevel = projiectLevel;
}
public String getProjiectLevel()
{
return projiectLevel;
}
public void setProjectRegional(String projectRegional)
{
this.projectRegional = projectRegional;
}
public String getProjectRegional()
{
return projectRegional;
}
public void setProjectAddress(String projectAddress)
{
this.projectAddress = projectAddress;
}
public String getProjectAddress()
{
return projectAddress;
}
public void setProjectNature(String projectNature)
{
this.projectNature = projectNature;
}
public String getProjectNature()
{
return projectNature;
}
public void setLicenceNumber(String licenceNumber)
{
this.licenceNumber = licenceNumber;
}
public String getLicenceNumber()
{
return licenceNumber;
}
public void setProjectApproval(String projectApproval)
{
this.projectApproval = projectApproval;
}
public String getProjectApproval()
{
return projectApproval;
}
public void setProjectPerson(String projectPerson)
{
this.projectPerson = projectPerson;
}
public String getProjectPerson()
{
return projectPerson;
}
public void setProjectPhone(String projectPhone)
{
this.projectPhone = projectPhone;
}
public String getProjectPhone()
{
return projectPhone;
}
public void setLongitude(String longitude)
{
this.longitude = longitude;
}
public String getLongitude()
{
return longitude;
}
public void setLatitude(String latitude)
{
this.latitude = latitude;
}
public String getLatitude()
{
return latitude;
}
public void setProjectTimeLimit(Long projectTimeLimit)
{
this.projectTimeLimit = projectTimeLimit;
}
public Long getProjectTimeLimit()
{
return projectTimeLimit;
}
public void setTotalInvestment(String totalInvestment)
{
this.totalInvestment = totalInvestment;
}
public String getTotalInvestment()
{
return totalInvestment;
}
public void setFloorArea(String floorArea)
{
this.floorArea = floorArea;
}
public String getFloorArea()
{
return floorArea;
}
public void setTotalOutputValue(String totalOutputValue)
{
this.totalOutputValue = totalOutputValue;
}
public String getTotalOutputValue()
{
return totalOutputValue;
}
public void setPlannedCompletionTime(String plannedCompletionTime)
{
this.plannedCompletionTime = plannedCompletionTime;
}
public String getPlannedCompletionTime()
{
return plannedCompletionTime;
}
public void setScheduledStartTime(String scheduledStartTime)
{
this.scheduledStartTime = scheduledStartTime;
}
public String getScheduledStartTime()
{
return scheduledStartTime;
}
public void setActualOperatingTime(String actualOperatingTime)
{
this.actualOperatingTime = actualOperatingTime;
}
public String getActualOperatingTime()
{
return actualOperatingTime;
}
public void setActualCompletionTime(String actualCompletionTime)
{
this.actualCompletionTime = actualCompletionTime;
}
public String getActualCompletionTime()
{
return actualCompletionTime;
}
public void setContractAmount(String contractAmount)
{
this.contractAmount = contractAmount;
}
public String getContractAmount()
{
return contractAmount;
}
public void setPaidAmount(String paidAmount)
{
this.paidAmount = paidAmount;
}
public String getPaidAmount()
{
return paidAmount;
}
public void setOnAccountAmount(String onAccountAmount)
{
this.onAccountAmount = onAccountAmount;
}
public String getOnAccountAmount()
{
return onAccountAmount;
}
public void setProjectSchedule(String projectSchedule)
{
this.projectSchedule = projectSchedule;
}
public String getProjectSchedule()
{
return projectSchedule;
}
public void setProjectSummarize(String projectSummarize)
{
this.projectSummarize = projectSummarize;
}
public String getProjectSummarize()
{
return projectSummarize;
}
public void setPrjPlanUrl(String prjPlanUrl)
{
this.prjPlanUrl = prjPlanUrl;
}
public String getPrjPlanUrl()
{
return prjPlanUrl;
}
public void setPrjRenderingUrl(String prjRenderingUrl)
{
this.prjRenderingUrl = prjRenderingUrl;
}
public String getPrjRenderingUrl()
{
return prjRenderingUrl;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
public void setProjectStatus(String projectStatus)
{
this.projectStatus = projectStatus;
}
public String getProjectStatus()
{
return projectStatus;
}
public void setServicePersonnel(Long servicePersonnel)
{
this.servicePersonnel = servicePersonnel;
}
public Long getServicePersonnel()
{
return servicePersonnel;
}
public void setSupervisorPersonnel(Long supervisorPersonnel)
{
this.supervisorPersonnel = supervisorPersonnel;
}
public Long getSupervisorPersonnel()
{
return supervisorPersonnel;
}
public void setGeneralContractor(Long generalContractor)
{
this.generalContractor = generalContractor;
}
public Long getGeneralContractor()
{
return generalContractor;
}
public void setWeightType(String weightType)
{
this.weightType = weightType;
}
public String getWeightType()
{
return weightType;
}
public void setProjectSort(Long projectSort)
{
this.projectSort = projectSort;
}
public Long getProjectSort()
{
return projectSort;
}
public void setProgressVisible(String progressVisible)
{
this.progressVisible = progressVisible;
}
public String getProgressVisible()
{
return progressVisible;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("deptId", getDeptId())
.append("projectName", getProjectName())
.append("projectCode", getProjectCode())
.append("paretProjectName", getParetProjectName())
.append("paretProjectCode", getParetProjectCode())
.append("simpleName", getSimpleName())
.append("projectType", getProjectType())
.append("projiectLevel", getProjiectLevel())
.append("projectRegional", getProjectRegional())
.append("projectAddress", getProjectAddress())
.append("projectNature", getProjectNature())
.append("licenceNumber", getLicenceNumber())
.append("projectApproval", getProjectApproval())
.append("projectPerson", getProjectPerson())
.append("projectPhone", getProjectPhone())
.append("longitude", getLongitude())
.append("latitude", getLatitude())
.append("projectTimeLimit", getProjectTimeLimit())
.append("totalInvestment", getTotalInvestment())
.append("floorArea", getFloorArea())
.append("totalOutputValue", getTotalOutputValue())
.append("plannedCompletionTime", getPlannedCompletionTime())
.append("scheduledStartTime", getScheduledStartTime())
.append("actualOperatingTime", getActualOperatingTime())
.append("actualCompletionTime", getActualCompletionTime())
.append("contractAmount", getContractAmount())
.append("paidAmount", getPaidAmount())
.append("onAccountAmount", getOnAccountAmount())
.append("projectSchedule", getProjectSchedule())
.append("projectSummarize", getProjectSummarize())
.append("prjPlanUrl", getPrjPlanUrl())
.append("prjRenderingUrl", getPrjRenderingUrl())
.append("isDel", getIsDel())
.append("projectStatus", getProjectStatus())
.append("servicePersonnel", getServicePersonnel())
.append("supervisorPersonnel", getSupervisorPersonnel())
.append("generalContractor", getGeneralContractor())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("weightType", getWeightType())
.append("projectSort", getProjectSort())
.append("progressVisible", getProgressVisible())
.toString();
}
}

View File

@ -1,181 +0,0 @@
package com.yanzhu.xd.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* sur_project_attendance_cfg
*
* @author ruoyi
* @date 2024-10-25
*/
public class SurProjectAttendanceCfg extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 项目编号 */
@Excel(name = "项目编号")
private Long projectId;
/** 总包单位 */
@Excel(name = "总包单位")
private Long subDeptId;
/** 厂商编号参考字典attendance_vendors */
@Excel(name = "厂商编号参考字典attendance_vendors")
private String vendorsCode;
/** 厂商参数 */
@Excel(name = "厂商参数")
private String vendorsParameter;
/** 1-启用,0-停用 */
@Excel(name = "1-启用,0-停用")
private Long enabled;
/** 状态 */
@Excel(name = "状态")
private Long state;
private String deptName;
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
private String projectName;
private String unitName;
private String vendorName;
public String getVendorName() {
return vendorName;
}
public void setVendorName(String vendorName) {
this.vendorName = vendorName;
}
public String getProjectName() {
return projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
}
public String getUnitName() {
return unitName;
}
public void setUnitName(String unitName) {
this.unitName = unitName;
}
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setProjectId(Long projectId)
{
this.projectId = projectId;
}
public Long getProjectId()
{
return projectId;
}
public void setSubDeptId(Long subDeptId)
{
this.subDeptId = subDeptId;
}
public Long getSubDeptId()
{
return subDeptId;
}
public void setVendorsCode(String vendorsCode)
{
this.vendorsCode = vendorsCode;
}
public String getVendorsCode()
{
return vendorsCode;
}
public void setVendorsParameter(String vendorsParameter)
{
this.vendorsParameter = vendorsParameter;
}
public String getVendorsParameter()
{
return vendorsParameter;
}
public void setEnabled(Long enabled)
{
this.enabled = enabled;
}
public Long getEnabled()
{
return enabled;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("projectId", getProjectId())
.append("subDeptId", getSubDeptId())
.append("vendorsCode", getVendorsCode())
.append("vendorsParameter", getVendorsParameter())
.append("enabled", getEnabled())
.append("state", getState())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -1,512 +0,0 @@
package com.yanzhu.xd.system.domain;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson2.JSONObject;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* sur_project_attendance_data
*
* @author ruoyi
* @date 2024-10-25
*/
public class SurProjectAttendanceData extends BaseEntity
{
public SurProjectAttendanceData(){
this.year= DateTime.now().year();
}
private static final long serialVersionUID = 1L;
private int year;
public int getYear() {
return year;
}
public void setYear(int year) {
this.year = year;
}
public String getProjectName() {
return projectName;
}
public void setProjectName(String projectName) {
this.projectName = projectName;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
public String getWorkerName() {
return workerName;
}
public void setWorkerName(String workerName) {
this.workerName = workerName;
}
public String getWorkerPhoto() {
return workerPhoto;
}
public void setWorkerPhoto(String workerPhoto) {
this.workerPhoto = workerPhoto;
}
public Long getWorkerGender() {
return workerGender;
}
public void setWorkerGender(Long workerGender) {
this.workerGender = workerGender;
}
public Long getBirthDate() {
return birthDate;
}
public void setBirthDate(Long birthDate) {
this.birthDate = birthDate;
}
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public String getWorkTypeName() {
return workTypeName;
}
public void setWorkTypeName(String workTypeName) {
this.workTypeName = workTypeName;
}
public String getEthnic() {
return ethnic;
}
public void setEthnic(String ethnic) {
this.ethnic = ethnic;
}
public String getNativePlace() {
return nativePlace;
}
public void setNativePlace(String nativePlace) {
this.nativePlace = nativePlace;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public Integer getSpecWorkType() {
return specWorkType;
}
public void setSpecWorkType(Integer specWorkType) {
this.specWorkType = specWorkType;
}
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public String getAttendanceOutTime() {
return attendanceOutTime;
}
public void setAttendanceOutTime(String attendanceOutTime) {
this.attendanceOutTime = attendanceOutTime;
}
private Long projectId;
@Excel(name = "项目名称")
private String projectName;
private Long deptId;
@Excel(name = "部门名称")
private String deptName;
@Excel(name = "姓名")
private String workerName;
private String workerPhoto;
@Excel(name = "性别0:男 1:女")
private Long workerGender;
private Long birthDate;
@Excel(name = "所属班组")
private String groupName;
@Excel(name = "工种")
private String workTypeName;
@Excel(name = "民族")
private String ethnic;
@Excel(name = "籍贯")
private String nativePlace;
@Excel(name = "联系电话")
private String phone;
@Excel(name = "是否特殊工种")
private Integer specWorkType;
private String companyTypeId;
@Excel(name = "分包商名称")
private String companyName;
private String workerId;
/** 考勤时间yyyy-MM-dd HH:mm:ss */
@Excel(name = "考勤时间(进场)")
private String attendanceTime;
@Excel(name = "考勤时间(离开)")
private String attendanceOutTime;
/** 身份证号 */
@Excel(name = "身份证号")
private String identification;
/** */
private Long id;
/** 配置项ID,可以获取项目ID和总包ID */
private Long cfgid;
/** 注册应用ID */
private String appId;
/** 厂商编号参考字典attendance_vendors */
private String vendorsCode;
/** 服务端ID */
private String serverid;
/** 队伍id */
private Long teamId;
/** 工种编码 */
private String workTypeCode;
/** 分包商id */
private String companyId;
/** 平台对应分包商ID */
private Long vendorId;
/** 设备编号 */
private String deviceCode;
/** 照片 */
private String scanPhoto;
/** */
private Long isDel;
private Long subDeptId;
/** 重要::yanzhu接口接收base64图片 */
private String scanPhotoBase64;
/** 重要::yanzhu出门进门逻辑判断 */
private String attendanceType;
public String getScanPhotoBase64() {
return scanPhotoBase64;
}
public void setScanPhotoBase64(String scanPhotoBase64) {
this.scanPhotoBase64 = scanPhotoBase64;
}
public String getAttendanceType() {
return attendanceType;
}
public void setAttendanceType(String attendanceType) {
this.attendanceType = attendanceType;
}
public static SurProjectAttendanceData createFromHuazhu(JSONObject j) {
SurProjectAttendanceData d=new SurProjectAttendanceData();
d.vendorsCode="huazhu";
d.serverid=j.getString("id");
d.workerId=j.getString("labourWorkerId");
long recordTime=j.getLongValue("recordTime",0);
if(recordTime>0){
if(j.getIntValue("inOrOut",1)==1){
d.setRemark("E");
}else{
d.setRemark("L");
}
d.attendanceTime= DateUtil.format(DateUtil.date(recordTime),"yyyy-MM-dd HH:mm:ss");
}
d.identification=j.getString("idCardNo");
d.teamId=j.getLongValue("teamId",0);
d.workTypeCode=j.getString("workerTypeId");
d.companyId=j.getString("unitId");
d.deviceCode=j.getString("deviceNo");
return d;
}
public static SurProjectAttendanceData createFromJgw(JSONObject j) {
SurProjectAttendanceData d=new SurProjectAttendanceData();
d.vendorsCode="jgw";
d.serverid=j.getString("id");
d.workerId=j.getString("workerId");
if("2".equals(j.getString("machineType"))){
d.setRemark("E");
}else{
d.setRemark("L");
}
d.attendanceTime = j.getString("checkinTime");
d.teamId=0l;
d.workTypeCode="";
d.companyId=j.getString("subcontractorId");
d.deviceCode=j.getString("deviceSerialNo");
d.isDel=0l;
return d;
}
public Long getDeptId() {
return deptId;
}
public void setDeptId(Long deptId) {
this.deptId = deptId;
}
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getSubDeptId() {
return subDeptId;
}
public void setSubDeptId(Long subDeptId) {
this.subDeptId = subDeptId;
}
public String getCompanyTypeId() {
return companyTypeId;
}
public void setCompanyTypeId(String companyTypeId) {
this.companyTypeId = companyTypeId;
}
public static SurProjectAttendanceData create(JSONObject json) {
SurProjectAttendanceData d=new SurProjectAttendanceData();
d.attendanceTime=json.getString("time");
if("E".equals(json.getString("type"))){
d.setRemark("E");
}else{
d.setRemark("L");
}
d.serverid=json.getString("id");
d.workerId=json.getString("workerId");
d.identification=json.getString("identification");
d.teamId=json.getLong("teamId");
d.workTypeCode=json.getString("workerTypeId");
d.companyId=json.getString("companyId");
d.vendorId=json.getLong("vendorId");
d.deviceCode=json.getString("deviceCode");
d.scanPhoto=json.getString("scanPhoto");
d.isDel=0l;
return d;
}
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgid(Long cfgid)
{
this.cfgid = cfgid;
}
public Long getCfgid()
{
return cfgid;
}
public void setVendorsCode(String vendorsCode)
{
this.vendorsCode = vendorsCode;
}
public String getVendorsCode()
{
return vendorsCode;
}
public void setServerid(String serverid)
{
this.serverid = serverid;
}
public String getServerid()
{
return serverid;
}
public void setWorkerId(String workerId)
{
this.workerId = workerId;
}
public String getWorkerId()
{
return workerId;
}
public void setAttendanceTime(String attendanceTime)
{
this.attendanceTime = attendanceTime;
}
public String getAttendanceTime()
{
return attendanceTime;
}
public void setIdentification(String identification)
{
this.identification = identification;
}
public String getIdentification()
{
return identification;
}
public void setTeamId(Long teamId)
{
this.teamId = teamId;
}
public Long getTeamId()
{
return teamId;
}
public void setWorkTypeCode(String workTypeCode)
{
this.workTypeCode = workTypeCode;
}
public String getWorkTypeCode()
{
return workTypeCode;
}
public void setCompanyId(String companyId)
{
this.companyId = companyId;
}
public String getCompanyId()
{
return companyId;
}
public void setVendorId(Long vendorId)
{
this.vendorId = vendorId;
}
public Long getVendorId()
{
return vendorId;
}
public void setDeviceCode(String deviceCode)
{
this.deviceCode = deviceCode;
}
public String getDeviceCode()
{
return deviceCode;
}
public void setScanPhoto(String scanPhoto)
{
this.scanPhoto = scanPhoto;
}
public String getScanPhoto()
{
return scanPhoto;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgid", getCfgid())
.append("vendorsCode", getVendorsCode())
.append("serverid", getServerid())
.append("workerId", getWorkerId())
.append("attendanceTime", getAttendanceTime())
.append("identification", getIdentification())
.append("teamId", getTeamId())
.append("workTypeCode", getWorkTypeCode())
.append("companyId", getCompanyId())
.append("vendorId", getVendorId())
.append("deviceCode", getDeviceCode())
.append("scanPhoto", getScanPhoto())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -1,430 +0,0 @@
package com.yanzhu.xd.system.domain;
import com.alibaba.fastjson2.JSONObject;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* sur_project_attendance_group
*
* @author ruoyi
* @date 2024-10-25
*/
public class SurProjectAttendanceGroup extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** cfgid */
@Excel(name = "cfgid")
private Long cfgid;
/** 注册应用ID */
@Excel(name = "注册应用ID")
private String appId;
/** 服务器主键id */
@Excel(name = "服务器主键id")
private String serverid;
/** 营业执照号 */
@Excel(name = "营业执照号")
private String bizLicense;
/** 分包商统一社会信用代码 */
@Excel(name = "分包商统一社会信用代码")
private String companyCode;
/** 分包商ID */
@Excel(name = "分包商ID")
private String companyId;
/** 分包商名称 */
@Excel(name = "分包商名称")
private String companyName;
/** 分包商类型 */
@Excel(name = "分包商类型")
private String companyTypeId;
/** 平台对应分包商ID */
@Excel(name = "平台对应分包商ID")
private Long vendorId;
/** 班组名称 */
@Excel(name = "班组名称")
private String name;
/** 班组长名称 */
@Excel(name = "班组长名称")
private String leaderName;
/** 班组长电话 */
@Excel(name = "班组长电话")
private String leaderPhone;
/** 队伍Id */
@Excel(name = "队伍Id")
private Long teamId;
/** 队伍名称 */
@Excel(name = "队伍名称")
private String teamName;
/** 班组类型0:建筑工人班组;1:管理人员班组 */
@Excel(name = "班组类型0:建筑工人班组;1:管理人员班组")
private Long type;
/** 班组长对应的工人ID */
@Excel(name = "班组长对应的工人ID")
private Long leaderId;
/** 是否删除 */
@Excel(name = "是否删除")
private Integer deleted;
/** 基础平台对应班组ID */
@Excel(name = "基础平台对应班组ID")
private Long platformGroupId;
/** 基础平台对应队伍ID */
@Excel(name = "基础平台对应队伍ID")
private Long platformTeamId;
/** 企业进场日期 */
@Excel(name = "企业进场日期")
private Long enterDate;
/** 企业退场日期 */
@Excel(name = "企业退场日期")
private Long exitDate;
/** 是否有效 */
@Excel(name = "是否有效")
private Long isDel;
/** 时间戳 */
@Excel(name = "时间戳")
private Long createTimestamp;
public static SurProjectAttendanceGroup createHuazhu(JSONObject j) {
SurProjectAttendanceGroup g=new SurProjectAttendanceGroup();
g.companyId=""+j.getLongValue("unitId",0);
g.companyName=j.getString("unitName");
g.companyTypeId=j.getString("unitType");
g.serverid=j.getString("id");
g.enterDate=j.getLong("enterTime");
g.exitDate=j.getLong("leaveTime");
g.isDel=0l;
return g;
}
public static SurProjectAttendanceGroup createJgw(JSONObject j, boolean isDirectlyUnder) {
SurProjectAttendanceGroup g=new SurProjectAttendanceGroup();
g.serverid=j.getString("id");
if(isDirectlyUnder) {
g.companyId = j.getString("leaderTeamId");
g.leaderName=j.getString("subcontractorId");
g.leaderPhone="directly";
}else{
g.companyId=j.getString("subcontractorId");
}
g.companyName=j.getString("corpName");
g.teamName=j.getString("teamName");
g.bizLicense=j.getString("corpCode");
g.companyCode=j.getString("teamJobtype");
g.companyTypeId="0";
g.enterDate=0l;
g.exitDate=0l;
g.isDel=0l;
return g;
}
public Long getCreateTimestamp() {
return createTimestamp;
}
public void setCreateTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
}
public static SurProjectAttendanceGroup create(JSONObject json) {
SurProjectAttendanceGroup g=new SurProjectAttendanceGroup();
g.serverid=json.getString("id");
g.bizLicense=json.getString("bizLicense");
g.companyCode=json.getString("companyCode");
g.companyId=""+json.getLongValue("companyId",0);
g.companyName=json.getString("companyName");
String typeId=json.getString("companyTypeId");
if("1".equals(typeId)||"8".equals(typeId)||"9".equals(typeId)){
typeId=typeId;
}else{
typeId="2";
}
g.companyTypeId=typeId;
g.vendorId=json.getLongValue("vendorId",0);
g.name=json.getString("name");
g.leaderName=json.getString("leaderName");
g.leaderPhone=json.getString("leaderPhone");
g.teamId=json.getLongValue("teamId",0);
g.teamName=json.getString("teamName");
g.type=json.getLongValue("type",0);
g.leaderId=json.getLongValue("leaderId",0);
g.deleted=json.get("deleted")==null?0:(json.getBoolean("deleted")?1:0);
g.platformGroupId=json.getLongValue("platformGroupId",0);
g.platformTeamId=json.getLongValue("platformTeamId",0);
g.enterDate=json.getLongValue("enterDate",0);
g.exitDate=json.getLongValue("exitDate",0);
g.isDel=0l;
return g;
}
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgid(Long cfgid)
{
this.cfgid = cfgid;
}
public Long getCfgid()
{
return cfgid;
}
public void setServerid(String serverid)
{
this.serverid = serverid;
}
public String getServerid()
{
return serverid;
}
public void setBizLicense(String bizLicense)
{
this.bizLicense = bizLicense;
}
public String getBizLicense()
{
return bizLicense;
}
public void setCompanyCode(String companyCode)
{
this.companyCode = companyCode;
}
public String getCompanyCode()
{
return companyCode;
}
public void setCompanyId(String companyId)
{
this.companyId = companyId;
}
public String getCompanyId()
{
return companyId;
}
public void setCompanyName(String companyName)
{
this.companyName = companyName;
}
public String getCompanyName()
{
return companyName;
}
public void setCompanyTypeId(String companyTypeId)
{
this.companyTypeId = companyTypeId;
}
public String getCompanyTypeId()
{
return companyTypeId;
}
public void setVendorId(Long vendorId)
{
this.vendorId = vendorId;
}
public Long getVendorId()
{
return vendorId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setLeaderName(String leaderName)
{
this.leaderName = leaderName;
}
public String getLeaderName()
{
return leaderName;
}
public void setLeaderPhone(String leaderPhone)
{
this.leaderPhone = leaderPhone;
}
public String getLeaderPhone()
{
return leaderPhone;
}
public void setTeamId(Long teamId)
{
this.teamId = teamId;
}
public Long getTeamId()
{
return teamId;
}
public void setTeamName(String teamName)
{
this.teamName = teamName;
}
public String getTeamName()
{
return teamName;
}
public void setType(Long type)
{
this.type = type;
}
public Long getType()
{
return type;
}
public void setLeaderId(Long leaderId)
{
this.leaderId = leaderId;
}
public Long getLeaderId()
{
return leaderId;
}
public void setDeleted(Integer deleted)
{
this.deleted = deleted;
}
public Integer getDeleted()
{
return deleted;
}
public void setPlatformGroupId(Long platformGroupId)
{
this.platformGroupId = platformGroupId;
}
public Long getPlatformGroupId()
{
return platformGroupId;
}
public void setPlatformTeamId(Long platformTeamId)
{
this.platformTeamId = platformTeamId;
}
public Long getPlatformTeamId()
{
return platformTeamId;
}
public void setEnterDate(Long enterDate)
{
this.enterDate = enterDate;
}
public Long getEnterDate()
{
return enterDate;
}
public void setExitDate(Long exitDate)
{
this.exitDate = exitDate;
}
public Long getExitDate()
{
return exitDate;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgid", getCfgid())
.append("serverid", getServerid())
.append("bizLicense", getBizLicense())
.append("companyCode", getCompanyCode())
.append("companyId", getCompanyId())
.append("companyName", getCompanyName())
.append("companyTypeId", getCompanyTypeId())
.append("vendorId", getVendorId())
.append("name", getName())
.append("leaderName", getLeaderName())
.append("leaderPhone", getLeaderPhone())
.append("teamId", getTeamId())
.append("teamName", getTeamName())
.append("type", getType())
.append("leaderId", getLeaderId())
.append("deleted", getDeleted())
.append("createTimestamp", getCreateTimestamp())
.append("platformGroupId", getPlatformGroupId())
.append("platformTeamId", getPlatformTeamId())
.append("enterDate", getEnterDate())
.append("exitDate", getExitDate())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -1,733 +0,0 @@
package com.yanzhu.xd.system.domain;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;
import java.util.List;
/**
* sur_project_attendance_user
*
* @author ruoyi
* @date 2024-10-25
*/
public class SurProjectAttendanceUser extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** */
private Long id;
/** 配置项ID,可以获取项目ID和总包ID */
private Long cfgid;
/** 注册应用ID */
private String appId;
/** 厂商编号参考字典attendance_vendors */
private String vendorsCode;
/** 工人id */
@Excel(name = "工人id")
private String workerId;
/** 项目工人履历id对于旧劳务这个字段相当于工人的projectWorkerId管理人员的registerManagerId */
private Long laborWorkerId;
/** 人员类别0工人1管理人员 */
@Excel(name = "人员类别0工人1管理人员")
private Long workerCategory;
/** 工号 */
private Long qrCode;
/** 姓名 */
@Excel(name = "姓名")
private String name;
/** 民族 */
@Excel(name = "民族")
private String ethnic;
/** 籍贯 */
@Excel(name = "籍贯")
private String nativePlace;
/** 性别0:男 1:女 */
@Excel(name = "性别0:男 1:女")
private Long gender;
/** 出生日期时间戳 */
@Excel(name = "出生日期时间戳")
private Long birthDate;
/** 联系电话 */
@Excel(name = "联系电话")
private String phone;
/** 学历 */
@Excel(name = "学历")
private String degreeName;
/** 身份证照 */
@Excel(name = "身份证照")
private String photo;
/** 近照 */
private String recentPhoto;
/** 所属班组ID */
private String groupId;
/** 所属班组 */
@Excel(name = "所属班组")
private String groupName;
/** 是否班组长 */
@Excel(name = "是否班组长")
private Integer leader;
/** 工种编码 */
@Excel(name = "工种编码")
private String workTypeCode;
/** 工种 */
@Excel(name = "工种")
private String workTypeName;
/** 是否特殊工种 */
@Excel(name = "是否特殊工种")
private Integer specWorkType;
/** 安全帽编号 */
@Excel(name = "安全帽编号")
private String hatCode;
/** 进退场状态0:进场1:退场 */
@Excel(name = "进退场状态0:进场1:退场")
private Long state;
/** 进场日期 */
@Excel(name = "进场日期")
private String enterDate;
/** 退场日期 */
@Excel(name = "退场日期")
private String exitDate;
/** 分包商id */
@Excel(name = "分包商id")
private String companyId;
/** 分包商名称 */
@Excel(name = "分包商名称")
private String companyName;
/** 平台对应分包商ID */
@Excel(name = "平台对应分包商ID")
private Long vendorId;
/** 队伍id */
@Excel(name = "队伍id")
private Integer teamId;
/** 队伍名称 */
@Excel(name = "队伍名称")
private String teamName;
/** 进场方式0:自动,1:手动2:拍照 */
@Excel(name = "进场方式0:自动,1:手动2:拍照")
private String enterType;
/** 服务返回的JSON */
@Excel(name = "服务返回的JSON")
private String other;
/** 是否有效 */
@Excel(name = "是否有效")
private Long isDel;
/** 人员部门类型 */
@Excel(name = "人员部门类型")
private String companyTypeId;
/** 重要::yanzhu接口接收base64图片 */
private String recentPhotoBase64;
public String getRecentPhotoBase64() {
return recentPhotoBase64;
}
public void setRecentPhotoBase64(String recentPhotoBase64) {
this.recentPhotoBase64 = recentPhotoBase64;
}
@Excel(name = "进场时间")
private Date inTime;
@Excel(name = "离场时间")
private Date outTime;
public static SurProjectAttendanceUser createFromHuazhu(JSONObject j) {
SurProjectAttendanceUser u=new SurProjectAttendanceUser();
u.workerId=j.getString("id");
u.name=j.getString("name");
u.ethnic=j.getString("nationalName");
u.nativePlace=j.getString("provinceName")+j.getString("cityName");
u.gender=j.getLongValue("sex",0)==0l?1l:0l;
u.birthDate=j.getLongValue("birthday",0);
u.phone=j.getString("phone");
u.degreeName=j.getString("levelOfEducation");
u.recentPhoto=j.getString("profile");
u.groupId=j.getString("teamId");
u.groupName=j.getString("teamName");
u.workTypeCode=j.getString("workerTypeId");
u.workTypeName=j.getString("workerTypeName");
u.state=j.getLongValue("status",1)==2l?0l:1l;
long enterTime=j.getLong("enterTime");
if(enterTime>0){
u.enterDate= DateUtil.format(DateUtil.date(enterTime),"yyyy-MM-dd HH:mm:ss");
}
long leaveTime=j.getLong("leaveTime");
if(leaveTime>0) {
u.exitDate = DateUtil.format(DateUtil.date(leaveTime), "yyyy-MM-dd HH:mm:ss");
}
u.vendorId=j.getLongValue("unitProjectId",0);
u.companyId=""+j.getLongValue("unitId",0);
u.companyName=j.getString("unitName");
u.teamName=j.getString("teamName");
return u;
}
public static SurProjectAttendanceUser createFromJgw(JSONObject j) {
SurProjectAttendanceUser u=new SurProjectAttendanceUser();
u.workerId=j.getString("workerId");
u.name=j.getString("name");
u.ethnic=j.getString("minor");
u.phone=j.getString("workPhone");
u.nativePlace=j.getString("address");
u.gender=j.getLongValue("sex",0)==0l?1l:0l;
String tmp=j.getString("birthday");
if(StrUtil.isNotEmpty(tmp)) {
try {
u.birthDate = DateUtil.parse(tmp).getTime();
}catch (Exception ex){
}
}
u.photo=j.getString("headImage");
u.degreeName=j.getString("education");
u.recentPhoto=j.getString("vaildPhoto");
u.groupId="";
u.groupName="";
u.workTypeCode="";
u.workTypeName=j.getString("jobtype");
u.state="01".equals( j.getString("workerStatus"))?0l:1l;
String workDate=j.getString("workDate");
if(!StrUtil.isEmpty(workDate)){
u.enterDate=workDate;
}
u.vendorId=0l;
u.companyId=j.getString("subcontractorId");
u.companyName="";
u.teamName="";
u.isDel=0l;
JSONArray ja=j.getJSONArray("corpName");
if(ja!=null && ja.size()>0){
Object obj=ja.get(0);
if(obj!=null){
u.companyName=obj.toString();
}
}
u.leader=j.getInteger("isAdmin")==1?1:0;
return u;
}
public Date getInTime() {
return inTime;
}
public void setInTime(Date inTime) {
this.inTime = inTime;
}
public Date getOutTime() {
return outTime;
}
public void setOutTime(Date outTime) {
this.outTime = outTime;
}
private Long projectId;
private Long subDeptId;
private Long deptId;
private List<String> workerIds;
public List<String> getWorkerIds() {
return workerIds;
}
public void setWorkerIds(List<String> workerIds) {
this.workerIds = workerIds;
}
private int size;
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
private int index;
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getSubDeptId() {
return subDeptId;
}
public void setSubDeptId(Long subDeptId) {
this.subDeptId = subDeptId;
}
public Long getDeptId() {
return deptId;
}
public void setDeptId(Long deptId) {
this.deptId = deptId;
}
public static SurProjectAttendanceUser create(JSONObject json) {
SurProjectAttendanceUser u=new SurProjectAttendanceUser();
u.workerId=json.getString("workerId");
u.laborWorkerId=json.getLongValue("laborWorkerId",0);
u.workerCategory=json.getLongValue("workerCategory",0);
u.qrCode=json.getLongValue("qrCode",0);
u.name=json.getString("name");
u.ethnic=json.getString("ethnic");
u.nativePlace=json.getString("nativePlace");
u.gender=json.getLongValue("gender",0);
u.birthDate=json.getLongValue("birthDate",0);
u.phone=json.getString("phone");
u.recentPhoto=json.getString("recentPhoto");
u.groupId=json.getString("groupId");
u.groupName=json.getString("groupName");
u.leader=json.getBooleanValue("leader",false)?1:0;
u.workTypeCode=json.getString("workTypeCode");
u.workTypeName=json.getString("workTypeName");
u.specWorkType=json.getBooleanValue("specWorkType",false)?1:0;
u.hatCode=json.getString("hatCode");
u.state=json.getLongValue("status",0);
u.enterDate=json.getString("enterDate");
u.exitDate=json.getString("exitDate");
u.companyId=""+json.getLongValue("companyId",0);
u.companyName=json.getString("companyName");
u.vendorId=json.getLongValue("vendorId",0);
u.teamId=json.getInteger("teamId");
u.teamName=json.getString("teamName");
u.enterType=json.getString("enterType");
u.isDel=0l;
return u;
}
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCfgid(Long cfgid)
{
this.cfgid = cfgid;
}
public Long getCfgid()
{
return cfgid;
}
public void setVendorsCode(String vendorsCode)
{
this.vendorsCode = vendorsCode;
}
public String getVendorsCode()
{
return vendorsCode;
}
public void setWorkerId(String workerId)
{
this.workerId = workerId;
}
public String getWorkerId()
{
return workerId;
}
public void setLaborWorkerId(Long laborWorkerId)
{
this.laborWorkerId = laborWorkerId;
}
public Long getLaborWorkerId()
{
return laborWorkerId;
}
public void setWorkerCategory(Long workerCategory)
{
this.workerCategory = workerCategory;
}
public Long getWorkerCategory()
{
return workerCategory;
}
public void setQrCode(Long qrCode)
{
this.qrCode = qrCode;
}
public Long getQrCode()
{
return qrCode;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setEthnic(String ethnic)
{
this.ethnic = ethnic;
}
public String getEthnic()
{
return ethnic;
}
public void setNativePlace(String nativePlace)
{
this.nativePlace = nativePlace;
}
public String getNativePlace()
{
return nativePlace;
}
public void setGender(Long gender)
{
this.gender = gender;
}
public Long getGender()
{
return gender;
}
public void setBirthDate(Long birthDate)
{
this.birthDate = birthDate;
}
public Long getBirthDate()
{
return birthDate;
}
public void setPhone(String phone)
{
this.phone = phone;
}
public String getPhone()
{
return phone;
}
public void setDegreeName(String degreeName)
{
this.degreeName = degreeName;
}
public String getDegreeName()
{
return degreeName;
}
public void setPhoto(String photo)
{
this.photo = photo;
}
public String getPhoto()
{
return photo;
}
public void setRecentPhoto(String recentPhoto)
{
this.recentPhoto = recentPhoto;
}
public String getRecentPhoto()
{
return recentPhoto;
}
public void setGroupId(String groupId)
{
this.groupId = groupId;
}
public String getGroupId()
{
return groupId;
}
public void setGroupName(String groupName)
{
this.groupName = groupName;
}
public String getGroupName()
{
return groupName;
}
public void setLeader(Integer leader)
{
this.leader = leader;
}
public Integer getLeader()
{
return leader;
}
public void setWorkTypeCode(String workTypeCode)
{
this.workTypeCode = workTypeCode;
}
public String getWorkTypeCode()
{
return workTypeCode;
}
public void setWorkTypeName(String workTypeName)
{
this.workTypeName = workTypeName;
}
public String getWorkTypeName()
{
return workTypeName;
}
public void setSpecWorkType(Integer specWorkType)
{
this.specWorkType = specWorkType;
}
public Integer getSpecWorkType()
{
return specWorkType;
}
public void setHatCode(String hatCode)
{
this.hatCode = hatCode;
}
public String getHatCode()
{
return hatCode;
}
public void setState(Long state)
{
this.state = state;
}
public Long getState()
{
return state;
}
public void setEnterDate(String enterDate)
{
this.enterDate = enterDate;
}
public String getEnterDate()
{
return enterDate;
}
public void setExitDate(String exitDate)
{
this.exitDate = exitDate;
}
public String getExitDate()
{
return exitDate;
}
public void setCompanyId(String companyId)
{
this.companyId = companyId;
}
public String getCompanyId()
{
return companyId;
}
public void setCompanyName(String companyName)
{
this.companyName = companyName;
}
public String getCompanyName()
{
return companyName;
}
public void setVendorId(Long vendorId)
{
this.vendorId = vendorId;
}
public Long getVendorId()
{
return vendorId;
}
public void setTeamId(Integer teamId)
{
this.teamId = teamId;
}
public Integer getTeamId()
{
return teamId;
}
public void setTeamName(String teamName)
{
this.teamName = teamName;
}
public String getTeamName()
{
return teamName;
}
public void setEnterType(String enterType)
{
this.enterType = enterType;
}
public String getEnterType()
{
return enterType;
}
public void setOther(String other)
{
this.other = other;
}
public String getOther()
{
return other;
}
public void setIsDel(Long isDel)
{
this.isDel = isDel;
}
public Long getIsDel()
{
return isDel;
}
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
public String getCompanyTypeId() {
return companyTypeId;
}
public void setCompanyTypeId(String companyTypeId) {
this.companyTypeId = companyTypeId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("cfgid", getCfgid())
.append("vendorsCode", getVendorsCode())
.append("workerId", getWorkerId())
.append("laborWorkerId", getLaborWorkerId())
.append("workerCategory", getWorkerCategory())
.append("qrCode", getQrCode())
.append("name", getName())
.append("ethnic", getEthnic())
.append("nativePlace", getNativePlace())
.append("gender", getGender())
.append("birthDate", getBirthDate())
.append("phone", getPhone())
.append("degreeName", getDegreeName())
.append("photo", getPhoto())
.append("recentPhoto", getRecentPhoto())
.append("groupId", getGroupId())
.append("groupName", getGroupName())
.append("leader", getLeader())
.append("workTypeCode", getWorkTypeCode())
.append("workTypeName", getWorkTypeName())
.append("specWorkType", getSpecWorkType())
.append("hatCode", getHatCode())
.append("state", getState())
.append("enterDate", getEnterDate())
.append("exitDate", getExitDate())
.append("companyId", getCompanyId())
.append("companyName", getCompanyName())
.append("vendorId", getVendorId())
.append("teamId", getTeamId())
.append("teamName", getTeamName())
.append("enterType", getEnterType())
.append("other", getOther())
.append("remark", getRemark())
.append("isDel", getIsDel())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -1,93 +0,0 @@
package com.yanzhu.xd.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* sys_native
*
* @author ruoyi
* @date 2024-10-26
*/
public class SysNative extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** */
private Long id;
/** */
@Excel(name = "")
private String address;
/** */
@Excel(name = "")
private String provinces;
/** */
@Excel(name = "")
private String citiy;
/** */
@Excel(name = "")
private String areas;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setProvinces(String provinces)
{
this.provinces = provinces;
}
public String getProvinces()
{
return provinces;
}
public void setCitiy(String citiy)
{
this.citiy = citiy;
}
public String getCitiy()
{
return citiy;
}
public void setAreas(String areas)
{
this.areas = areas;
}
public String getAreas()
{
return areas;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("address", getAddress())
.append("provinces", getProvinces())
.append("citiy", getCitiy())
.append("areas", getAreas())
.toString();
}
}

View File

@ -1,15 +0,0 @@
package com.yanzhu.xd.system.emuns;
/**
* key
*
* @author JiangYuQi
*/
public class CacheConstants {
/**
* yanzhu redis key
*/
public static final String YANZHU_DEVICE_TOWER = "device.tower_cfg:";
}

View File

@ -1,78 +0,0 @@
package com.yanzhu.xd.system.mapper;
import com.yanzhu.xd.system.domain.DevTowerProjectConfig;
import java.util.List;
import java.util.Map;
/**
* Mapper
*
* @author JiangYuQi
* @date 2024-08-04
*/
public interface DevTowerProjectConfigMapper
{
/**
*
*
* @param id
* @return
*/
public DevTowerProjectConfig selectDevTowerProjectConfigById(Long id);
/**
*
*
* @param sn
* @return
*/
public DevTowerProjectConfig selectDevTowerProjectConfigBySn(String sn);
/**
*
*
* @param devTowerProjectConfig
* @return
*/
public List<DevTowerProjectConfig> selectDevTowerProjectConfigList(DevTowerProjectConfig devTowerProjectConfig);
/**
*
*
* @param devTowerProjectConfig
* @return
*/
public int insertDevTowerProjectConfig(DevTowerProjectConfig devTowerProjectConfig);
/**
*
*
* @param devTowerProjectConfig
* @return
*/
public int updateDevTowerProjectConfig(DevTowerProjectConfig devTowerProjectConfig);
/**
*
*
* @param id
* @return
*/
public int deleteDevTowerProjectConfigById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteDevTowerProjectConfigByIds(Long[] ids);
/**
*
* @param devTowerProjectConfig
* @return
*/
public List<Map<String, Object>> findtowerConfigGroupOnline(DevTowerProjectConfig devTowerProjectConfig);
}

View File

@ -1,63 +0,0 @@
package com.yanzhu.xd.system.mapper;
import java.util.List;
import com.yanzhu.xd.system.domain.SurProjectAttendanceCfg;
/**
* Mapper
*
* @author ruoyi
* @date 2024-10-25
*/
public interface SurProjectAttendanceCfgMapper
{
/**
*
*
* @param id
* @return
*/
public SurProjectAttendanceCfg selectSurProjectAttendanceCfgById(Long id);
/**
*
*
* @param quartzProjectAttendanceCfg
* @return
*/
public List<SurProjectAttendanceCfg> selectSurProjectAttendanceCfgList(SurProjectAttendanceCfg quartzProjectAttendanceCfg);
/**
*
*
* @param quartzProjectAttendanceCfg
* @return
*/
public int insertSurProjectAttendanceCfg(SurProjectAttendanceCfg quartzProjectAttendanceCfg);
/**
*
*
* @param quartzProjectAttendanceCfg
* @return
*/
public int updateSurProjectAttendanceCfg(SurProjectAttendanceCfg quartzProjectAttendanceCfg);
/**
*
*
* @param id
* @return
*/
public int deleteSurProjectAttendanceCfgById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteSurProjectAttendanceCfgByIds(Long[] ids);
public List<SurProjectAttendanceCfg> selectSurProjectAttendanceCfgListForAllInfo(SurProjectAttendanceCfg where);
}

View File

@ -1,135 +0,0 @@
package com.yanzhu.xd.system.mapper;
import java.util.List;
import java.util.Map;
import com.yanzhu.xd.system.domain.SurProjectAttendanceData;
import org.apache.ibatis.annotations.Param;
/**
* Mapper
*
* @author ruoyi
* @date 2024-10-25
*/
public interface SurProjectAttendanceDataMapper
{
/**
*
*
* @param id
* @return
*/
public SurProjectAttendanceData selectSurProjectAttendanceDataById(Long id);
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
public List<SurProjectAttendanceData> selectSurProjectAttendanceDataList(SurProjectAttendanceData quartzProjectAttendanceData);
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
public SurProjectAttendanceData findCurrentAttendanceData(SurProjectAttendanceData quartzProjectAttendanceData);
public List<SurProjectAttendanceData> selectSurProjectAttendanceDataListEx(SurProjectAttendanceData quartzProjectAttendanceData);
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
public int insertSurProjectAttendanceData(SurProjectAttendanceData quartzProjectAttendanceData);
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
public int updateSurProjectAttendanceData(SurProjectAttendanceData quartzProjectAttendanceData);
/**
*
*
* @param id
* @return
*/
public int deleteSurProjectAttendanceDataById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteSurProjectAttendanceDataByIds(Long[] ids);
/**
*
*
* @param list
* @return
*/
public int deleteSurProjectAttendanceDataByParams(List<String> list);
/**
*
*
* @param quartzProjectAttendanceDataList
* @return
*/
public int batchSurProjectAttendanceData(@Param("list") List<SurProjectAttendanceData> quartzProjectAttendanceDataList, @Param("year") String year);
public Long getLastServerId(SurProjectAttendanceData where);
List<SurProjectAttendanceData> groupAllByComany(SurProjectAttendanceData where);
List<SurProjectAttendanceData> groupByComany(SurProjectAttendanceData where);
public Long getHuazhuPage(SurProjectAttendanceData where);
public List<Map<String,Object>> initOtherData(Map<String,Object> data);
public List<Map<String,Object>> initHuaZhuData(Map<String,Object> data);
public String findHuaZhuCompanyType(String deptName);
public List<SurProjectAttendanceData> todayAttendance(SurProjectAttendanceData where);
/**
*
* @param where
* @return
*/
public List<Map<String, Object>> findGroupAllByDays(SurProjectAttendanceData where);
/**
*
* @param where
* @return
*/
public List<Map<String, Object>> findGroupAllByParams(SurProjectAttendanceData where);
/**
*
* @param where
* @return
*/
public List<Map<String, Object>> groupDataByParams(SurProjectAttendanceData where);
/**
*
* @param where
* @return
*/
public List<SurProjectAttendanceData> attendanceDataList(SurProjectAttendanceData where);
public List<SurProjectAttendanceData> groupTodayCompanyTypeId(SurProjectAttendanceData where);
}

View File

@ -1,85 +0,0 @@
package com.yanzhu.xd.system.mapper;
import java.util.List;
import com.yanzhu.xd.system.domain.SurProjectAttendanceGroup;
/**
* Mapper
*
* @author ruoyi
* @date 2024-10-25
*/
public interface SurProjectAttendanceGroupMapper
{
/**
* 广
*
* @param id 广
* @return 广
*/
public SurProjectAttendanceGroup selectSurProjectAttendanceGroupById(Long id);
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return 广
*/
public List<SurProjectAttendanceGroup> selectSurProjectAttendanceGroupViewList(SurProjectAttendanceGroup quartzProjectAttendanceGroup);
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return 广
*/
public List<SurProjectAttendanceGroup> selectSurProjectAttendanceGroupList(SurProjectAttendanceGroup quartzProjectAttendanceGroup);
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return
*/
public int insertSurProjectAttendanceGroup(SurProjectAttendanceGroup quartzProjectAttendanceGroup);
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return
*/
public int updateSurProjectAttendanceGroup(SurProjectAttendanceGroup quartzProjectAttendanceGroup);
/**
* 广
*
* @param id 广
* @return
*/
public int deleteSurProjectAttendanceGroupById(Long id);
/**
* 广
*
* @param ids
* @return
*/
public int deleteSurProjectAttendanceGroupByIds(Long[] ids);
/**
* 广
*
* @param list
* @return
*/
public int deleteSurProjectAttendanceGroupByParams(List<String> list);
/**
* 广
*
* @param quartzProjectAttendanceGroupList 广
* @return
*/
public int batchSurProjectAttendanceGroup(List<SurProjectAttendanceGroup> quartzProjectAttendanceGroupList);
}

View File

@ -1,167 +0,0 @@
package com.yanzhu.xd.system.mapper;
import java.util.List;
import java.util.Map;
import com.yanzhu.xd.system.domain.SurProjectAttendanceUser;
/**
* Mapper
*
* @author ruoyi
* @date 2024-10-25
*/
public interface SurProjectAttendanceUserMapper
{
/**
*
*
* @param id
* @return
*/
public SurProjectAttendanceUser selectSurProjectAttendanceUserById(Long id);
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
public SurProjectAttendanceUser findCurrentAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
* []
*
* @param quartzProjectAttendanceUser
* @return
*/
public SurProjectAttendanceUser findYzCurrentAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
public List<SurProjectAttendanceUser> selectSurProjectAttendanceUserList(SurProjectAttendanceUser quartzProjectAttendanceUser);
public List<SurProjectAttendanceUser> querySurProjectAttendanceUserList(SurProjectAttendanceUser quartzProjectAttendanceUser);
public List<SurProjectAttendanceUser> selectSurProjectAttendanceUserListJgw(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
public int insertSurProjectAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
public int updateSurProjectAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
*
*
* @param id
* @return
*/
public int deleteSurProjectAttendanceUserById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteSurProjectAttendanceUserByIds(Long[] ids);
/**
*
*
* @param list
* @return
*/
public int deleteSurProjectAttendanceUserByParams(List<String> list);
/**
*
*
* @param quartzProjectAttendanceUserList
* @return
*/
public int batchSurProjectAttendanceUser(List<SurProjectAttendanceUser> quartzProjectAttendanceUserList);
/**
*
* countAttendance
* queryAttendanceUsers workerIds
* queryAttendanceByUserIds workerIds
* @param where
* @return
*/
public List<SurProjectAttendanceUser> queryAttendanceByUserIds(SurProjectAttendanceUser where);
public long countAttendance(SurProjectAttendanceUser where);
public List<SurProjectAttendanceUser> queryAttendanceUsers(SurProjectAttendanceUser where);
public long countTodayAttendance(SurProjectAttendanceUser where);
public List<SurProjectAttendanceUser> todayAttendance(SurProjectAttendanceUser where);
public List<SurProjectAttendanceUser> todayAttendanceData(List<String> list);
public List<SurProjectAttendanceUser> todayAttendanceOtherData(Map<String,Object> data);
/**
*
* @param where
* @return
*/
List<SurProjectAttendanceUser> queryWorkerOnDuty(SurProjectAttendanceUser where);
/**
*
* @param where
* @return
*/
public List<Map<String, Object>> groupUserByParams(SurProjectAttendanceUser where);
/**
*
* @param where
* @return
*/
public List<SurProjectAttendanceUser> attendanceUserList(SurProjectAttendanceUser where);
/**
*
* @param projectId
* @return
*/
public List<Map<String, Object>> findUserAllByDays(Long projectId);
/**
*
* @param where
* @return
*/
List<SurProjectAttendanceUser> groupByWorkerOnDutyByDept(SurProjectAttendanceUser where);
/**
* |
* @param where
* @return
*/
List<SurProjectAttendanceUser> groupByWorkerByDept(SurProjectAttendanceUser where);
/**
* |
* @param where
* @return
*/
List<SurProjectAttendanceUser> queryWorkerByState(SurProjectAttendanceUser where);
}

View File

@ -1,61 +0,0 @@
package com.yanzhu.xd.system.mapper;
import java.util.List;
import com.yanzhu.xd.system.domain.SurProject;
/**
* Mapper
*
* @author ruoyi
* @date 2024-10-25
*/
public interface SurProjectMapper
{
/**
*
*
* @param id ID
* @return
*/
public SurProject selectSurProjectById(Long id);
/**
*
*
* @param surProject
* @return
*/
public List<SurProject> selectSurProjectList(SurProject surProject);
/**
*
*
* @param surProject
* @return
*/
public int insertSurProject(SurProject surProject);
/**
*
*
* @param surProject
* @return
*/
public int updateSurProject(SurProject surProject);
/**
*
*
* @param id ID
* @return
*/
public int deleteSurProjectById(Long id);
/**
*
*
* @param ids ID
* @return
*/
public int deleteSurProjectByIds(String[] ids);
}

View File

@ -1,63 +0,0 @@
package com.yanzhu.xd.system.mapper;
import java.util.List;
import com.yanzhu.xd.system.domain.SysNative;
/**
* Mapper
*
* @author ruoyi
* @date 2024-10-26
*/
public interface SysNativeMapper
{
/**
*
*
* @param id ID
* @return
*/
public SysNative selectSysNativeById(Long id);
/**
*
*
* @param sysNative
* @return
*/
public List<SysNative> selectSysNativeList(SysNative sysNative);
/**
*
*
* @param sysNative
* @return
*/
public int insertSysNative(SysNative sysNative);
/**
*
*
* @param sysNative
* @return
*/
public int updateSysNative(SysNative sysNative);
/**
*
*
* @param id ID
* @return
*/
public int deleteSysNativeById(Long id);
/**
*
*
* @param ids ID
* @return
*/
public int deleteSysNativeByIds(String[] ids);
List<SysNative> selectSysNativeListById(long id);
}

View File

@ -1,87 +0,0 @@
package com.yanzhu.xd.system.service;
import com.yanzhu.xd.system.domain.DevTowerProjectConfig;
import java.util.List;
import java.util.Map;
/**
* Service
*
* @author JiangYuQi
* @date 2024-08-04
*/
public interface IDevTowerProjectConfigService
{
/**
*
*
* @param id
* @return
*/
public DevTowerProjectConfig selectDevTowerProjectConfigById(Long id);
/**
*
*
* @param sn
* @return
*/
public DevTowerProjectConfig selectDevTowerProjectConfigBySn(String sn);
/**
*
*
* @param devTowerProjectConfig
* @return
*/
public List<DevTowerProjectConfig> selectDevTowerProjectConfigList(DevTowerProjectConfig devTowerProjectConfig);
/**
*
*
* @param devTowerProjectConfig
* @return
*/
public int insertDevTowerProjectConfig(DevTowerProjectConfig devTowerProjectConfig);
/**
*
*
* @param devTowerProjectConfig
* @return
*/
public int updateDevTowerProjectConfig(DevTowerProjectConfig devTowerProjectConfig);
/**
*
*
* @param devTowerProjectConfig
* @return
*/
public int updateDevTowerProjectConfigNoCache(DevTowerProjectConfig devTowerProjectConfig);
/**
*
*
* @param ids
* @return
*/
public int deleteDevTowerProjectConfigByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteDevTowerProjectConfigById(Long id);
/**
*
* @param devTowerProjectConfig
* @return
*/
public List<Map<String, Object>> findtowerConfigGroupOnline(DevTowerProjectConfig devTowerProjectConfig);
}

View File

@ -1,61 +0,0 @@
package com.yanzhu.xd.system.service;
import java.util.List;
import com.yanzhu.xd.system.domain.SurProjectAttendanceCfg;
/**
* Service
*
* @author ruoyi
* @date 2024-10-25
*/
public interface ISurProjectAttendanceCfgService
{
/**
*
*
* @param id
* @return
*/
public SurProjectAttendanceCfg selectSurProjectAttendanceCfgById(Long id);
/**
*
*
* @param quartzProjectAttendanceCfg
* @return
*/
public List<SurProjectAttendanceCfg> selectSurProjectAttendanceCfgList(SurProjectAttendanceCfg quartzProjectAttendanceCfg);
/**
*
*
* @param quartzProjectAttendanceCfg
* @return
*/
public int insertSurProjectAttendanceCfg(SurProjectAttendanceCfg quartzProjectAttendanceCfg);
/**
*
*
* @param quartzProjectAttendanceCfg
* @return
*/
public int updateSurProjectAttendanceCfg(SurProjectAttendanceCfg quartzProjectAttendanceCfg);
/**
*
*
* @param ids
* @return
*/
public int deleteSurProjectAttendanceCfgByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteSurProjectAttendanceCfgById(Long id);
}

View File

@ -1,141 +0,0 @@
package com.yanzhu.xd.system.service;
import java.util.List;
import java.util.Map;
import com.yanzhu.xd.system.domain.SurProjectAttendanceData;
/**
* Service
*
* @author ruoyi
* @date 2024-10-25
*/
public interface ISurProjectAttendanceDataService
{
/**
*
*
* @param id
* @return
*/
public SurProjectAttendanceData selectSurProjectAttendanceDataById(Long id);
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
public List<SurProjectAttendanceData> selectSurProjectAttendanceDataList(SurProjectAttendanceData quartzProjectAttendanceData);
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
public SurProjectAttendanceData findCurrentAttendanceData(SurProjectAttendanceData quartzProjectAttendanceData);
public List<SurProjectAttendanceData> selectSurProjectAttendanceDataListEx(SurProjectAttendanceData quartzProjectAttendanceData);
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
public int insertSurProjectAttendanceData(SurProjectAttendanceData quartzProjectAttendanceData);
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
public int updateSurProjectAttendanceData(SurProjectAttendanceData quartzProjectAttendanceData);
/**
*
*
* @param ids
* @return
*/
public int deleteSurProjectAttendanceDataByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteSurProjectAttendanceDataById(Long id);
/**
*
*
* @param list
* @return
*/
public int deleteSurProjectAttendanceDataByParams(List<String> list);
/**
*
*
* @param quartzProjectAttendanceDataList
* @return
*/
public int batchSurProjectAttendanceData(List<SurProjectAttendanceData> quartzProjectAttendanceDataList);
public void add(SurProjectAttendanceData sdata);
public String getLastServerId(SurProjectAttendanceData where);
public List<SurProjectAttendanceData> groupByComany(SurProjectAttendanceData where);
public Long getHuazhuPage( SurProjectAttendanceData where);
public List<SurProjectAttendanceData> groupAllByComany(SurProjectAttendanceData where);
public List<Map<String,Object>> initOtherData(Map<String,Object> data);
public List<Map<String,Object>> initHuaZhuData(Map<String,Object> data);
List<SurProjectAttendanceData> todayAttendance(SurProjectAttendanceData where);
/**
*
* @param where
* @return
*/
public List<Map<String, Object>> groupAllByParams(SurProjectAttendanceData where);
/**
*
* @param where
* @return
*/
public List<Map<String, Object>> findGroupAllByDays(SurProjectAttendanceData where);
/**
*
* @param where
* @return
*/
public List<SurProjectAttendanceData> attendanceDataList(SurProjectAttendanceData where);
/**
*
* @param where
* @return
*/
public List<Map<String, Object>> groupDataByParams(SurProjectAttendanceData where);
List<SurProjectAttendanceData> groupTodayCompanyTypeId(SurProjectAttendanceData where);
/**
*
* @param addList
*/
void addList(List<SurProjectAttendanceData> addList);
}

View File

@ -1,93 +0,0 @@
package com.yanzhu.xd.system.service;
import java.util.List;
import com.yanzhu.xd.system.domain.SurProjectAttendanceGroup;
/**
* Service
*
* @author ruoyi
* @date 2024-10-25
*/
public interface ISurProjectAttendanceGroupService
{
/**
* 广
*
* @param id 广
* @return 广
*/
public SurProjectAttendanceGroup selectSurProjectAttendanceGroupById(Long id);
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return 广
*/
public List<SurProjectAttendanceGroup> selectSurProjectAttendanceGroupViewList(SurProjectAttendanceGroup quartzProjectAttendanceGroup);
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return 广
*/
public List<SurProjectAttendanceGroup> selectSurProjectAttendanceGroupList(SurProjectAttendanceGroup quartzProjectAttendanceGroup);
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return
*/
public int insertSurProjectAttendanceGroup(SurProjectAttendanceGroup quartzProjectAttendanceGroup);
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return
*/
public int updateSurProjectAttendanceGroup(SurProjectAttendanceGroup quartzProjectAttendanceGroup);
/**
* 广
*
* @param ids 广
* @return
*/
public int deleteSurProjectAttendanceGroupByIds(Long[] ids);
/**
* 广
*
* @param id 广
* @return
*/
public int deleteSurProjectAttendanceGroupById(Long id);
/**
* 广
*
* @param list
* @return
*/
public int deleteSurProjectAttendanceGroupByParams(List<String> list);
/**
* 广
*
* @param quartzProjectAttendanceGroupList 广
* @return
*/
public int batchSurProjectAttendanceGroup(List<SurProjectAttendanceGroup> quartzProjectAttendanceGroupList);
public void add(SurProjectAttendanceGroup group);
/**
*
* @param group
*/
public void updateJgw(SurProjectAttendanceGroup group);
}

View File

@ -1,161 +0,0 @@
package com.yanzhu.xd.system.service;
import java.util.List;
import java.util.Map;
import com.yanzhu.xd.system.domain.SurProjectAttendanceUser;
/**
* Service
*
* @author ruoyi
* @date 2024-10-25
*/
public interface ISurProjectAttendanceUserService
{
/**
*
*
* @param id
* @return
*/
public SurProjectAttendanceUser selectSurProjectAttendanceUserById(Long id);
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
public SurProjectAttendanceUser findCurrentAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
* []
*
* @param quartzProjectAttendanceUser
* @return
*/
public SurProjectAttendanceUser findYzCurrentAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
public List<SurProjectAttendanceUser> selectSurProjectAttendanceUserList(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
public int insertSurProjectAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
public int updateSurProjectAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
*
*
* @param ids
* @return
*/
public int deleteSurProjectAttendanceUserByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteSurProjectAttendanceUserById(Long id);
/**
*
*
* @param list
* @return
*/
public int deleteSurProjectAttendanceUserByParams(List<String> list);
/**
*
*
* @param quartzProjectAttendanceUserList
* @return
*/
public int batchSurProjectAttendanceUser(List<SurProjectAttendanceUser> quartzProjectAttendanceUserList);
public void add(SurProjectAttendanceUser user);
public List<SurProjectAttendanceUser> queryAttendanceData(SurProjectAttendanceUser where);
public long countTodayAttendance(SurProjectAttendanceUser where);
public List<SurProjectAttendanceUser> todayAttendance(SurProjectAttendanceUser where);
public long countAttendance(SurProjectAttendanceUser where);
/**
*
* @param quartzProjectAttendanceUser
* @return
*/
public List<SurProjectAttendanceUser> selectSurProjectAttendanceUserListJgw(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
*
* @param where
* @return
*/
public List<SurProjectAttendanceUser> queryWorkerOnDuty(SurProjectAttendanceUser where);
/**
*
* @param where
* @return
*/
public List<Map<String, Object>> groupUserByParams(SurProjectAttendanceUser where);
/**
*
* @param where
* @return
*/
public List<SurProjectAttendanceUser> attendanceUserList(SurProjectAttendanceUser where);
/**
*
* @param projectId
* @return
*/
public List<Map<String, Object>> findUserAllByDays(Long projectId);
/**
*
* @param where
* @return
*/
List<SurProjectAttendanceUser> groupByWorkerOnDutyByDept(SurProjectAttendanceUser where);
List<SurProjectAttendanceUser> querySurProjectAttendanceUserList(SurProjectAttendanceUser quartzProjectAttendanceUser);
/**
* |
* @param where
* @return
*/
List<SurProjectAttendanceUser> groupByWorkerByDept(SurProjectAttendanceUser where);
/**
* |
* @param where
* @return
*/
List<SurProjectAttendanceUser> queryWorkerByState(SurProjectAttendanceUser where);
}

View File

@ -1,61 +0,0 @@
package com.yanzhu.xd.system.service;
import java.util.List;
import com.yanzhu.xd.system.domain.SurProject;
/**
* Service
*
* @author ruoyi
* @date 2024-10-25
*/
public interface ISurProjectService
{
/**
*
*
* @param id ID
* @return
*/
public SurProject selectSurProjectById(Long id);
/**
*
*
* @param surProject
* @return
*/
public List<SurProject> selectSurProjectList(SurProject surProject);
/**
*
*
* @param surProject
* @return
*/
public int insertSurProject(SurProject surProject);
/**
*
*
* @param surProject
* @return
*/
public int updateSurProject(SurProject surProject);
/**
*
*
* @param ids ID
* @return
*/
public int deleteSurProjectByIds(String ids);
/**
*
*
* @param id ID
* @return
*/
public int deleteSurProjectById(Long id);
}

View File

@ -1,63 +0,0 @@
package com.yanzhu.xd.system.service;
import java.util.List;
import com.yanzhu.xd.system.domain.SysNative;
/**
* Service
*
* @author ruoyi
* @date 2024-10-26
*/
public interface ISysNativeService
{
/**
*
*
* @param id ID
* @return
*/
public SysNative selectSysNativeById(Long id);
/**
*
*
* @param sysNative
* @return
*/
public List<SysNative> selectSysNativeList(SysNative sysNative);
/**
*
*
* @param sysNative
* @return
*/
public int insertSysNative(SysNative sysNative);
/**
*
*
* @param sysNative
* @return
*/
public int updateSysNative(SysNative sysNative);
/**
*
*
* @param ids ID
* @return
*/
public int deleteSysNativeByIds(String ids);
/**
*
*
* @param id ID
* @return
*/
public int deleteSysNativeById(Long id);
List<SysNative> selectSysNativeListById(long id);
}

View File

@ -1,139 +0,0 @@
package com.yanzhu.xd.system.service.impl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.ShiroUtils;
import com.yanzhu.xd.system.domain.DevTowerProjectConfig;
import com.yanzhu.xd.system.mapper.DevTowerProjectConfigMapper;
import com.yanzhu.xd.system.service.IDevTowerProjectConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
/**
* Service
*
* @author JiangYuQi
* @date 2024-08-04
*/
@Service
public class DevTowerProjectConfigServiceImpl implements IDevTowerProjectConfigService
{
@Autowired
private DevTowerProjectConfigMapper devTowerProjectConfigMapper;
/**
*
*
* @param id
* @return
*/
@Override
public DevTowerProjectConfig selectDevTowerProjectConfigById(Long id)
{
return devTowerProjectConfigMapper.selectDevTowerProjectConfigById(id);
}
/**
*
*
* @param sn
* @return
*/
@Override
public DevTowerProjectConfig selectDevTowerProjectConfigBySn(String sn){
return devTowerProjectConfigMapper.selectDevTowerProjectConfigBySn(sn);
}
/**
*
*
* @param devTowerProjectConfig
* @return
*/
@Override
public List<DevTowerProjectConfig> selectDevTowerProjectConfigList(DevTowerProjectConfig devTowerProjectConfig)
{
return devTowerProjectConfigMapper.selectDevTowerProjectConfigList(devTowerProjectConfig);
}
/**
*
*
* @param devTowerProjectConfig
* @return
*/
@Override
public int insertDevTowerProjectConfig(DevTowerProjectConfig devTowerProjectConfig)
{
devTowerProjectConfig.setCreateBy(ShiroUtils.getLoginName());
devTowerProjectConfig.setCreateTime(DateUtils.getNowDate());
int res = devTowerProjectConfigMapper.insertDevTowerProjectConfig(devTowerProjectConfig);
return res;
}
/**
*
*
* @param devTowerProjectConfig
* @return
*/
@Override
public int updateDevTowerProjectConfig(DevTowerProjectConfig devTowerProjectConfig)
{
devTowerProjectConfig.setUpdateBy(ShiroUtils.getLoginName());
devTowerProjectConfig.setUpdateTime(DateUtils.getNowDate());
int res = devTowerProjectConfigMapper.updateDevTowerProjectConfig(devTowerProjectConfig);
return res;
}
/**
*
*
* @param devTowerProjectConfig
* @return
*/
@Override
public int updateDevTowerProjectConfigNoCache(DevTowerProjectConfig devTowerProjectConfig)
{
devTowerProjectConfig.setUpdateTime(DateUtils.getNowDate());
return devTowerProjectConfigMapper.updateDevTowerProjectConfig(devTowerProjectConfig);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteDevTowerProjectConfigByIds(Long[] ids)
{
int res = devTowerProjectConfigMapper.deleteDevTowerProjectConfigByIds(ids);
return res;
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteDevTowerProjectConfigById(Long id)
{
int res = devTowerProjectConfigMapper.deleteDevTowerProjectConfigById(id);
return res;
}
/**
*
* @param devTowerProjectConfig
* @return
*/
public List<Map<String, Object>> findtowerConfigGroupOnline(DevTowerProjectConfig devTowerProjectConfig){
return devTowerProjectConfigMapper.findtowerConfigGroupOnline(devTowerProjectConfig);
}
}

View File

@ -1,112 +0,0 @@
package com.yanzhu.xd.system.service.impl;
import java.util.ArrayList;
import java.util.List;
import cn.hutool.core.util.StrUtil;
import com.ruoyi.common.utils.DateUtils;
import com.yanzhu.xd.system.utils.SecurityTools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.xd.system.mapper.SurProjectAttendanceCfgMapper;
import com.yanzhu.xd.system.domain.SurProjectAttendanceCfg;
import com.yanzhu.xd.system.service.ISurProjectAttendanceCfgService;
/**
* Service
*
* @author ruoyi
* @date 2024-10-25
*/
@Service
public class SurProjectAttendanceCfgServiceImpl implements ISurProjectAttendanceCfgService
{
@Autowired
private SurProjectAttendanceCfgMapper attendanceCfgMapper;
/**
*
*
* @param id
* @return
*/
@Override
public SurProjectAttendanceCfg selectSurProjectAttendanceCfgById(Long id)
{
return attendanceCfgMapper.selectSurProjectAttendanceCfgById(id);
}
/**
*
*
* @param quartzProjectAttendanceCfg
* @return
*/
@Override
public List<SurProjectAttendanceCfg> selectSurProjectAttendanceCfgList(SurProjectAttendanceCfg quartzProjectAttendanceCfg)
{
return attendanceCfgMapper.selectSurProjectAttendanceCfgList(quartzProjectAttendanceCfg);
}
/**
*
*
* @param quartzProjectAttendanceCfg
* @return
*/
@Override
public int insertSurProjectAttendanceCfg(SurProjectAttendanceCfg quartzProjectAttendanceCfg)
{
String userName= SecurityTools.getUsername();
quartzProjectAttendanceCfg.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
quartzProjectAttendanceCfg.setCreateTime(DateUtils.getNowDate());
return attendanceCfgMapper.insertSurProjectAttendanceCfg(quartzProjectAttendanceCfg);
}
/**
*
*
* @param quartzProjectAttendanceCfg
* @return
*/
@Override
public int updateSurProjectAttendanceCfg(SurProjectAttendanceCfg quartzProjectAttendanceCfg)
{
String userName= SecurityTools.getUsername();
quartzProjectAttendanceCfg.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
quartzProjectAttendanceCfg.setUpdateTime(DateUtils.getNowDate());
return attendanceCfgMapper.updateSurProjectAttendanceCfg(quartzProjectAttendanceCfg);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteSurProjectAttendanceCfgByIds(Long[] ids)
{
List<Long> cfgIds = new ArrayList<>();
for(Long id:ids){
SurProjectAttendanceCfg quartzProjectAttendanceCfg = attendanceCfgMapper.selectSurProjectAttendanceCfgById(id);
}
return attendanceCfgMapper.deleteSurProjectAttendanceCfgByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteSurProjectAttendanceCfgById(Long id)
{
SurProjectAttendanceCfg quartzProjectAttendanceCfg = attendanceCfgMapper.selectSurProjectAttendanceCfgById(id);
return attendanceCfgMapper.deleteSurProjectAttendanceCfgById(id);
}
}

View File

@ -1,520 +0,0 @@
package com.yanzhu.xd.system.service.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.StringUtils;
import com.yanzhu.xd.system.domain.SurProjectAttendanceCfg;
import com.yanzhu.xd.system.domain.SurProjectAttendanceGroup;
import com.yanzhu.xd.system.domain.SurProjectAttendanceUser;
import com.yanzhu.xd.system.mapper.SurProjectAttendanceCfgMapper;
import com.yanzhu.xd.system.mapper.SurProjectAttendanceGroupMapper;
import com.yanzhu.xd.system.mapper.SurProjectAttendanceUserMapper;
import com.yanzhu.xd.system.utils.SecurityTools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.xd.system.mapper.SurProjectAttendanceDataMapper;
import com.yanzhu.xd.system.domain.SurProjectAttendanceData;
import com.yanzhu.xd.system.service.ISurProjectAttendanceDataService;
/**
* Service
*
* @author ruoyi
* @date 2024-10-25
*/
@Service
public class SurProjectAttendanceDataServiceImpl implements ISurProjectAttendanceDataService
{
@Autowired
private SurProjectAttendanceDataMapper attendanceDataMapper;
@Autowired
private SurProjectAttendanceUserMapper attendanceUserMapper;
@Autowired
private SurProjectAttendanceGroupMapper attendanceGroupMapper;
@Autowired
private SurProjectAttendanceCfgMapper attendanceCfgMapper;
/**
*
*
* @param id
* @return
*/
@Override
public SurProjectAttendanceData selectSurProjectAttendanceDataById(Long id)
{
return attendanceDataMapper.selectSurProjectAttendanceDataById(id);
}
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
@Override
public List<SurProjectAttendanceData> selectSurProjectAttendanceDataList(SurProjectAttendanceData quartzProjectAttendanceData)
{
return attendanceDataMapper.selectSurProjectAttendanceDataList(quartzProjectAttendanceData);
}
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
@Override
public SurProjectAttendanceData findCurrentAttendanceData(SurProjectAttendanceData quartzProjectAttendanceData){
return attendanceDataMapper.findCurrentAttendanceData(quartzProjectAttendanceData);
}
@Override
public List<SurProjectAttendanceData> selectSurProjectAttendanceDataListEx(SurProjectAttendanceData quartzProjectAttendanceData)
{
return attendanceDataMapper.selectSurProjectAttendanceDataListEx(quartzProjectAttendanceData);
}
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
@Override
public int insertSurProjectAttendanceData(SurProjectAttendanceData quartzProjectAttendanceData)
{
String userName= SecurityTools.getUsername();
quartzProjectAttendanceData.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
quartzProjectAttendanceData.setCreateTime(DateUtils.getNowDate());
return attendanceDataMapper.insertSurProjectAttendanceData(quartzProjectAttendanceData);
}
/**
*
*
* @param quartzProjectAttendanceData
* @return
*/
@Override
public int updateSurProjectAttendanceData(SurProjectAttendanceData quartzProjectAttendanceData)
{
String userName= SecurityTools.getUsername();
quartzProjectAttendanceData.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
quartzProjectAttendanceData.setUpdateTime(DateUtils.getNowDate());
return attendanceDataMapper.updateSurProjectAttendanceData(quartzProjectAttendanceData);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteSurProjectAttendanceDataByIds(Long[] ids)
{
return attendanceDataMapper.deleteSurProjectAttendanceDataByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteSurProjectAttendanceDataById(Long id)
{
return attendanceDataMapper.deleteSurProjectAttendanceDataById(id);
}
/**
*
*
* @param list
* @return
*/
@Override
public int deleteSurProjectAttendanceDataByParams(List<String> list) {
return attendanceDataMapper.deleteSurProjectAttendanceDataByParams(list);
}
/**
*
*
* @param quartzProjectAttendanceDataList
* @return
*/
@Override
public int batchSurProjectAttendanceData(List<SurProjectAttendanceData> quartzProjectAttendanceDataList) {
return attendanceDataMapper.batchSurProjectAttendanceData(quartzProjectAttendanceDataList,DateUtils.dateTimeNow(DateUtils.YYYY));
}
@Override
public void add(SurProjectAttendanceData sdata) {
if(StringUtils.isEmpty(sdata.getWorkerId()) || StringUtils.isEmpty(sdata.getAttendanceTime())){
return;
}
SurProjectAttendanceData where=new SurProjectAttendanceData();
where.setVendorsCode(sdata.getVendorsCode());
where.setCfgid(sdata.getCfgid());
where.setWorkerId(sdata.getWorkerId());
where.setAttendanceTime(sdata.getAttendanceTime());
List<SurProjectAttendanceData> list=selectSurProjectAttendanceDataListEx(where);
if(list.size()==0){
//设置考勤其它参数
//查询人员信息
SurProjectAttendanceUser userWhere=new SurProjectAttendanceUser();
userWhere.setWorkerId(sdata.getWorkerId());
List<SurProjectAttendanceUser> uList= attendanceUserMapper.selectSurProjectAttendanceUserList(userWhere);
if(uList.size()==0){
return;
}
SurProjectAttendanceUser user=uList.get(0);
sdata.setWorkerName(user.getName());
String photo=user.getPhoto();
if(StrUtil.isEmpty(photo)){
photo=user.getRecentPhoto();
}
sdata.setWorkerPhoto(photo);
sdata.setWorkerGender(user.getGender());;
sdata.setGroupName(user.getGroupName());
sdata.setWorkTypeName(user.getWorkTypeName());
sdata.setEthnic(user.getEthnic());
sdata.setNativePlace(user.getNativePlace());
sdata.setPhone(user.getPhone());
sdata.setSpecWorkType(user.getSpecWorkType());
if("jgw".equals(sdata.getVendorsCode())) {
sdata.setCompanyId(user.getCompanyId());
}
//查询分组信息
SurProjectAttendanceGroup groupWhere=new SurProjectAttendanceGroup();
groupWhere.setCfgid(sdata.getCfgid());
groupWhere.setCompanyId(sdata.getCompanyId());
List<SurProjectAttendanceGroup> gList= attendanceGroupMapper.selectSurProjectAttendanceGroupList(groupWhere);
if(gList.size()==0){
return;
}
SurProjectAttendanceGroup group=gList.get(0);
sdata.setCompanyName(group.getCompanyName());
sdata.setCompanyTypeId(group.getCompanyTypeId());
//查询华筑的分组信息
if("huazhu".equals(sdata.getVendorsCode())){
sdata.setWorkerGender(sdata.getWorkerGender());
sdata.setCompanyTypeId(getHuazhuCompanyTypeId(group.getCompanyName()));//获取华筑的分包商类型
}
if("jgw".equals(sdata.getVendorsCode())){
//sdata.setWorkTypeName(group.getCompanyCode());
//sdata.setCompanyName(user.getCompanyName());
sdata.setWorkTypeName(user.getWorkTypeName());
sdata.setCompanyName(group.getCompanyName());
sdata.setGroupName(group.getTeamName());
}
//查询项目部门信息
SurProjectAttendanceCfg cfgWhere=new SurProjectAttendanceCfg();
cfgWhere.setId(sdata.getCfgid());
List<SurProjectAttendanceCfg> cfgList= attendanceCfgMapper.selectSurProjectAttendanceCfgListForAllInfo(cfgWhere);
if(cfgList.size()==0){
return;
}
SurProjectAttendanceCfg cfg=cfgList.get(0);
sdata.setProjectId(cfg.getProjectId());
sdata.setDeptId(cfg.getSubDeptId());
sdata.setProjectName(cfg.getProjectName());
sdata.setDeptName(cfg.getDeptName());
if(sdata.getCompanyTypeId()==null){
sdata.setCompanyTypeId("0");
}
insertSurProjectAttendanceData(sdata);
}else{
sdata.setId(list.get(0).getId());
SurProjectAttendanceData upData=list.get(0);
String dt1=upData.getAttendanceTime(); //
String dt2=upData.getAttendanceOutTime();
String dt3=sdata.getAttendanceTime();
if (StrUtil.isEmpty(dt3)) {
return;
}
long time3=DateUtil.parse(dt3).getTime();
if(StrUtil.isEmpty(dt2)){
upData.setAttendanceOutTime(dt3);
//比较 dt1,dt2 进行交换
long time2=DateUtil.parse(dt3).getTime();
long time1=DateUtil.parse(dt1).getTime();
if(time1>time2){
upData.setAttendanceTime(dt3);
upData.setAttendanceOutTime(dt1);
}
}else{
long time2=DateUtil.parse(dt2).getTime();
long time1=DateUtil.parse(dt1).getTime();
//比较 dt3<dt1 in->dt3
if(time3<time1){
upData.setAttendanceTime(dt3);
}
//比较 dt3>dt2 out->dt3
if(time3>time2){
upData.setAttendanceOutTime(dt3);
}
}
//upData.setAttendanceOutTime(sdata.getAttendanceTime());
if("jgw".equals(upData.getVendorsCode())){
upData.setRemark(sdata.getRemark());
}
updateSurProjectAttendanceData(upData);
}
}
private String getHuazhuCompanyTypeId(String groupName) {
return attendanceDataMapper.findHuaZhuCompanyType(groupName);
}
@Override
public String getLastServerId(SurProjectAttendanceData where) {
return ""+ attendanceDataMapper.getLastServerId(where);
}
@Override
public List<SurProjectAttendanceData> groupByComany(SurProjectAttendanceData where) {
return attendanceDataMapper.groupByComany(where);
}
@Override
public Long getHuazhuPage( SurProjectAttendanceData attWhere) {
return attendanceDataMapper.getHuazhuPage(attWhere);
}
@Override
public List<SurProjectAttendanceData> groupAllByComany(SurProjectAttendanceData where) {
return attendanceDataMapper.groupAllByComany(where);
}
@Override
public List<Map<String,Object>> initOtherData(Map<String,Object> data) {
List<Map<String,Object>> dataList = new ArrayList<>();
List<Map<String,Object>> list = attendanceDataMapper.initOtherData(data);
if(StringUtils.isNotEmpty(list)){
List<String> workerIds = list.stream().map(Map -> Map.get("workerId").toString()).collect(Collectors.toList());
data.put("list",workerIds);
List<SurProjectAttendanceUser> datas= attendanceUserMapper.todayAttendanceOtherData(data);
for (Map<String,Object> map:list) {
for(SurProjectAttendanceUser sau:datas){
if(Objects.equals(map.get("workerId").toString(),sau.getWorkerId())){
map.put("inTime",DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS,sau.getInTime()));
map.put("outTime",DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS,sau.getOutTime()));
dataList.add(map);
}
}
}
}
return dataList;
}
@Override
public List<Map<String,Object>> initHuaZhuData(Map<String,Object> data) {
List<Map<String,Object>> dataList = new ArrayList<>();
List<Map<String,Object>> list = attendanceDataMapper.initHuaZhuData(data);
if(StringUtils.isNotEmpty(list)){
List<String> workerIds = list.stream().map(Map -> Map.get("workerId").toString()).collect(Collectors.toList());
data.put("list",workerIds);
List<SurProjectAttendanceUser> datas= attendanceUserMapper.todayAttendanceOtherData(data);
for (Map<String,Object> map:list) {
for(SurProjectAttendanceUser sau:datas){
if(Objects.equals(map.get("workerId").toString(),sau.getWorkerId())){
map.put("inTime",DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS,sau.getInTime()));
map.put("outTime",DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS,sau.getOutTime()));
dataList.add(map);
}
}
}
}
return dataList;
}
@Override
public List<SurProjectAttendanceData> todayAttendance(SurProjectAttendanceData where) {
return attendanceDataMapper.todayAttendance(where);
}
/**
*
* @param where
* @return
*/
@Override
public List<Map<String, Object>> groupAllByParams(SurProjectAttendanceData where) {
return attendanceDataMapper.findGroupAllByParams(where);
}
/**
*
* @param where
* @return
*/
@Override
public List<Map<String, Object>> findGroupAllByDays(SurProjectAttendanceData where){
return attendanceDataMapper.findGroupAllByDays(where);
}
/**
*
* @param where
* @return
*/
@Override
public List<Map<String, Object>> groupDataByParams(SurProjectAttendanceData where){
return attendanceDataMapper.groupDataByParams(where);
}
/**
*
* @param where
* @return
*/
@Override
public List<SurProjectAttendanceData> attendanceDataList(SurProjectAttendanceData where) {
return attendanceDataMapper.attendanceDataList(where);
}
@Override
public List<SurProjectAttendanceData> groupTodayCompanyTypeId(SurProjectAttendanceData where) {
return attendanceDataMapper.groupTodayCompanyTypeId(where);
}
/**
*
* @param addList
*/
@Override
public void addList(List<SurProjectAttendanceData> addList) {
if(addList.size()==0){
return;
}
SurProjectAttendanceData where=new SurProjectAttendanceData();
where.setVendorsCode(addList.get(0).getVendorsCode());
where.setCfgid(addList.get(0).getCfgid());
where.setAttendanceTime(addList.get(0).getAttendanceTime());
List<SurProjectAttendanceData> oldList=selectSurProjectAttendanceDataListEx(where);
for(SurProjectAttendanceData sdata:addList){
List<SurProjectAttendanceData> list=oldList.stream().filter(d->d.getWorkerId().equals(sdata.getWorkerId())).collect(Collectors.toList());
if(list.size()==0){
//设置考勤其它参数
//查询人员信息
SurProjectAttendanceUser userWhere=new SurProjectAttendanceUser();
userWhere.setWorkerId(sdata.getWorkerId());
List<SurProjectAttendanceUser> uList= attendanceUserMapper.selectSurProjectAttendanceUserList(userWhere);
if(uList.size()==0){
return;
}
SurProjectAttendanceUser user=uList.get(0);
sdata.setWorkerName(user.getName());
String photo=user.getPhoto();
if(StrUtil.isEmpty(photo)){
photo=user.getRecentPhoto();
}
sdata.setWorkerPhoto(photo);
sdata.setWorkerGender(user.getGender());;
sdata.setGroupName(user.getGroupName());
sdata.setWorkTypeName(user.getWorkTypeName());
sdata.setEthnic(user.getEthnic());
sdata.setNativePlace(user.getNativePlace());
sdata.setPhone(user.getPhone());
sdata.setSpecWorkType(user.getSpecWorkType());
if("jgw".equals(sdata.getVendorsCode())) {
sdata.setCompanyId(user.getCompanyId());
}
//查询分组信息
SurProjectAttendanceGroup groupWhere=new SurProjectAttendanceGroup();
groupWhere.setCfgid(sdata.getCfgid());
groupWhere.setCompanyId(sdata.getCompanyId());
List<SurProjectAttendanceGroup> gList= attendanceGroupMapper.selectSurProjectAttendanceGroupList(groupWhere);
if(gList.size()==0){
return;
}
SurProjectAttendanceGroup group=gList.get(0);
sdata.setCompanyName(group.getCompanyName());
sdata.setCompanyTypeId(group.getCompanyTypeId());
//查询华筑的分组信息
if("huazhu".equals(sdata.getVendorsCode())){
sdata.setWorkerGender(sdata.getWorkerGender());
sdata.setCompanyTypeId(getHuazhuCompanyTypeId(group.getCompanyName()));//获取华筑的分包商类型
}
if("jgw".equals(sdata.getVendorsCode())){
//sdata.setWorkTypeName(group.getCompanyCode());
//sdata.setCompanyName(user.getCompanyName());
sdata.setWorkTypeName(user.getWorkTypeName());
sdata.setCompanyName(group.getCompanyName());
sdata.setGroupName(group.getTeamName());
}
//查询项目部门信息
SurProjectAttendanceCfg cfgWhere=new SurProjectAttendanceCfg();
cfgWhere.setId(sdata.getCfgid());
List<SurProjectAttendanceCfg> cfgList= attendanceCfgMapper.selectSurProjectAttendanceCfgListForAllInfo(cfgWhere);
if(cfgList.size()==0){
return;
}
SurProjectAttendanceCfg cfg=cfgList.get(0);
sdata.setProjectId(cfg.getProjectId());
sdata.setDeptId(cfg.getSubDeptId());
sdata.setProjectName(cfg.getProjectName());
sdata.setDeptName(cfg.getDeptName());
if(sdata.getCompanyTypeId()==null){
sdata.setCompanyTypeId("0");
}
insertSurProjectAttendanceData(sdata);
}else{
sdata.setId(list.get(0).getId());
SurProjectAttendanceData upData=list.get(0);
String dt1=upData.getAttendanceTime(); //
String dt2=upData.getAttendanceOutTime();
String dt3=sdata.getAttendanceTime();
if (StrUtil.isEmpty(dt3)) {
return;
}
long time3=DateUtil.parse(dt3).getTime();
if(StrUtil.isEmpty(dt2)){
upData.setAttendanceOutTime(dt3);
//比较 dt1,dt2 进行交换
long time2=DateUtil.parse(dt3).getTime();
long time1=DateUtil.parse(dt1).getTime();
if(time1>time2){
upData.setAttendanceTime(dt3);
upData.setAttendanceOutTime(dt1);
}
}else{
long time2=DateUtil.parse(dt2).getTime();
long time1=DateUtil.parse(dt1).getTime();
//比较 dt3<dt1 in->dt3
if(time3<time1){
upData.setAttendanceTime(dt3);
}
//比较 dt3>dt2 out->dt3
if(time3>time2){
upData.setAttendanceOutTime(dt3);
}
}
//upData.setAttendanceOutTime(sdata.getAttendanceTime());
if("jgw".equals(upData.getVendorsCode())){
upData.setRemark(sdata.getRemark());
}
updateSurProjectAttendanceData(upData);
}
}
}
}

View File

@ -1,165 +0,0 @@
package com.yanzhu.xd.system.service.impl;
import java.util.List;
import cn.hutool.core.util.StrUtil;
import com.ruoyi.common.utils.DateUtils;
import com.yanzhu.xd.system.utils.SecurityTools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.xd.system.mapper.SurProjectAttendanceGroupMapper;
import com.yanzhu.xd.system.domain.SurProjectAttendanceGroup;
import com.yanzhu.xd.system.service.ISurProjectAttendanceGroupService;
import com.ruoyi.common.core.text.Convert;
/**
* Service
*
* @author ruoyi
* @date 2024-10-25
*/
@Service
public class SurProjectAttendanceGroupServiceImpl implements ISurProjectAttendanceGroupService
{
@Autowired
private SurProjectAttendanceGroupMapper attendanceGroupMapper;
/**
* 广
*
* @param id 广
* @return 广
*/
@Override
public SurProjectAttendanceGroup selectSurProjectAttendanceGroupById(Long id)
{
return attendanceGroupMapper.selectSurProjectAttendanceGroupById(id);
}
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return 广
*/
@Override
public List<SurProjectAttendanceGroup> selectSurProjectAttendanceGroupViewList(SurProjectAttendanceGroup quartzProjectAttendanceGroup)
{
return attendanceGroupMapper.selectSurProjectAttendanceGroupViewList(quartzProjectAttendanceGroup);
}
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return 广
*/
public List<SurProjectAttendanceGroup> selectSurProjectAttendanceGroupList(SurProjectAttendanceGroup quartzProjectAttendanceGroup) {
return attendanceGroupMapper.selectSurProjectAttendanceGroupList(quartzProjectAttendanceGroup);
}
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return
*/
@Override
public int insertSurProjectAttendanceGroup(SurProjectAttendanceGroup quartzProjectAttendanceGroup)
{
String userName= SecurityTools.getUsername();
quartzProjectAttendanceGroup.setCreateBy(StrUtil.isEmpty(userName)?"task":userName);
quartzProjectAttendanceGroup.setCreateTime(DateUtils.getNowDate());
return attendanceGroupMapper.insertSurProjectAttendanceGroup(quartzProjectAttendanceGroup);
}
/**
* 广
*
* @param quartzProjectAttendanceGroup 广
* @return
*/
@Override
public int updateSurProjectAttendanceGroup(SurProjectAttendanceGroup quartzProjectAttendanceGroup)
{
String userName= SecurityTools.getUsername();
quartzProjectAttendanceGroup.setUpdateBy(StrUtil.isEmpty(userName)?"task":userName);
quartzProjectAttendanceGroup.setUpdateTime(DateUtils.getNowDate());
return attendanceGroupMapper.updateSurProjectAttendanceGroup(quartzProjectAttendanceGroup);
}
/**
* 广
*
* @param ids 广
* @return
*/
@Override
public int deleteSurProjectAttendanceGroupByIds(Long[] ids)
{
return attendanceGroupMapper.deleteSurProjectAttendanceGroupByIds(ids);
}
/**
* 广
*
* @param id 广
* @return
*/
@Override
public int deleteSurProjectAttendanceGroupById(Long id)
{
return attendanceGroupMapper.deleteSurProjectAttendanceGroupById(id);
}
/**
* 广
*
* @param list
* @return
*/
@Override
public int deleteSurProjectAttendanceGroupByParams(List<String> list) {
return attendanceGroupMapper.deleteSurProjectAttendanceGroupByParams(list);
}
/**
* 广
*
* @param quartzProjectAttendanceGroupList 广
* @return
*/
@Override
public int batchSurProjectAttendanceGroup(List<SurProjectAttendanceGroup> quartzProjectAttendanceGroupList) {
return attendanceGroupMapper.batchSurProjectAttendanceGroup(quartzProjectAttendanceGroupList);
}
@Override
public void add(SurProjectAttendanceGroup group) {
SurProjectAttendanceGroup where=new SurProjectAttendanceGroup();
where.setServerid(group.getServerid());
where.setCfgid(group.getCfgid());
List<SurProjectAttendanceGroup> list=selectSurProjectAttendanceGroupList(where);
if(list.size()==0){
insertSurProjectAttendanceGroup(group);
}else{
group.setId(list.get(0).getId());
updateSurProjectAttendanceGroup(group);
}
}
/**
*
* @param group
*/
@Override
public void updateJgw(SurProjectAttendanceGroup group) {
SurProjectAttendanceGroup where=new SurProjectAttendanceGroup();
where.setBizLicense(group.getBizLicense());
List<SurProjectAttendanceGroup> list=selectSurProjectAttendanceGroupList(where);
for(SurProjectAttendanceGroup g:list){
g.setCompanyTypeId(group.getCompanyTypeId());
updateSurProjectAttendanceGroup(g);
}
}
}

View File

@ -1,314 +0,0 @@
package com.yanzhu.xd.system.service.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.xd.system.mapper.SurProjectAttendanceUserMapper;
import com.yanzhu.xd.system.domain.SurProjectAttendanceUser;
import com.yanzhu.xd.system.service.ISurProjectAttendanceUserService;
import com.ruoyi.common.core.text.Convert;
/**
* Service
*
* @author ruoyi
* @date 2024-10-25
*/
@Service
public class SurProjectAttendanceUserServiceImpl implements ISurProjectAttendanceUserService
{
@Autowired
private SurProjectAttendanceUserMapper attendanceUserMapper;
/**
*
*
* @param id
* @return
*/
@Override
public SurProjectAttendanceUser selectSurProjectAttendanceUserById(Long id)
{
return attendanceUserMapper.selectSurProjectAttendanceUserById(id);
}
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
@Override
public SurProjectAttendanceUser findCurrentAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser) {
return attendanceUserMapper.findCurrentAttendanceUser(quartzProjectAttendanceUser);
}
/**
* []
*
* @param quartzProjectAttendanceUser
* @return
*/
public SurProjectAttendanceUser findYzCurrentAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser){
return attendanceUserMapper.findYzCurrentAttendanceUser(quartzProjectAttendanceUser);
}
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
@Override
public List<SurProjectAttendanceUser> selectSurProjectAttendanceUserList(SurProjectAttendanceUser quartzProjectAttendanceUser)
{
return attendanceUserMapper.selectSurProjectAttendanceUserList(quartzProjectAttendanceUser);
}
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
@Override
public int insertSurProjectAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser)
{
if(StringUtils.isEmpty(quartzProjectAttendanceUser.getCreateBy())){
quartzProjectAttendanceUser.setCreateBy("task");
quartzProjectAttendanceUser.setCreateTime(DateUtils.getNowDate());
}
return attendanceUserMapper.insertSurProjectAttendanceUser(quartzProjectAttendanceUser);
}
/**
*
*
* @param quartzProjectAttendanceUser
* @return
*/
@Override
public int updateSurProjectAttendanceUser(SurProjectAttendanceUser quartzProjectAttendanceUser)
{
if(StringUtils.isEmpty(quartzProjectAttendanceUser.getCreateBy())){
quartzProjectAttendanceUser.setUpdateBy("task");
}
quartzProjectAttendanceUser.setUpdateTime(DateUtils.getNowDate());
return attendanceUserMapper.updateSurProjectAttendanceUser(quartzProjectAttendanceUser);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteSurProjectAttendanceUserByIds(Long[] ids)
{
return attendanceUserMapper.deleteSurProjectAttendanceUserByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteSurProjectAttendanceUserById(Long id)
{
return attendanceUserMapper.deleteSurProjectAttendanceUserById(id);
}
/**
*
*
* @param list
* @return
*/
@Override
public int deleteSurProjectAttendanceUserByParams(List<String> list) {
return attendanceUserMapper.deleteSurProjectAttendanceUserByParams(list);
}
/**
*
*
* @param quartzProjectAttendanceUserList
* @return
*/
@Override
public int batchSurProjectAttendanceUser(List<SurProjectAttendanceUser> quartzProjectAttendanceUserList) {
return attendanceUserMapper.batchSurProjectAttendanceUser(quartzProjectAttendanceUserList);
}
@Override
public void add(SurProjectAttendanceUser user) {
SurProjectAttendanceUser where=new SurProjectAttendanceUser();
where.setWorkerId(user.getWorkerId());
where.setCfgid(user.getCfgid());
List<SurProjectAttendanceUser> list=selectSurProjectAttendanceUserList(where);
if(list.size()==0){
insertSurProjectAttendanceUser(user);
}else{
SurProjectAttendanceUser old=list.get(0);
if(user.getVendorsCode().equals("jgw")){
user.setCompanyId(old.getCompanyId());
String oldNav=old.getNativePlace();
String newNav=user.getNativePlace();
if(oldNav==null || !oldNav.equals(newNav)){
old.setNativePlace(newNav);
}
}
user.setId(old.getId());
updateSurProjectAttendanceUser(user);
}
}
@Override
public List<SurProjectAttendanceUser> queryAttendanceData(SurProjectAttendanceUser where) {
List<SurProjectAttendanceUser> list= attendanceUserMapper.queryAttendanceUsers(where);
List<String> workerIds=new ArrayList<>();
for(SurProjectAttendanceUser u: list){
workerIds.add(u.getWorkerId());
}
where.setWorkerIds(workerIds);
List<SurProjectAttendanceUser> datas= attendanceUserMapper.todayAttendanceData(workerIds);
for (SurProjectAttendanceUser u:list) {
u.setInTime(findDate(datas,u,"E"));
u.setOutTime(findDate(datas,u,"L"));
}
return list;
}
@Override
public long countTodayAttendance(SurProjectAttendanceUser where) {
return attendanceUserMapper.countTodayAttendance(where);
}
@Override
public List<SurProjectAttendanceUser> todayAttendance(SurProjectAttendanceUser where) {
if(where.getIndex()<1){
where.setIndex(1);
}
where.setIndex((where.getIndex()-1)* where.getSize());
List<SurProjectAttendanceUser> list= attendanceUserMapper.todayAttendance(where);
List<String> workerIds=new ArrayList<>();
for(SurProjectAttendanceUser u: list){
workerIds.add(u.getWorkerId());
}
List<SurProjectAttendanceUser> datas= attendanceUserMapper.todayAttendanceData(workerIds);
for (SurProjectAttendanceUser u:list) {
u.setInTime(findDate(datas,u,"E"));
u.setOutTime(findDate(datas,u,"L"));
}
return list;
}
@Override
public long countAttendance(SurProjectAttendanceUser user) {
SurProjectAttendanceUser where=new SurProjectAttendanceUser();
where.setCreateBy(user.getCreateBy());
where.setSubDeptId(user.getSubDeptId());
where.setProjectId(user.getProjectId());
return attendanceUserMapper.countAttendance(where);
}
@Override
public List<SurProjectAttendanceUser> selectSurProjectAttendanceUserListJgw(SurProjectAttendanceUser quartzProjectAttendanceUser) {
return attendanceUserMapper.selectSurProjectAttendanceUserListJgw(quartzProjectAttendanceUser);
}
/**
*
* @param where
* @return
*/
@Override
public List<SurProjectAttendanceUser> queryWorkerOnDuty(SurProjectAttendanceUser where) {
return attendanceUserMapper.queryWorkerOnDuty(where);
}
/**
*
* @param where
* @return
*/
public List<Map<String, Object>> groupUserByParams(SurProjectAttendanceUser where){
return attendanceUserMapper.groupUserByParams(where);
}
/**
*
* @param where
* @return
*/
@Override
public List<SurProjectAttendanceUser> attendanceUserList(SurProjectAttendanceUser where){
return attendanceUserMapper.attendanceUserList(where);
}
/**
*
* @param projectId
* @return
*/
@Override
public List<Map<String, Object>> findUserAllByDays(Long projectId){
return attendanceUserMapper.findUserAllByDays(projectId);
}
/**
*
* @param where
* @return
*/
@Override
public List<SurProjectAttendanceUser> groupByWorkerOnDutyByDept(SurProjectAttendanceUser where) {
return attendanceUserMapper.groupByWorkerOnDutyByDept(where);
}
@Override
public List<SurProjectAttendanceUser> querySurProjectAttendanceUserList(SurProjectAttendanceUser quartzProjectAttendanceUser) {
return attendanceUserMapper.querySurProjectAttendanceUserList(quartzProjectAttendanceUser);
}
/**
* |
* @param where
* @return
*/
@Override
public List<SurProjectAttendanceUser> groupByWorkerByDept(SurProjectAttendanceUser where) {
return attendanceUserMapper.groupByWorkerByDept(where);
}
/**
* |
* @param where
* @return
*/
@Override
public List<SurProjectAttendanceUser> queryWorkerByState(SurProjectAttendanceUser where) {
return attendanceUserMapper.queryWorkerByState(where);
}
private Date findDate(List<SurProjectAttendanceUser> datas, SurProjectAttendanceUser u, String type) {
for (SurProjectAttendanceUser user:datas) {
if(user.getWorkerId().equals(u.getWorkerId()) && user.getName().equals(type)){
if(type.equals("L")){
return user.getOutTime();
}else{
return user.getInTime();
}
}
}
return null;
}
}

View File

@ -1,97 +0,0 @@
package com.yanzhu.xd.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.xd.system.mapper.SurProjectMapper;
import com.yanzhu.xd.system.domain.SurProject;
import com.yanzhu.xd.system.service.ISurProjectService;
import com.ruoyi.common.core.text.Convert;
/**
* Service
*
* @author ruoyi
* @date 2024-10-25
*/
@Service
public class SurProjectServiceImpl implements ISurProjectService
{
@Autowired
private SurProjectMapper surProjectMapper;
/**
*
*
* @param id ID
* @return
*/
@Override
public SurProject selectSurProjectById(Long id)
{
return surProjectMapper.selectSurProjectById(id);
}
/**
*
*
* @param surProject
* @return
*/
@Override
public List<SurProject> selectSurProjectList(SurProject surProject)
{
return surProjectMapper.selectSurProjectList(surProject);
}
/**
*
*
* @param surProject
* @return
*/
@Override
public int insertSurProject(SurProject surProject)
{
surProject.setCreateTime(DateUtils.getNowDate());
return surProjectMapper.insertSurProject(surProject);
}
/**
*
*
* @param surProject
* @return
*/
@Override
public int updateSurProject(SurProject surProject)
{
surProject.setUpdateTime(DateUtils.getNowDate());
return surProjectMapper.updateSurProject(surProject);
}
/**
*
*
* @param ids ID
* @return
*/
@Override
public int deleteSurProjectByIds(String ids)
{
return surProjectMapper.deleteSurProjectByIds(Convert.toStrArray(ids));
}
/**
*
*
* @param id ID
* @return
*/
@Override
public int deleteSurProjectById(Long id)
{
return surProjectMapper.deleteSurProjectById(id);
}
}

View File

@ -1,99 +0,0 @@
package com.yanzhu.xd.system.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yanzhu.xd.system.mapper.SysNativeMapper;
import com.yanzhu.xd.system.domain.SysNative;
import com.yanzhu.xd.system.service.ISysNativeService;
import com.ruoyi.common.core.text.Convert;
/**
* Service
*
* @author ruoyi
* @date 2024-10-26
*/
@Service
public class SysNativeServiceImpl implements ISysNativeService
{
@Autowired
private SysNativeMapper sysNativeMapper;
/**
*
*
* @param id ID
* @return
*/
@Override
public SysNative selectSysNativeById(Long id)
{
return sysNativeMapper.selectSysNativeById(id);
}
/**
*
*
* @param sysNative
* @return
*/
@Override
public List<SysNative> selectSysNativeList(SysNative sysNative)
{
return sysNativeMapper.selectSysNativeList(sysNative);
}
/**
*
*
* @param sysNative
* @return
*/
@Override
public int insertSysNative(SysNative sysNative)
{
return sysNativeMapper.insertSysNative(sysNative);
}
/**
*
*
* @param sysNative
* @return
*/
@Override
public int updateSysNative(SysNative sysNative)
{
return sysNativeMapper.updateSysNative(sysNative);
}
/**
*
*
* @param ids ID
* @return
*/
@Override
public int deleteSysNativeByIds(String ids)
{
return sysNativeMapper.deleteSysNativeByIds(Convert.toStrArray(ids));
}
/**
*
*
* @param id ID
* @return
*/
@Override
public int deleteSysNativeById(Long id)
{
return sysNativeMapper.deleteSysNativeById(id);
}
@Override
public List<SysNative> selectSysNativeListById(long id) {
return sysNativeMapper.selectSysNativeListById(id);
}
}

View File

@ -1,25 +0,0 @@
package com.yanzhu.xd.system.task;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import java.io.IOException;
public class AttendanceTask {
public static String getResult(Request request) {
OkHttpClient client = new OkHttpClient();
Response response;
try {
response = client.newCall(request).execute();
if (response.body() != null) {
return response.body().string();
} else {
throw new RuntimeException();
}
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException();
}
}
}

View File

@ -1,13 +0,0 @@
package com.yanzhu.xd.system.utils;
import com.ruoyi.common.utils.ShiroUtils;
public class SecurityTools {
public static String getUsername() {
try {
return ShiroUtils.getLoginName();
} catch (Exception e) {
return "task";
}
}
}

View File

@ -1,176 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yanzhu.xd.system.mapper.DevTowerProjectConfigMapper">
<resultMap type="DevTowerProjectConfig" id="DevTowerProjectConfigResult">
<result property="id" column="id" />
<result property="projectId" column="project_id" />
<result property="projectName" column="projectName" />
<result property="deviceSn" column="device_sn" />
<result property="deviceName" column="device_name" />
<result property="deviceSource" column="device_source" />
<result property="towerId" column="tower_id" />
<result property="towerType" column="tower_type" />
<result property="coordinateX" column="coordinate_x" />
<result property="coordinateY" column="coordinate_y" />
<result property="frontBrachium" column="front_brachium" />
<result property="afterBrachium" column="after_brachium" />
<result property="towerBodyHeight" column="tower_body_height" />
<result property="towerCapHeight" column="tower_cap_height" />
<result property="towerSectionHeight" column="tower_section_height" />
<result property="online" column="online" />
<result property="driName" column="dri_name" />
<result property="driPhone" column="dri_phone" />
<result property="safName" column="saf_name" />
<result property="safPhone" column="saf_phone" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectDevTowerProjectConfigVo">
select dtpc.id, dtpc.project_id, sp.projectName, dtpc.device_sn, dtpc.device_name, dtpc.device_source, dtpc.tower_id, dtpc.tower_type, dtpc.coordinate_x, dtpc.coordinate_y, dtpc.front_brachium, dtpc.after_brachium, dtpc.tower_body_height, dtpc.tower_cap_height, dtpc.tower_section_height, dtpc.online, dtpc.dri_name, dtpc.dri_phone, dtpc.saf_name, dtpc.saf_phone, dtpc.is_del, dtpc.create_by, dtpc.create_time, dtpc.update_by, dtpc.update_time, dtpc.remark from dev_tower_project_config dtpc
left join sur_project sp on sp.id = dtpc.project_id
</sql>
<select id="selectDevTowerProjectConfigList" parameterType="DevTowerProjectConfig" resultMap="DevTowerProjectConfigResult">
<include refid="selectDevTowerProjectConfigVo"/>
<where>
<if test="projectId != null "> and dtpc.project_id = #{projectId}</if>
<if test="projectName != null and projectName != ''"> and sp.projectName like concat('%', #{projectName}, '%')</if>
<if test="deviceSn != null and deviceSn != ''"> and dtpc.device_sn = #{deviceSn}</if>
<if test="deviceName != null and deviceName != ''"> and dtpc.device_name like concat('%', #{deviceName}, '%')</if>
<if test="deviceSource != null and deviceSource != ''"> and dtpc.device_source = #{deviceSource}</if>
<if test="towerId != null and towerId != ''"> and dtpc.tower_id = #{towerId}</if>
<if test="towerType != null and towerType != ''"> and dtpc.tower_type = #{towerType}</if>
<if test="isDel != null "> and dtpc.is_del = #{isDel}</if>
</where>
order by dtpc.id desc
</select>
<select id="selectDevTowerProjectConfigById" parameterType="Long" resultMap="DevTowerProjectConfigResult">
<include refid="selectDevTowerProjectConfigVo"/>
where dtpc.id = #{id}
</select>
<select id="selectDevTowerProjectConfigBySn" parameterType="String" resultMap="DevTowerProjectConfigResult">
<include refid="selectDevTowerProjectConfigVo"/>
where dtpc.device_sn = #{sn} and dtpc.is_del = '0'
</select>
<insert id="insertDevTowerProjectConfig" parameterType="DevTowerProjectConfig" useGeneratedKeys="true" keyProperty="id">
insert into dev_tower_project_config
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="projectId != null">project_id,</if>
<if test="deptId != null">dept_id,</if>
<if test="deviceSn != null">device_sn,</if>
<if test="deviceName != null">device_name,</if>
<if test="deviceSource != null">device_source,</if>
<if test="towerType != null">tower_type,</if>
<if test="towerId != null">tower_id,</if>
<if test="coordinateX != null">coordinate_x,</if>
<if test="coordinateY != null">coordinate_y,</if>
<if test="frontBrachium != null">front_brachium,</if>
<if test="afterBrachium != null">after_brachium,</if>
<if test="towerBodyHeight != null">tower_body_height,</if>
<if test="towerCapHeight != null">tower_cap_height,</if>
<if test="towerSectionHeight != null">tower_section_height,</if>
<if test="online != null">online,</if>
<if test="driName != null">dri_name,</if>
<if test="driPhone != null">dri_phone,</if>
<if test="safName != null">saf_name,</if>
<if test="safPhone != null">saf_phone,</if>
<if test="isDel != null">is_del,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="projectId != null">#{projectId},</if>
<if test="deptId != null">#{deptId},</if>
<if test="deviceSn != null">#{deviceSn},</if>
<if test="deviceName != null">#{deviceName},</if>
<if test="deviceSource != null">#{deviceSource},</if>
<if test="towerType != null">#{towerType},</if>
<if test="towerId != null">#{towerId},</if>
<if test="coordinateX != null">#{coordinateX},</if>
<if test="coordinateY != null">#{coordinateY},</if>
<if test="frontBrachium != null">#{frontBrachium},</if>
<if test="afterBrachium != null">#{afterBrachium},</if>
<if test="towerBodyHeight != null">#{towerBodyHeight},</if>
<if test="towerCapHeight != null">#{towerCapHeight},</if>
<if test="towerSectionHeight != null">#{towerSectionHeight},</if>
<if test="online != null">#{online},</if>
<if test="driName != null">#{driName},</if>
<if test="driPhone != null">#{driPhone},</if>
<if test="safName != null">#{safName},</if>
<if test="safPhone != null">#{safPhone},</if>
<if test="isDel != null">#{isDel},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateDevTowerProjectConfig" parameterType="DevTowerProjectConfig">
update dev_tower_project_config
<trim prefix="SET" suffixOverrides=",">
<if test="projectId != null">project_id = #{projectId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="deviceSn != null">device_sn = #{deviceSn},</if>
<if test="deviceName != null">device_name = #{deviceName},</if>
<if test="deviceSource != null">device_source = #{deviceSource},</if>
<if test="towerType != null">tower_type = #{towerType},</if>
<if test="towerId != null">tower_id = #{towerId},</if>
<if test="coordinateX != null">coordinate_x = #{coordinateX},</if>
<if test="coordinateY != null">coordinate_y = #{coordinateY},</if>
<if test="frontBrachium != null">front_brachium = #{frontBrachium},</if>
<if test="afterBrachium != null">after_brachium = #{afterBrachium},</if>
<if test="towerBodyHeight != null">tower_body_height = #{towerBodyHeight},</if>
<if test="towerCapHeight != null">tower_cap_height = #{towerCapHeight},</if>
<if test="towerSectionHeight != null">tower_section_height = #{towerSectionHeight},</if>
<if test="online != null">online = #{online},</if>
<if test="driName != null">dri_name = #{driName},</if>
<if test="driPhone != null">dri_phone = #{driPhone},</if>
<if test="safName != null">saf_name = #{safName},</if>
<if test="safPhone != null">saf_phone = #{safPhone},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<update id="deleteDevTowerProjectConfigById" parameterType="Long">
update dev_tower_project_config set is_del=1 where id = #{id}
</update>
<update id="deleteDevTowerProjectConfigByIds" parameterType="String">
update dev_tower_project_config set is_del=1 where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
<select id="findtowerConfigGroupOnline" parameterType="DevTowerProjectConfig" resultType="Map">
select online, count(1) as total from dev_tower_project_config
<where>
<if test="projectId != null "> and project_id = #{projectId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
</where>
group by online
</select>
</mapper>

View File

@ -1,123 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yanzhu.xd.system.mapper.SurProjectAttendanceCfgMapper">
<resultMap type="SurProjectAttendanceCfg" id="SurProjectAttendanceCfgResult">
<result property="id" column="id" />
<result property="projectId" column="project_id" />
<result property="subDeptId" column="sub_dept_id" />
<result property="vendorsCode" column="vendors_code" />
<result property="vendorsParameter" column="vendors_parameter" />
<result property="enabled" column="enabled" />
<result property="state" column="state" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="projectName" column="projectName"/>
<result property="deptName" column="dept_name"/>
<result property="unitName" column="unitName"/>
<result property="vendorName" column="vendorName"/>
</resultMap>
<sql id="selectSurProjectAttendanceCfgVo">
select *
from (
SELECT a.*,sp.projectName,pu.unitName,sdd1.dict_label vendorName FROM sur_project_attendance_cfg a
LEFT JOIN sur_project sp ON a.project_id = sp.id
LEFT JOIN sur_project_unit_info pu ON a.sub_dept_id=pu.unitId AND a.project_id=pu.projectId
LEFT JOIN sys_dict_data sdd1 ON sdd1.dict_type = 'attendance_vendors' AND sdd1.dict_value = a.vendors_code
) sur_project_attendance_cfg
</sql>
<select id="selectSurProjectAttendanceCfgList" parameterType="SurProjectAttendanceCfg" resultMap="SurProjectAttendanceCfgResult">
<include refid="selectSurProjectAttendanceCfgVo"/>
<where>
<if test="projectId != null "> and project_id = #{projectId}</if>
<if test="subDeptId != null "> and sub_dept_id = #{subDeptId}</if>
<if test="vendorsCode != null and vendorsCode != ''"> and vendors_code = #{vendorsCode}</if>
<if test="vendorsParameter != null and vendorsParameter != ''"> and vendors_parameter = #{vendorsParameter}</if>
<if test="enabled != null "> and enabled = #{enabled}</if>
<if test="state != null "> and state = #{state}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectSurProjectAttendanceCfgListForAllInfo" parameterType="SurProjectAttendanceCfg" resultMap="SurProjectAttendanceCfgResult">
SELECT a.*,b.projectName,c.`unitName` dept_name
FROM sur_project_attendance_cfg a,sur_project b,sur_project_unit_info c WHERE a.project_id=b.id AND c.`unitId`=b.`deptId`
<if test="id != null "> and a.id = #{id}</if>
</select>
<select id="selectSurProjectAttendanceCfgById" parameterType="Long" resultMap="SurProjectAttendanceCfgResult">
<include refid="selectSurProjectAttendanceCfgVo"/>
where id = #{id}
</select>
<insert id="insertSurProjectAttendanceCfg" parameterType="SurProjectAttendanceCfg" useGeneratedKeys="true" keyProperty="id">
insert into sur_project_attendance_cfg
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="projectId != null">project_id,</if>
<if test="subDeptId != null">sub_dept_id,</if>
<if test="vendorsCode != null">vendors_code,</if>
<if test="vendorsParameter != null">vendors_parameter,</if>
<if test="enabled != null">enabled,</if>
<if test="state != null">state,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="projectId != null">#{projectId},</if>
<if test="subDeptId != null">#{subDeptId},</if>
<if test="vendorsCode != null">#{vendorsCode},</if>
<if test="vendorsParameter != null">#{vendorsParameter},</if>
<if test="enabled != null">#{enabled},</if>
<if test="state != null">#{state},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateSurProjectAttendanceCfg" parameterType="SurProjectAttendanceCfg">
update sur_project_attendance_cfg
<trim prefix="SET" suffixOverrides=",">
<if test="projectId != null">project_id = #{projectId},</if>
<if test="subDeptId != null">sub_dept_id = #{subDeptId},</if>
<if test="vendorsCode != null">vendors_code = #{vendorsCode},</if>
<if test="vendorsParameter != null">vendors_parameter = #{vendorsParameter},</if>
<if test="enabled != null">enabled = #{enabled},</if>
<if test="state != null">state = #{state},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSurProjectAttendanceCfgById" parameterType="Long">
delete from sur_project_attendance_cfg where id = #{id}
</delete>
<delete id="deleteSurProjectAttendanceCfgByIds" parameterType="String">
delete from sur_project_attendance_cfg where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -1,571 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yanzhu.xd.system.mapper.SurProjectAttendanceDataMapper">
<resultMap type="SurProjectAttendanceData" id="SurProjectAttendanceDataResult">
<result property="id" column="id" />
<result property="cfgid" column="cfgid" />
<result property="appId" column="app_id" />
<result property="projectId" column="projectId" />
<result property="projectName" column="projectName" />
<result property="deptId" column="deptId" />
<result property="deptName" column="deptName" />
<result property="vendorsCode" column="vendors_code" />
<result property="serverid" column="serverid" />
<result property="workerId" column="workerId" />
<result property="workerName" column="workerName" />
<result property="identification" column="identification" />
<result property="workerPhoto" column="workerPhoto" />
<result property="workerGender" column="workerGender" />
<result property="birthDate" column="birthDate" />
<result property="ethnic" column="ethnic" />
<result property="nativePlace" column="nativePlace" />
<result property="phone" column="phone" />
<result property="workTypeName" column="workTypeName" />
<result property="specWorkType" column="specWorkType" />
<result property="groupName" column="groupName" />
<result property="companyTypeId" column="companyTypeId" />
<result property="companyName" column="companyName" />
<result property="attendanceTime" column="attendance_time" />
<result property="attendanceOutTime" column="attendance_out_time" />
<result property="scanPhoto" column="scanPhoto" />
<result property="teamId" column="teamId" />
<result property="workTypeCode" column="workTypeCode" />
<result property="companyId" column="companyId" />
<result property="vendorId" column="vendorId" />
<result property="deviceCode" column="device_code" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectSurProjectAttendanceDataVo">
select
id,
cfgid,
app_id,
projectId,
projectName,
deptId,
deptName,
vendors_code,
serverid,
workerId,
workerName,
identification,
workerPhoto,
workerGender,
birthDate,
ethnic,
nativePlace,
phone,
workTypeName,
specWorkType,
groupName,
companyTypeId,
companyName,
attendance_time,
attendance_out_time,
scanPhoto,
teamId,
workTypeCode,
companyId,
vendorId,
device_code,
is_del,
create_by,
create_time,
update_by,
update_time,
remark
from sur_project_attendance_data_${year}
</sql>
<select id="findCurrentAttendanceData" parameterType="SurProjectAttendanceData" resultMap="SurProjectAttendanceDataResult">
select * from sur_project_attendance_data_${year}
<where>
<if test="cfgid != null "> and cfgid = #{cfgid}</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="workerId != null and workerId != ''"> and workerId = #{workerId}</if>
<if test="attendanceTime != null and attendanceTime != ''"> and date(attendance_time) = date(#{attendanceTime})</if>
</where>
order by id desc LIMIT 1
</select>
<select id="selectSurProjectAttendanceDataListEx" parameterType="SurProjectAttendanceData" resultMap="SurProjectAttendanceDataResult">
select * from sur_project_attendance_data_${year}
<where>
<if test="cfgid != null "> and cfgid = #{cfgid}</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="projectId != null "> and projectId = #{projectId}</if>
<if test="deptId != null "> and deptId = #{deptId}</if>
<if test="vendorsCode != null and vendorsCode != ''"> and vendors_code = #{vendorsCode}</if>
<if test="serverid != null "> and serverid = #{serverid}</if>
<if test="workerId != null "> and workerId = #{workerId}</if>
<if test="identification != null and identification != ''"> and identification = #{identification}</if>
<if test="teamId != null "> and teamId = #{teamId}</if>
<if test="workTypeCode != null and workTypeCode != ''"> and workTypeCode = #{workTypeCode}</if>
<if test="companyId != null "> and companyId = #{companyId}</if>
<if test="vendorId != null "> and vendorId = #{vendorId}</if>
<if test="deviceCode != null and deviceCode != ''"> and device_code = #{deviceCode}</if>
<if test="companyTypeId!=null">
<if test="companyTypeId>100">
<if test="companyTypeId==101">
and companyTypeId in (1,6)
</if>
<if test="companyTypeId==102">
and companyTypeId =8
</if>
<if test="companyTypeId==103">
and companyTypeId in (0,2,3,4,5)
</if>
</if>
<if test="companyTypeId &lt;100">
and companyTypeId=#{companyTypeId}
</if>
</if>
<if test="scanPhoto != null and scanPhoto != ''"> and scanPhoto = #{scanPhoto}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
<if test="attendanceTime != null and attendanceTime != ''"> and date(attendance_time) = date(#{attendanceTime})</if>
</where>
order by id desc
</select>
<select id="selectSurProjectAttendanceDataList" parameterType="SurProjectAttendanceData" resultMap="SurProjectAttendanceDataResult">
<include refid="selectSurProjectAttendanceDataVo"/>
<where>
<if test="cfgid != null "> and cfgid = #{cfgid}</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="projectId != null ">and cfgid in (select id from sur_project_attendance_cfg where projectId = #{projectId})</if>
<if test="deptId != null "> and deptId = #{deptId}</if>
<if test="vendorsCode != null and vendorsCode != ''"> and vendors_code = #{vendorsCode}</if>
<if test="serverid != null "> and serverid = #{serverid}</if>
<if test="workerId != null "> and workerId = #{workerId}</if>
<if test="attendanceOutTime!=null and attendanceOutTime!=''">
and date(attendance_out_time) &lt;=date(#{attendanceOutTime})
</if>
<if test="teamId != null "> and teamId = #{teamId}</if>
<if test="workTypeCode != null and workTypeCode != ''"> and workTypeCode = #{workTypeCode}</if>
<if test="companyId != null "> and companyId = #{companyId}</if>
<if test="companyTypeId!=null">
<if test="companyTypeId>100">
<if test="companyTypeId==101">
and companyTypeId in (1,6)
</if>
<if test="companyTypeId==102">
and companyTypeId =8
</if>
<if test="companyTypeId==103">
and companyTypeId in (0,2,3,4,5)
</if>
</if>
<if test="companyTypeId &lt;100">
and companyTypeId=#{companyTypeId}
</if>
</if>
<if test="vendorId != null "> and vendorId = #{vendorId}</if>
<if test="deviceCode != null and deviceCode != ''"> and device_code = #{deviceCode}</if>
<if test="scanPhoto != null and scanPhoto != ''"> and scanPhoto like concat('%', #{scanPhoto}, '%')</if>
<if test="workerName != null and workerName != ''"> and workerName like concat('%', #{workerName}, '%')</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
<if test="attendanceTime != null and attendanceTime != ''"> and date(attendance_time) &gt;= date(#{attendanceTime})</if>
<if test="identification != null and identification != ''"> and identification = #{identification}</if>
</where>
order by id desc
</select>
<select id="selectSurProjectAttendanceDataById" parameterType="Long" resultMap="SurProjectAttendanceDataResult">
<include refid="selectSurProjectAttendanceDataVo"/>
where id = #{id}
</select>
<insert id="insertSurProjectAttendanceData" parameterType="SurProjectAttendanceData" useGeneratedKeys="true" keyProperty="id">
insert into sur_project_attendance_data_${year}
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgid != null">cfgid,</if>
<if test="appId != null">app_id,</if>
<if test="projectId != null">projectId,</if>
<if test="projectName != null">projectName,</if>
<if test="deptId != null">deptId,</if>
<if test="deptName != null">deptName,</if>
<if test="vendorsCode != null">vendors_code,</if>
<if test="serverid != null">serverid,</if>
<if test="workerId != null">workerId,</if>
<if test="workerName != null">workerName,</if>
<if test="identification != null">identification,</if>
<if test="workerPhoto != null">workerPhoto,</if>
<if test="workerGender != null">workerGender,</if>
<if test="birthDate != null">birthDate,</if>
<if test="ethnic != null">ethnic,</if>
<if test="nativePlace != null">nativePlace,</if>
<if test="phone != null">phone,</if>
<if test="workTypeName != null">workTypeName,</if>
<if test="specWorkType != null">specWorkType,</if>
<if test="groupName != null">groupName,</if>
<if test="companyTypeId != null">companyTypeId,</if>
<if test="companyName != null">companyName,</if>
<if test="attendanceTime != null">attendance_time,</if>
<if test="attendanceOutTime != null">attendance_out_time,</if>
<if test="scanPhoto != null">scanPhoto,</if>
<if test="teamId != null">teamId,</if>
<if test="workTypeCode != null">workTypeCode,</if>
<if test="companyId != null">companyId,</if>
<if test="vendorId != null">vendorId,</if>
<if test="deviceCode != null">device_code,</if>
<if test="isDel != null">is_del,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgid != null">#{cfgid},</if>
<if test="appId != null">#{appId},</if>
<if test="projectId != null">#{projectId},</if>
<if test="projectName != null">#{projectName},</if>
<if test="deptId != null">#{deptId},</if>
<if test="deptName != null">#{deptName},</if>
<if test="vendorsCode != null">#{vendorsCode},</if>
<if test="serverid != null">#{serverid},</if>
<if test="workerId != null">#{workerId},</if>
<if test="workerName != null">#{workerName},</if>
<if test="identification != null">#{identification},</if>
<if test="workerPhoto != null">#{workerPhoto},</if>
<if test="workerGender != null">#{workerGender},</if>
<if test="birthDate != null">#{birthDate},</if>
<if test="ethnic != null">#{ethnic},</if>
<if test="nativePlace != null">#{nativePlace},</if>
<if test="phone != null">#{phone},</if>
<if test="workTypeName != null">#{workTypeName},</if>
<if test="specWorkType != null">#{specWorkType},</if>
<if test="groupName != null">#{groupName},</if>
<if test="companyTypeId != null">#{companyTypeId},</if>
<if test="companyName != null">#{companyName},</if>
<if test="attendanceTime != null">#{attendanceTime},</if>
<if test="attendanceOutTime != null">#{attendanceOutTime},</if>
<if test="scanPhoto != null">#{scanPhoto},</if>
<if test="teamId != null">#{teamId},</if>
<if test="workTypeCode != null">#{workTypeCode},</if>
<if test="companyId != null">#{companyId},</if>
<if test="vendorId != null">#{vendorId},</if>
<if test="deviceCode != null">#{deviceCode},</if>
<if test="isDel != null">#{isDel},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateSurProjectAttendanceData" parameterType="SurProjectAttendanceData">
update sur_project_attendance_data_${year}
<trim prefix="SET" suffixOverrides=",">
<if test="cfgid != null">cfgid = #{cfgid},</if>
<if test="appId != null">app_id = #{appId},</if>
<if test="projectId != null">projectId = #{projectId},</if>
<if test="projectName != null">projectName = #{projectName},</if>
<if test="deptId != null">deptId = #{deptId},</if>
<if test="deptName != null">deptName = #{deptName},</if>
<if test="vendorsCode != null">vendors_code = #{vendorsCode},</if>
<if test="serverid != null">serverid = #{serverid},</if>
<if test="workerId != null">workerId = #{workerId},</if>
<if test="workerName != null">workerName = #{workerName},</if>
<if test="identification != null">identification = #{identification},</if>
<if test="workerPhoto != null">workerPhoto = #{workerPhoto},</if>
<if test="workerGender != null">workerGender = #{workerGender},</if>
<if test="birthDate != null">birthDate = #{birthDate},</if>
<if test="ethnic != null">ethnic = #{ethnic},</if>
<if test="nativePlace != null">nativePlace = #{nativePlace},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="workTypeName != null">workTypeName = #{workTypeName},</if>
<if test="specWorkType != null">specWorkType = #{specWorkType},</if>
<if test="groupName != null">groupName = #{groupName},</if>
<if test="companyTypeId != null">companyTypeId = #{companyTypeId},</if>
<if test="companyName != null">companyName = #{companyName},</if>
<if test="attendanceTime != null">attendance_time = #{attendanceTime},</if>
<if test="attendanceOutTime != null">attendance_out_time = #{attendanceOutTime},</if>
<if test="scanPhoto != null">scanPhoto = #{scanPhoto},</if>
<if test="teamId != null">teamId = #{teamId},</if>
<if test="workTypeCode != null">workTypeCode = #{workTypeCode},</if>
<if test="companyId != null">companyId = #{companyId},</if>
<if test="vendorId != null">vendorId = #{vendorId},</if>
<if test="deviceCode != null">device_code = #{deviceCode},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSurProjectAttendanceDataById" parameterType="Long">
delete from sur_project_attendance_data_${year} where id = #{id}
</delete>
<delete id="deleteSurProjectAttendanceDataByIds" parameterType="String">
delete from sur_project_attendance_data_${year} where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<delete id="deleteSurProjectAttendanceDataByParams" parameterType="String">
delete from sur_project_attendance_data_${year} where CONCAT(app_id,'-',serverid,'-',workerId) in
<foreach collection="list" item="item" separator="," open="(" close=")">
#{item}
</foreach>
</delete>
<insert id="batchSurProjectAttendanceData">
insert into sur_project_attendance_data_${year}( id, cfgid, app_id, projectId, projectName, deptId, deptName, vendors_code, serverid, workerId, workerName, identification, workerPhoto, workerGender, birthDate, ethnic, nativePlace, phone, workTypeName, specWorkType, groupName, companyTypeId,
companyName, attendance_time, attendance_out_time, scanPhoto, teamId,workTypeCode, companyId, vendorId, device_code, is_del, create_by, create_time, update_by, update_time) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.id}, #{item.cfgid},#{item.appId}, #{item.projectId}, #{item.projectName}, #{item.deptId}, #{item.deptName}, #{item.vendorsCode}, #{item.serverid}, #{item.workerId}, #{item.workerName}, #{item.identification},#{item.workerPhoto}, #{item.workerGender}, #{item.birthDate},#{item.ethnic}, #{item.nativePlace}, #{item.phone}, #{item.workTypeName}, #{item.specWorkType}, #{item.groupName}, #{item.companyTypeId},
#{item.companyName}, #{item.attendanceTime}, #{item.attendanceOutTime}, #{item.scanPhoto},#{item.teamId}, #{item.workTypeCode}, #{item.companyId}, #{item.vendorId}, #{item.deviceCode},#{item.isDel}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime})
</foreach>
</insert>
<select id="getLastServerId" parameterType="SurProjectAttendanceData" resultType="Long">
SELECT IF(MAX(serverid+0),MAX(serverid+0),0) serverid FROM sur_project_attendance_data_${year} WHERE cfgid=#{cfgid}
</select>
<select id="groupByComanyOld" parameterType="SurProjectAttendanceData" resultMap="SurProjectAttendanceDataResult">
select companyTypeId,count(1) id from ( <include refid="selectSurProjectAttendanceDataVo"/> ) x2 where id in (
select min(id) from ( <include refid="selectSurProjectAttendanceDataVo"/> ) x1
where date(attendance_time)=#{attendanceTime}
<if test="subDeptId!=null and subDeptId>0"> and project_id in (
SELECT id FROM sur_project WHERE isdel=0 AND deptid = #{subDeptId}
)
</if>
<if test="prjIds !=null and prjIds.size()>0">
and project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="projectId!=null and projectId>0"> and project_id=#{projectId}</if>
group by workerId )
and companyTypeId in (1,2,3,4,5,6,8) group by companyTypeId
</select>
<select id="groupByComany" parameterType="SurProjectAttendanceData" resultMap="SurProjectAttendanceDataResult">
select g.companyTypeId,count(1) id from sur_project_attendance_user u, sur_project_attendance_cfg c,view_sur_project_attendance_group g
where u.cfgid=c.id and u.state=0 and u.companyId=g.companyId
and u.workerid in(
SELECT workerid FROM sur_project_attendance_data WHERE DATE(attendance_time)=CURDATE()
and cfgid in (select id from sur_project_attendance_cfg
<where>
<if test="projectId!=null and projectId>0">
and project_id=#{projectId}
</if>
<if test="subDeptId!=null and subDeptId>0">
and project_id in (SELECT id FROM sur_project WHERE deptid=#{subDeptId})
</if>
<if test="prjIds !=null and prjIds.size()>0">
and project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</where>
)
)
and g.companyTypeId in (1,2,3,4,5,6,8)
<if test="projectId!=null and projectId>0">
and c.project_id=#{projectId}
</if>
<if test="subDeptId!=null and subDeptId>0">
and c.project_id in (SELECT id FROM sur_project WHERE deptid=#{subDeptId})
</if>
<if test="prjIds !=null and prjIds.size()>0">
and c.project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
group by g.companyTypeId
</select>
<select id="groupAllByComany" parameterType="SurProjectAttendanceData" resultMap="SurProjectAttendanceDataResult">
select g.companyTypeId,count(1) id
from sur_project_attendance_user u, sur_project_attendance_cfg c,view_sur_project_attendance_group g,
sur_project sp
where u.cfgid=c.id and u.companyId=g.companyId and u.state=#{id} and c.project_id = sp.id
and sp.isDel=0
and g.companyTypeId in (0,1,2,3,4,5,6,8)
<if test="projectId!=null and projectId>0">
and c.project_id=#{projectId}
</if>
<if test="subDeptId!=null and subDeptId>0">
and sp.deptId=#{subDeptId}
</if>
<if test='proType != null and proType != "" and proType != "0"'> and sp.projectType = #{proType}</if>
<if test="prjIds !=null and prjIds.size()>0">
and c.project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
group by g.companyTypeId
</select>
<select id="getHuazhuPage" parameterType="SurProjectAttendanceData" resultType="Long">
select max(vendorId) vendorId from sur_project_attendance_data_${year} WHERE cfgid=#{id}
</select>
<select id="initOtherData" parameterType="map" resultType="map">
select d.workerId,d.app_id,d.serverid,u.companyId,u.companyName,u.`name`,d.identification,u.recentPhoto,u.gender,u.birthDate,u.ethnic,u.nativePlace,u.phone,
u.workTypeName,u.specWorkType,u.groupName,g.companyTypeId,d.teamId,u.workTypeCode,d.vendorId,d.device_code,d.scanPhoto,d.is_del
from sur_project_attendance_data d
left JOIN sur_project_attendance_user u on d.workerId = u.workerId and d.cfgid = u.cfgid
left join sur_project_attendance_group g on u.companyId = g.companyId and g.cfgid = u.cfgid
where d.cfgid=#{cfgid} and date(d.attendance_time) = #{date}
GROUP BY d.workerId
</select>
<select id="initHuaZhuData" parameterType="map" resultType="map">
select d.workerId,d.app_id,d.serverid,u.companyId,u.companyName,u.`name`,d.identification,u.recentPhoto,u.gender,u.birthDate,u.ethnic,u.nativePlace,u.phone,
u.workTypeName,u.specWorkType,u.groupName,d.teamId,u.workTypeCode,d.vendorId,d.device_code,d.scanPhoto,d.is_del,
CASE WHEN sd.type_flag = 2 THEN '1' WHEN sd.type_flag = 3 THEN '2' WHEN sd.type_flag = 4 THEN '8' else '0' end as companyTypeId
from sur_project_attendance_data d
left JOIN sur_project_attendance_user u on d.workerId = u.workerId and d.cfgid = u.cfgid
left join sys_dept sd on u.companyName = sd.dept_name
where d.cfgid=#{cfgid} and date(d.attendance_time) = #{date}
GROUP BY d.workerId
</select>
<select id="findHuaZhuCompanyType" parameterType="string" resultType="string">
select CASE WHEN sd.type_flag = 2 THEN '1' WHEN sd.type_flag = 3 THEN '2' WHEN sd.type_flag = 4 THEN '8' else '0' end as companyTypeId
from sys_dept sd
where sd.dept_name = #{deptName}
</select>
<select id="todayAttendance" parameterType="SurProjectAttendanceData" resultMap="SurProjectAttendanceDataResult">
select ady.* from sur_project_attendance_data_${year} ady
left join sur_project sp on sp.id = ady.projectId
where sp.isDel=0
<if test="projectId!=null and projectId>0">
and ady.projectId=#{projectId}
</if>
<if test="id==1">
and ady.companyTypeId in (1,6)
</if>
<if test="id==2">
and ady.companyTypeId in (0,2,3,4,5)
</if>
<if test="id==8">
and ady.companyTypeId =8
</if>
<if test="deptId!=null and deptId>0">
and sp.deptId=#{deptId}
</if>
<if test='proType != null and proType != "" and proType != "0"'> and sp.projectType = #{proType}</if>
<if test="prjIds !=null and prjIds.size()>0">
and ady.projectId in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="attendanceTime != null and attendanceTime != ''"> and date(ady.attendance_time) =date(#{attendanceTime})</if>
</select>
<select id="attendanceDataList" parameterType="SurProjectAttendanceData" resultMap="SurProjectAttendanceDataResult">
select ady.* from sur_project_attendance_data_${year} ady
where ady.cfgid in (select cfg.id from sur_project_attendance_cfg cfg where cfg.project_id=#{projectId} and cfg.is_del=0)
<if test="companyTypeId==101">
and ady.companyTypeId in (1,6)
</if>
<if test="companyTypeId==103">
and ady.companyTypeId in (0,2,3,4,5)
</if>
<if test="companyTypeId==102">
and ady.companyTypeId =8
</if>
<if test="workerId != null and workerId != ''"> and ady.workerId = #{workerId}</if>
<if test="workerName != null and workerName != ''"> and ady.workerName like concat('%', #{workerName}, '%')</if>
<if test="attendanceTime != null and attendanceTime != ''"> and date(ady.attendance_time) = date(#{attendanceTime})</if>
and ady.is_del=0
order by ady.id desc
</select>
<select id="groupTodayCompanyTypeId" parameterType="SurProjectAttendanceData" resultMap="SurProjectAttendanceDataResult">
select ady.companyTypeId,count(1) id from sur_project_attendance_data_${year} ady
where ady.cfgid in (select id from sur_project_attendance_cfg where
is_del=0
<if test="projectId!=null and projectId>0">
and projectId=#{projectId}
</if>
and projectId in (select id from sur_project sp where sp.isDel=0
<if test="deptId!=null and deptId>0">
and sp.deptId=#{deptId}
</if>
<if test="attendanceTime != null and attendanceTime != ''"> and date(ady.attendance_time) =date(#{attendanceTime})</if>
<if test='proType != null and proType != "" and proType != "0"'> and sp.projectType = #{proType}</if>
<if test="prjIds !=null and prjIds.size()>0">
and ady.projectId in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
)
)
group by ady.companyTypeId
</select>
<select id="findGroupAllByParams" parameterType="SurProjectAttendanceData" resultType="Map">
select '1' as type,g.companyTypeId,count(1) as total
from sur_project_attendance_user u
left join view_sur_project_attendance_group g on g.cfgid = u.cfgid and u.companyId=g.companyId
where u.cfgid in (select cfg.id from sur_project_attendance_cfg cfg where cfg.project_id=#{projectId} and cfg.is_del=0)
and g.companyTypeId in (0,1,2,3,4,5,6,8)
and u.state=0
group by g.companyTypeId
UNION ALL
select '2' as type,g.companyTypeId,count(1) as total
from sur_project_attendance_user u
left join view_sur_project_attendance_group g on g.cfgid = u.cfgid and u.companyId=g.companyId
where u.cfgid in (select cfg.id from sur_project_attendance_cfg cfg where cfg.project_id=#{projectId} and cfg.is_del=0)
and g.companyTypeId in (0,1,2,3,4,5,6,8)
and u.state=1
group by g.companyTypeId
UNION ALL
select '3' as type, d.companyTypeId,count(1) as total from sur_project_attendance_data_${year} d
where d.cfgid in (select cfg.id from sur_project_attendance_cfg cfg where cfg.project_id=#{projectId} and cfg.is_del=0)
and d.is_del=0
and date(d.attendance_time) = date(now())
group by d.companyTypeId
</select>
<select id="groupDataByParams" parameterType="SurProjectAttendanceData" resultType="Map">
select d.companyTypeId,count(1) as total from sur_project_attendance_data_${year} d
where d.cfgid in (select cfg.id from sur_project_attendance_cfg cfg where cfg.project_id=#{projectId} and cfg.is_del=0)
and d.is_del=0
<if test="attendanceTime != null and attendanceTime != ''"> and date(d.attendance_time) = date(#{attendanceTime})</if>
<if test="workerName != null and workerName != ''"> and d.workerName like concat('%', #{workerName}, '%')</if>
group by d.companyTypeId
</select>
<select id="findGroupAllByDays" parameterType="SurProjectAttendanceData" resultType="Map">
select '3' as type, DATE_FORMAT(days.attendanceTime, '%m-%d') as attendanceTime,days.total from(
select date(d.attendance_time) as attendanceTime, DATE_FORMAT(d.attendance_time, '%m-%d'),count(1) as total from sur_project_attendance_data_${year} d
where d.cfgid in (select cfg.id from sur_project_attendance_cfg cfg where cfg.project_id=#{projectId} and cfg.is_del=0)
and d.is_del=0
and date(d.attendance_time) between #{attendanceTime} and #{attendanceOutTime}
group by date(d.attendance_time)
order by date(d.attendance_time)
)days
</select>
</mapper>

View File

@ -1,233 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yanzhu.xd.system.mapper.SurProjectAttendanceGroupMapper">
<resultMap type="SurProjectAttendanceGroup" id="SurProjectAttendanceGroupResult">
<result property="id" column="id" />
<result property="cfgid" column="cfgid" />
<result property="appId" column="app_id" />
<result property="serverid" column="serverid" />
<result property="bizLicense" column="bizLicense" />
<result property="companyCode" column="companyCode" />
<result property="companyId" column="companyId" />
<result property="companyName" column="companyName" />
<result property="companyTypeId" column="companyTypeId" />
<result property="vendorId" column="vendorId" />
<result property="name" column="name" />
<result property="leaderName" column="leaderName" />
<result property="leaderPhone" column="leaderPhone" />
<result property="teamId" column="teamId" />
<result property="teamName" column="teamName" />
<result property="type" column="type" />
<result property="leaderId" column="leaderId" />
<result property="deleted" column="deleted" />
<result property="createTimestamp" column="createTimestamp" />
<result property="platformGroupId" column="platformGroupId" />
<result property="platformTeamId" column="platformTeamId" />
<result property="enterDate" column="enterDate" />
<result property="exitDate" column="exitDate" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSurProjectAttendanceGroupVo">
select id, cfgid, app_id, serverid, bizLicense, companyCode, companyId, companyName, companyTypeId, vendorId, name, leaderName, leaderPhone, teamId, teamName, type, leaderId, deleted, createTimestamp, platformGroupId, platformTeamId, enterDate, exitDate, remark, is_del, create_by, create_time, update_by, update_time
from view_sur_project_attendance_group
</sql>
<select id="selectSurProjectAttendanceGroupViewList" parameterType="SurProjectAttendanceGroup" resultMap="SurProjectAttendanceGroupResult">
<include refid="selectSurProjectAttendanceGroupVo"/>
<where>
<if test="cfgid != null "> and cfgid = #{cfgid}</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="serverid != null "> and serverid = #{serverid}</if>
<if test="bizLicense != null and bizLicense != ''"> and bizLicense = #{bizLicense}</if>
<if test="companyCode != null and companyCode != ''"> and companyCode = #{companyCode}</if>
<if test="companyId != null "> and companyId = #{companyId}</if>
<if test="companyName != null and companyName != ''"> and companyName like concat('%', #{companyName}, '%')</if>
<if test="companyTypeId != null and companyTypeId != ''"> and companyTypeId = #{companyTypeId}</if>
<if test="vendorId != null "> and vendorId = #{vendorId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="leaderName != null and leaderName != ''"> and leaderName like concat('%', #{leaderName}, '%')</if>
<if test="leaderPhone != null and leaderPhone != ''"> and leaderPhone = #{leaderPhone}</if>
<if test="teamId != null "> and teamId = #{teamId}</if>
<if test="teamName != null and teamName != ''"> and teamName like concat('%', #{teamName}, '%')</if>
<if test="type != null "> and type = #{type}</if>
<if test="leaderId != null "> and leaderId = #{leaderId}</if>
<if test="deleted != null "> and deleted = #{deleted}</if>
<if test="createTime != null "> and createTime = #{createTime}</if>
<if test="platformGroupId != null "> and platformGroupId = #{platformGroupId}</if>
<if test="platformTeamId != null "> and platformTeamId = #{platformTeamId}</if>
<if test="enterDate != null "> and enterDate = #{enterDate}</if>
<if test="exitDate != null "> and exitDate = #{exitDate}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectSurProjectAttendanceGroupList" parameterType="SurProjectAttendanceGroup" resultMap="SurProjectAttendanceGroupResult">
select id, cfgid, app_id, serverid, bizLicense, companyCode, companyId, companyName, companyTypeId, vendorId, name, leaderName, leaderPhone, teamId, teamName, type, leaderId, deleted, createTimestamp, platformGroupId, platformTeamId, enterDate, exitDate, remark, is_del, create_by, create_time, update_by, update_time
from sur_project_attendance_group
<where>
<if test="cfgid != null "> and cfgid = #{cfgid}</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="serverid != null "> and serverid = #{serverid}</if>
<if test="bizLicense != null and bizLicense != ''"> and bizLicense = #{bizLicense}</if>
<if test="companyCode != null and companyCode != ''"> and companyCode = #{companyCode}</if>
<if test="companyId != null "> and companyId = #{companyId}</if>
<if test="companyName != null and companyName != ''"> and companyName like concat('%', #{companyName}, '%')</if>
<if test="companyTypeId != null and companyTypeId != ''"> and companyTypeId = #{companyTypeId}</if>
<if test="vendorId != null "> and vendorId = #{vendorId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="leaderName != null and leaderName != ''"> and leaderName like concat('%', #{leaderName}, '%')</if>
<if test="leaderPhone != null and leaderPhone != ''"> and leaderPhone = #{leaderPhone}</if>
<if test="teamId != null "> and teamId = #{teamId}</if>
<if test="teamName != null and teamName != ''"> and teamName like concat('%', #{teamName}, '%')</if>
<if test="type != null "> and type = #{type}</if>
<if test="leaderId != null "> and leaderId = #{leaderId}</if>
<if test="deleted != null "> and deleted = #{deleted}</if>
<if test="createTime != null "> and createTime = #{createTime}</if>
<if test="platformGroupId != null "> and platformGroupId = #{platformGroupId}</if>
<if test="platformTeamId != null "> and platformTeamId = #{platformTeamId}</if>
<if test="enterDate != null "> and enterDate = #{enterDate}</if>
<if test="exitDate != null "> and exitDate = #{exitDate}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectSurProjectAttendanceGroupById" parameterType="Long" resultMap="SurProjectAttendanceGroupResult">
<include refid="selectSurProjectAttendanceGroupVo"/>
where id = #{id}
</select>
<insert id="insertSurProjectAttendanceGroup" parameterType="SurProjectAttendanceGroup" useGeneratedKeys="true" keyProperty="id">
insert into sur_project_attendance_group
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgid != null">cfgid,</if>
<if test="appId != null">app_id,</if>
<if test="serverid != null">serverid,</if>
<if test="bizLicense != null">bizLicense,</if>
<if test="companyCode != null">companyCode,</if>
<if test="companyId != null">companyId,</if>
<if test="companyName != null">companyName,</if>
<if test="companyTypeId != null">companyTypeId,</if>
<if test="vendorId != null">vendorId,</if>
<if test="name != null">name,</if>
<if test="leaderName != null">leaderName,</if>
<if test="leaderPhone != null">leaderPhone,</if>
<if test="teamId != null">teamId,</if>
<if test="teamName != null">teamName,</if>
<if test="type != null">type,</if>
<if test="leaderId != null">leaderId,</if>
<if test="deleted != null">deleted,</if>
<if test="createTimestamp != null">createTimestamp,</if>
<if test="platformGroupId != null">platformGroupId,</if>
<if test="platformTeamId != null">platformTeamId,</if>
<if test="enterDate != null">enterDate,</if>
<if test="exitDate != null">exitDate,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgid != null">#{cfgid},</if>
<if test="appId != null">#{appId},</if>
<if test="serverid != null">#{serverid},</if>
<if test="bizLicense != null">#{bizLicense},</if>
<if test="companyCode != null">#{companyCode},</if>
<if test="companyId != null">#{companyId},</if>
<if test="companyName != null">#{companyName},</if>
<if test="companyTypeId != null">#{companyTypeId},</if>
<if test="vendorId != null">#{vendorId},</if>
<if test="name != null">#{name},</if>
<if test="leaderName != null">#{leaderName},</if>
<if test="leaderPhone != null">#{leaderPhone},</if>
<if test="teamId != null">#{teamId},</if>
<if test="teamName != null">#{teamName},</if>
<if test="type != null">#{type},</if>
<if test="leaderId != null">#{leaderId},</if>
<if test="deleted != null">#{deleted},</if>
<if test="createTimestamp != null">#{createTimestamp},</if>
<if test="platformGroupId != null">#{platformGroupId},</if>
<if test="platformTeamId != null">#{platformTeamId},</if>
<if test="enterDate != null">#{enterDate},</if>
<if test="exitDate != null">#{exitDate},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateSurProjectAttendanceGroup" parameterType="SurProjectAttendanceGroup">
update sur_project_attendance_group
<trim prefix="SET" suffixOverrides=",">
<if test="cfgid != null">cfgid = #{cfgid},</if>
<if test="appId != null">app_id = #{appId},</if>
<if test="serverid != null">serverid = #{serverid},</if>
<if test="bizLicense != null">bizLicense = #{bizLicense},</if>
<if test="companyCode != null">companyCode = #{companyCode},</if>
<if test="companyId != null">companyId = #{companyId},</if>
<if test="companyName != null">companyName = #{companyName},</if>
<if test="companyTypeId != null">companyTypeId = #{companyTypeId},</if>
<if test="vendorId != null">vendorId = #{vendorId},</if>
<if test="name != null">name = #{name},</if>
<if test="leaderName != null">leaderName = #{leaderName},</if>
<if test="leaderPhone != null">leaderPhone = #{leaderPhone},</if>
<if test="teamId != null">teamId = #{teamId},</if>
<if test="teamName != null">teamName = #{teamName},</if>
<if test="type != null">type = #{type},</if>
<if test="leaderId != null">leaderId = #{leaderId},</if>
<if test="deleted != null">deleted = #{deleted},</if>
<if test="createTimestamp != null">createTimestamp = #{createTimestamp},</if>
<if test="platformGroupId != null">platformGroupId = #{platformGroupId},</if>
<if test="platformTeamId != null">platformTeamId = #{platformTeamId},</if>
<if test="enterDate != null">enterDate = #{enterDate},</if>
<if test="exitDate != null">exitDate = #{exitDate},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSurProjectAttendanceGroupById" parameterType="Long">
delete from sur_project_attendance_group where id = #{id}
</delete>
<delete id="deleteSurProjectAttendanceGroupByIds" parameterType="String">
delete from sur_project_attendance_group where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<delete id="deleteSurProjectAttendanceGroupByParams" parameterType="String">
delete from sur_project_attendance_group where CONCAT(app_id,'-',serverid) in
<foreach collection="list" item="item" separator="," open="(" close=")">
#{item}
</foreach>
</delete>
<insert id="batchSurProjectAttendanceGroup">
insert into sur_project_attendance_group(id,cfgid,app_id,serverid,bizLicense,companyCode,companyId,companyName,companyTypeId,vendorId,name,leaderName,leaderPhone,teamId,teamName,type,leaderId,deleted,createTimestamp,platformGroupId,platformTeamId,enterDate,exitDate,remark,create_by,create_time,update_by,update_time) values
<foreach item="item" index="index" collection="list" separator=",">
(#{item.id}, #{item.cfgid}, #{item.appId}, #{item.serverid}, #{item.bizLicense}, #{item.companyCode}, #{item.companyId}, #{item.companyName},#{item.companyTypeId}, #{item.vendorId}, #{item.name}, #{item.leaderName}, #{item.leaderPhone}, #{item.teamId}, #{item.teamName}, #{item.type}, #{item.leaderId}, #{item.deleted}, #{item.createTimestamp}, #{item.platformGroupId}, #{item.platformTeamId}, #{item.enterDate},
#{item.exitDate}, #{item.remark}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime})
</foreach>
</insert>
</mapper>

View File

@ -1,812 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yanzhu.xd.system.mapper.SurProjectAttendanceUserMapper">
<resultMap type="SurProjectAttendanceUser" id="SurProjectAttendanceUserResult">
<result property="id" column="id" />
<result property="cfgid" column="cfgid" />
<result property="appId" column="app_id" />
<result property="vendorsCode" column="vendors_code" />
<result property="workerId" column="workerId" />
<result property="laborWorkerId" column="laborWorkerId" />
<result property="workerCategory" column="workerCategory" />
<result property="qrCode" column="qrCode" />
<result property="name" column="name" />
<result property="ethnic" column="ethnic" />
<result property="nativePlace" column="nativePlace" />
<result property="gender" column="gender" />
<result property="birthDate" column="birthDate" />
<result property="phone" column="phone" />
<result property="degreeName" column="degreeName" />
<result property="photo" column="photo" />
<result property="recentPhoto" column="recentPhoto" />
<result property="groupId" column="groupId" />
<result property="groupName" column="groupName" />
<result property="leader" column="leader" />
<result property="workTypeCode" column="workTypeCode" />
<result property="workTypeName" column="workTypeName" />
<result property="specWorkType" column="specWorkType" />
<result property="hatCode" column="hatCode" />
<result property="state" column="state" />
<result property="enterDate" column="enterDate" />
<result property="exitDate" column="exitDate" />
<result property="companyId" column="companyId" />
<result property="companyName" column="companyName" />
<result property="vendorId" column="vendorId" />
<result property="teamId" column="teamId" />
<result property="teamName" column="teamName" />
<result property="enterType" column="enterType" />
<result property="other" column="other" />
<result property="remark" column="remark" />
<result property="isDel" column="is_del" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="projectId" column="project_id"/>
<result property="subDeptId" column="sub_dept_id"/>
<result property="companyTypeId" column="companyTypeId"/>
</resultMap>
<sql id="selectSurProjectAttendanceUserVo">
SELECT * FROM (
SELECT a.*,b.project_id,b.sub_dept_id
FROM sur_project_attendance_user a,sur_project_attendance_cfg b
WHERE a.cfgid=b.id )
sur_project_attendance_user
</sql>
<select id="selectSurProjectAttendanceUserListJgw" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
SELECT u.id,u.cfgid,u.app_id,u.vendors_code,u.workerId,u.laborWorkerId,u.workerCategory,u.qrCode,u.name,
u.ethnic,u.nativePlace,u.gender,u.birthDate,u.phone,u.degreeName,u.photo,u.recentPhoto,
u.groupId,u.leader,u.workTypeCode,u.specWorkType,
u.hatCode,u.state,u.enterDate,u.exitDate,u.companyId,u.vendorId,
u.teamId,u.teamName,u.enterType,u.is_del,u.create_by,u.create_time,u.update_by,u.update_time,
c.project_id,c.sub_dept_id,u.companyName,u.workTypeName,g.teamname groupName,g.companyName remark
FROM sur_project_attendance_user u,sur_project_attendance_cfg c,sur_project_attendance_group g
WHERE u.cfgid=c.id AND g.companyid=u.companyid AND u.vendors_code='jgw'
<if test="companyTypeId!=null">
<if test="companyTypeId>100">
<if test="companyTypeId==101">
and g.companyTypeId in (1,6)
</if>
<if test="companyTypeId==102">
and g.companyTypeId =8
</if>
<if test="companyTypeId==103">
and g.companyTypeId in (0,2,3,4,5)
</if>
</if>
<if test="companyTypeId &lt;100">
and g.companyTypeId=#{companyTypeId}
</if>
</if>
<if test="cfgid != null "> and u.cfgid = #{cfgid}</if>
<if test="appId != null "> and u.app_id = #{appId}</if>
<if test="vendorsCode != null and vendorsCode != ''"> and u.vendors_code = #{vendorsCode}</if>
<if test="workerId != null "> and u.workerId = #{workerId}</if>
<if test="laborWorkerId != null "> and u.laborWorkerId = #{laborWorkerId}</if>
<if test="workerCategory != null "> and u.workerCategory = #{workerCategory}</if>
<if test="qrCode != null "> and u.qrCode = #{qrCode}</if>
<if test="name != null and name != ''"> and u.name like concat('%', #{name}, '%')</if>
<if test="ethnic != null and ethnic != ''"> and u.ethnic = #{ethnic}</if>
<if test="nativePlace != null and nativePlace != ''"> and u.nativePlace = #{nativePlace}</if>
<if test="gender != null "> and u.gender = #{gender}</if>
<if test="birthDate != null "> and u.birthDate = #{birthDate}</if>
<if test="phone != null and phone != ''"> and u.phone = #{phone}</if>
<if test="degreeName != null and degreeName != ''"> and u.degreeName like concat('%', #{degreeName}, '%')</if>
<if test="photo != null and photo != ''"> and u.photo = #{photo}</if>
<if test="recentPhoto != null and recentPhoto != ''"> and u.recentPhoto = #{recentPhoto}</if>
<if test="groupId != null "> and u.groupId = #{groupId}</if>
<if test="groupName != null and groupName != ''"> and u.groupName like concat('%', #{groupName}, '%')</if>
<if test="leader != null "> and u.leader = #{leader}</if>
<if test="workTypeCode != null and workTypeCode != ''"> and u.workTypeCode = #{workTypeCode}</if>
<if test="workTypeName != null and workTypeName != ''"> and u.workTypeName like concat('%', #{workTypeName}, '%')</if>
<if test="specWorkType != null "> and u.specWorkType = #{specWorkType}</if>
<if test="hatCode != null and hatCode != ''"> and u.hatCode = #{hatCode}</if>
<if test="state != null "> and u.state = #{state}</if>
<if test="enterDate != null and enterDate != ''"> and u.enterDate = #{enterDate}</if>
<if test="exitDate != null and exitDate != ''"> and u.exitDate = #{exitDate}</if>
<if test="companyId != null "> and u.companyId = #{companyId}</if>
<if test="companyName != null and companyName != ''"> and u.companyName like concat('%', #{companyName}, '%')</if>
<if test="vendorId != null "> and u.vendorId = #{vendorId}</if>
<if test="teamId != null "> and u.teamId = #{teamId}</if>
<if test="teamName != null and teamName != ''"> and u.teamName like concat('%', #{teamName}, '%')</if>
<if test="enterType != null and enterType != ''"> and u.enterType = #{enterType}</if>
<if test="other != null and other != ''"> and u.other = #{other}</if>
<if test="projectId != null and projectId > 0 "> and c.project_id = #{projectId}</if>
<if test="subDeptId != null and subDeptId >0 "> and c.sub_dept_id = #{subDeptId}</if>
<if test="isDel != null "> and u.is_del = #{isDel}</if>
</select>
<select id="querySurProjectAttendanceUserList" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
SELECT * FROM (
SELECT a.id,
a.cfgid,
a.app_id,
a.vendors_code,
a.workerId,
a.laborWorkerId,
a.workerCategory,
a.qrCode,
a.name,
a.ethnic,
a.nativePlace,
a.gender,
a.birthDate,
a.phone,
a.degreeName,
a.photo,
a.recentPhoto,
a.groupId,
a.groupName,
a.leader,
a.workTypeCode,
a.workTypeName,
a.specWorkType,
a.hatCode,
a.state,
a.enterDate,
a.exitDate,
a.companyId,
a.companyName,
a.vendorId,
a.teamId,
a.teamName,
a.enterType,
a.other,
a.is_del,
a.create_by,
a.create_time,
a.update_by,
a.update_time,b.project_id,b.sub_dept_id,g.companyTypeId,g.companyName as remark
FROM sur_project_attendance_user a,sur_project_attendance_cfg b,view_sur_project_attendance_group g
WHERE a.cfgid=b.id and a.companyId=g.companyId and g.id in(select min(id) from view_sur_project_attendance_group group by companyid)
)
sur_project_attendance_user
<where>
<if test="companyTypeId!=null">
<if test="companyTypeId>100">
<if test="companyTypeId==101">
and companyTypeId in (1,6)
</if>
<if test="companyTypeId==102">
and companyTypeId =8
</if>
<if test="companyTypeId==103">
and companyTypeId in (0,2,3,4,5)
</if>
</if>
<if test="companyTypeId &lt;100">
and companyTypeId=#{companyTypeId}
</if>
</if>
<if test="cfgid != null "> and cfgid = #{cfgid}</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="vendorsCode != null and vendorsCode != ''"> and vendors_code = #{vendorsCode}</if>
<if test="workerId != null "> and workerId = #{workerId}</if>
<if test="laborWorkerId != null "> and laborWorkerId = #{laborWorkerId}</if>
<if test="workerCategory != null "> and workerCategory = #{workerCategory}</if>
<if test="qrCode != null "> and qrCode = #{qrCode}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="ethnic != null and ethnic != ''"> and ethnic = #{ethnic}</if>
<if test="nativePlace != null and nativePlace != ''"> and nativePlace = #{nativePlace}</if>
<if test="gender != null "> and gender = #{gender}</if>
<if test="birthDate != null "> and birthDate = #{birthDate}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="degreeName != null and degreeName != ''"> and degreeName like concat('%', #{degreeName}, '%')</if>
<if test="photo != null and photo != ''"> and photo = #{photo}</if>
<if test="recentPhoto != null and recentPhoto != ''"> and recentPhoto = #{recentPhoto}</if>
<if test="groupId != null "> and groupId = #{groupId}</if>
<if test="groupName != null and groupName != ''"> and groupName like concat('%', #{groupName}, '%')</if>
<if test="leader != null "> and leader = #{leader}</if>
<if test="workTypeCode != null and workTypeCode != ''"> and workTypeCode = #{workTypeCode}</if>
<if test="workTypeName != null and workTypeName != ''"> and workTypeName like concat('%', #{workTypeName}, '%')</if>
<if test="specWorkType != null "> and specWorkType = #{specWorkType}</if>
<if test="hatCode != null and hatCode != ''"> and hatCode = #{hatCode}</if>
<if test="state != null "> and state = #{state}</if>
<if test="enterDate != null and enterDate != ''"> and enterDate = #{enterDate}</if>
<if test="exitDate != null and exitDate != ''"> and exitDate = #{exitDate}</if>
<if test="companyId != null "> and companyId = #{companyId}</if>
<if test="companyName != null and companyName != ''"> and companyName like concat('%', #{companyName}, '%')</if>
<if test="vendorId != null "> and vendorId = #{vendorId}</if>
<if test="teamId != null "> and teamId = #{teamId}</if>
<if test="teamName != null and teamName != ''"> and teamName like concat('%', #{teamName}, '%')</if>
<if test="enterType != null and enterType != ''"> and enterType = #{enterType}</if>
<if test="other != null and other != ''"> and other = #{other}</if>
<if test="projectId != null and projectId > 0 "> and project_id = #{projectId}</if>
<if test="subDeptId != null and subDeptId >0 "> and sub_dept_id = #{subDeptId}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectSurProjectAttendanceUserList" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
<include refid="selectSurProjectAttendanceUserVo"/>
<where>
<if test="companyTypeId!=null">
<if test="companyTypeId>100">
<if test="companyTypeId==101">
and companyTypeId in (1,6)
</if>
<if test="companyTypeId==102">
and companyTypeId =8
</if>
<if test="companyTypeId==103">
and companyTypeId in (0,2,3,4,5)
</if>
</if>
<if test="companyTypeId &lt;100">
and companyTypeId=#{companyTypeId}
</if>
</if>
<if test="cfgid != null "> and cfgid = #{cfgid}</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="vendorsCode != null and vendorsCode != ''"> and vendors_code = #{vendorsCode}</if>
<if test="workerId != null "> and workerId = #{workerId}</if>
<if test="laborWorkerId != null "> and laborWorkerId = #{laborWorkerId}</if>
<if test="workerCategory != null "> and workerCategory = #{workerCategory}</if>
<if test="qrCode != null "> and qrCode = #{qrCode}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="ethnic != null and ethnic != ''"> and ethnic = #{ethnic}</if>
<if test="nativePlace != null and nativePlace != ''"> and nativePlace = #{nativePlace}</if>
<if test="gender != null "> and gender = #{gender}</if>
<if test="birthDate != null "> and birthDate = #{birthDate}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="degreeName != null and degreeName != ''"> and degreeName like concat('%', #{degreeName}, '%')</if>
<if test="photo != null and photo != ''"> and photo = #{photo}</if>
<if test="recentPhoto != null and recentPhoto != ''"> and recentPhoto = #{recentPhoto}</if>
<if test="groupId != null "> and groupId = #{groupId}</if>
<if test="groupName != null and groupName != ''"> and groupName like concat('%', #{groupName}, '%')</if>
<if test="leader != null "> and leader = #{leader}</if>
<if test="workTypeCode != null and workTypeCode != ''"> and workTypeCode = #{workTypeCode}</if>
<if test="workTypeName != null and workTypeName != ''"> and workTypeName like concat('%', #{workTypeName}, '%')</if>
<if test="specWorkType != null "> and specWorkType = #{specWorkType}</if>
<if test="hatCode != null and hatCode != ''"> and hatCode = #{hatCode}</if>
<if test="state != null "> and state = #{state}</if>
<if test="enterDate != null and enterDate != ''"> and enterDate = #{enterDate}</if>
<if test="exitDate != null and exitDate != ''"> and exitDate = #{exitDate}</if>
<if test="companyId != null "> and companyId = #{companyId}</if>
<if test="companyName != null and companyName != ''"> and companyName like concat('%', #{companyName}, '%')</if>
<if test="vendorId != null "> and vendorId = #{vendorId}</if>
<if test="teamId != null "> and teamId = #{teamId}</if>
<if test="teamName != null and teamName != ''"> and teamName like concat('%', #{teamName}, '%')</if>
<if test="enterType != null and enterType != ''"> and enterType = #{enterType}</if>
<if test="other != null and other != ''"> and other = #{other}</if>
<if test="projectId != null and projectId > 0 "> and project_id = #{projectId}</if>
<if test="subDeptId != null and subDeptId >0 "> and sub_dept_id = #{subDeptId}</if>
<if test="isDel != null "> and is_del = #{isDel}</if>
</where>
</select>
<select id="selectSurProjectAttendanceUserById" parameterType="Long" resultMap="SurProjectAttendanceUserResult">
<include refid="selectSurProjectAttendanceUserVo"/>
where id = #{id}
</select>
<select id="findCurrentAttendanceUser" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
select u.companyId,u.companyName,u.`name`,u.recentPhoto,u.gender,u.birthDate,u.ethnic,u.nativePlace,u.phone,
u.workTypeName,u.specWorkType,u.groupName,g.companyTypeId,u.workTypeCode
from sur_project_attendance_user u
left join sur_project_attendance_group g on u.companyId = g.companyId and g.cfgid = u.cfgid
where u.cfgid=#{cfgid} and u.workerId=#{workerId}
</select>
<select id="findYzCurrentAttendanceUser" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
select u.companyId,g.companyName,u.`name`,u.recentPhoto,u.gender,u.birthDate,u.ethnic,u.nativePlace,u.phone,
u.workTypeName,u.specWorkType,u.groupName,g.companyTypeId,u.workTypeCode
from sur_project_attendance_user u
left join sur_project_attendance_group g on u.groupId = g.serverid and g.cfgid = u.cfgid
where u.cfgid=#{cfgid} and u.workerId=#{workerId} ORDER BY u.id desc LIMIT 1
</select>
<insert id="insertSurProjectAttendanceUser" parameterType="SurProjectAttendanceUser" useGeneratedKeys="true" keyProperty="id">
insert into sur_project_attendance_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="cfgid != null">cfgid,</if>
<if test="appId != null">app_id,</if>
<if test="vendorsCode != null">vendors_code,</if>
<if test="workerId != null">workerId,</if>
<if test="laborWorkerId != null">laborWorkerId,</if>
<if test="workerCategory != null">workerCategory,</if>
<if test="qrCode != null">qrCode,</if>
<if test="name != null">name,</if>
<if test="ethnic != null">ethnic,</if>
<if test="nativePlace != null">nativePlace,</if>
<if test="gender != null">gender,</if>
<if test="birthDate != null">birthDate,</if>
<if test="phone != null and phone != ''">phone,</if>
<if test="degreeName != null">degreeName,</if>
<if test="photo != null">photo,</if>
<if test="recentPhoto != null">recentPhoto,</if>
<if test="groupId != null">groupId,</if>
<if test="groupName != null">groupName,</if>
<if test="leader != null">leader,</if>
<if test="workTypeCode != null">workTypeCode,</if>
<if test="workTypeName != null">workTypeName,</if>
<if test="specWorkType != null">specWorkType,</if>
<if test="hatCode != null">hatCode,</if>
<if test="state != null">state,</if>
<if test="enterDate != null">enterDate,</if>
<if test="exitDate != null">exitDate,</if>
<if test="companyId != null">companyId,</if>
<if test="companyName != null">companyName,</if>
<if test="vendorId != null">vendorId,</if>
<if test="teamId != null">teamId,</if>
<if test="teamName != null">teamName,</if>
<if test="enterType != null">enterType,</if>
<if test="other != null and other != ''">other,</if>
<if test="remark != null">remark,</if>
<if test="isDel != null">is_del,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="cfgid != null">#{cfgid},</if>
<if test="appId != null">#{appId},</if>
<if test="vendorsCode != null">#{vendorsCode},</if>
<if test="workerId != null">#{workerId},</if>
<if test="laborWorkerId != null">#{laborWorkerId},</if>
<if test="workerCategory != null">#{workerCategory},</if>
<if test="qrCode != null">#{qrCode},</if>
<if test="name != null">#{name},</if>
<if test="ethnic != null">#{ethnic},</if>
<if test="nativePlace != null">#{nativePlace},</if>
<if test="gender != null">#{gender},</if>
<if test="birthDate != null">#{birthDate},</if>
<if test="phone != null and phone != ''">#{phone},</if>
<if test="degreeName != null">#{degreeName},</if>
<if test="photo != null">#{photo},</if>
<if test="recentPhoto != null">#{recentPhoto},</if>
<if test="groupId != null">#{groupId},</if>
<if test="groupName != null">#{groupName},</if>
<if test="leader != null">#{leader},</if>
<if test="workTypeCode != null">#{workTypeCode},</if>
<if test="workTypeName != null">#{workTypeName},</if>
<if test="specWorkType != null">#{specWorkType},</if>
<if test="hatCode != null">#{hatCode},</if>
<if test="state != null">#{state},</if>
<if test="enterDate != null">#{enterDate},</if>
<if test="exitDate != null">#{exitDate},</if>
<if test="companyId != null">#{companyId},</if>
<if test="companyName != null">#{companyName},</if>
<if test="vendorId != null">#{vendorId},</if>
<if test="teamId != null">#{teamId},</if>
<if test="teamName != null">#{teamName},</if>
<if test="enterType != null">#{enterType},</if>
<if test="other != null and other != ''">#{other},</if>
<if test="remark != null">#{remark},</if>
<if test="isDel != null">#{isDel},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateSurProjectAttendanceUser" parameterType="SurProjectAttendanceUser">
update sur_project_attendance_user
<trim prefix="SET" suffixOverrides=",">
<if test="cfgid != null">cfgid = #{cfgid},</if>
<if test="appId != null">app_id = #{appId},</if>
<if test="vendorsCode != null">vendors_code = #{vendorsCode},</if>
<if test="workerId != null">workerId = #{workerId},</if>
<if test="laborWorkerId != null">laborWorkerId = #{laborWorkerId},</if>
<if test="workerCategory != null">workerCategory = #{workerCategory},</if>
<if test="qrCode != null">qrCode = #{qrCode},</if>
<if test="name != null">name = #{name},</if>
<if test="ethnic != null">ethnic = #{ethnic},</if>
<if test="nativePlace != null">nativePlace = #{nativePlace},</if>
<if test="gender != null">gender = #{gender},</if>
<if test="birthDate != null">birthDate = #{birthDate},</if>
<if test="phone != null and phone != ''">phone = #{phone},</if>
<if test="degreeName != null">degreeName = #{degreeName},</if>
<if test="photo != null">photo = #{photo},</if>
<if test="recentPhoto != null">recentPhoto = #{recentPhoto},</if>
<if test="groupId != null">groupId = #{groupId},</if>
<if test="groupName != null">groupName = #{groupName},</if>
<if test="leader != null">leader = #{leader},</if>
<if test="workTypeCode != null">workTypeCode = #{workTypeCode},</if>
<if test="workTypeName != null">workTypeName = #{workTypeName},</if>
<if test="specWorkType != null">specWorkType = #{specWorkType},</if>
<if test="hatCode != null">hatCode = #{hatCode},</if>
<if test="state != null">state = #{state},</if>
<if test="enterDate != null">enterDate = #{enterDate},</if>
<if test="exitDate != null">exitDate = #{exitDate},</if>
<if test="companyId != null">companyId = #{companyId},</if>
<if test="companyName != null">companyName = #{companyName},</if>
<if test="vendorId != null">vendorId = #{vendorId},</if>
<if test="teamId != null">teamId = #{teamId},</if>
<if test="teamName != null">teamName = #{teamName},</if>
<if test="enterType != null">enterType = #{enterType},</if>
<if test="other != null and other != ''">other = #{other},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSurProjectAttendanceUserById" parameterType="Long">
delete from sur_project_attendance_user where id = #{id}
</delete>
<delete id="deleteSurProjectAttendanceUserByIds" parameterType="String">
delete from sur_project_attendance_user where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<delete id="deleteSurProjectAttendanceUserByParams" parameterType="String">
delete from sur_project_attendance_user where CONCAT(app_id,'-',workerId) in
<foreach collection="list" item="item" separator="," open="(" close=")">
#{item}
</foreach>
</delete>
<insert id="batchSurProjectAttendanceUser">
insert into sur_project_attendance_user( id, cfgid, vendors_code, workerId, laborWorkerId, workerCategory, qrCode, name, ethnic, nativePlace, gender, birthDate, phone, degreeName, photo, recentPhoto, groupId, groupName, leader, workTypeCode, workTypeName, specWorkType, hatCode, state, enterDate, exitDate, companyId, companyName, vendorId, teamId, teamName, enterType, other, remark, is_del, create_by, create_time, update_by, update_time) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.id}, #{item.cfgid}, #{item.vendorsCode}, #{item.workerId}, #{item.laborWorkerId}, #{item.workerCategory}, #{item.qrCode}, #{item.name}, #{item.ethnic}, #{item.nativePlace}, #{item.gender}, #{item.birthDate}, #{item.phone}, #{item.degreeName}, #{item.photo}, #{item.recentPhoto}, #{item.groupId}, #{item.groupName}, #{item.leader}, #{item.workTypeCode}, #{item.workTypeName}, #{item.specWorkType}, #{item.hatCode}, #{item.state}, #{item.enterDate}, #{item.exitDate}, #{item.companyId}, #{item.companyName}, #{item.vendorId}, #{item.teamId}, #{item.teamName}, #{item.enterType}, #{item.other}, #{item.remark}, #{item.isDel}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime})
</foreach>
</insert>
<sql id="sqlAttendanceData">
(
SELECT * FROM sur_project_attendance_data WHERE DATE(attendance_time)=date(#{createBy}) AND cfgid IN (
SELECT id FROM sur_project_attendance_cfg WHERE project_id=#{projectId} AND sub_dept_id=#{subDeptId}
) ) xx
</sql>
<select id="queryAttendanceData" parameterType="SurProjectAttendanceCfg" resultMap="SurProjectAttendanceUserResult">
select * from (
select n.*,m.inTime,m.outTime from (
SELECT * FROM (
SELECT workerId,attendance_time inTime,null outtime FROM sur_project_attendance_data WHERE id IN (
SELECT min(id) id FROM <include refid="sqlAttendanceData"/> WHERE attendance_type='e' GROUP BY workerId )) X WHERE workerId NOT IN (
SELECT workerId FROM <include refid="sqlAttendanceData"/> WHERE attendance_type='l' GROUP BY workerId
)
union
select * from (
select workerId,null inTime,attendance_time outTime from sur_project_attendance_data where id in (
select max(id) id from <include refid="sqlAttendanceData"/> where attendance_type='l' group by workerId )) x where workerId not in (
SELECT workerId FROM <include refid="sqlAttendanceData"/> WHERE attendance_type='e' GROUP BY workerId
)
union
select x.workerId,y.attendance_time inTime,x.attendance_time outTime from (
SELECT id,workerId,attendance_time FROM sur_project_attendance_data WHERE id IN (
SELECT MAX(id) id FROM <include refid="sqlAttendanceData"/> WHERE attendance_type='l' GROUP BY workerId )
) x cross join (
SELECT id,workerId,attendance_time FROM sur_project_attendance_data WHERE id IN (
SELECT MIN(id) id FROM <include refid="sqlAttendanceData"/> WHERE attendance_type='e' GROUP BY workerId )
) y on x.workerId=y.workerId
) m left join sur_project_attendance_user n on m.workerId=n.workerId
) oo
</select>
<select id="countAttendance" resultType="Long" parameterType="SurProjectAttendanceCfg">
select count(1) cnt from sur_project_attendance_user u, sur_project_attendance_cfg c,view_sur_project_attendance_group g
where u.cfgid=c.id and u.state=0 and u.companyId=g.companyId
and u.workerid in(
SELECT workerid FROM sur_project_attendance_data WHERE DATE(attendance_time)=date(#{createBy}) AND cfgid IN (
SELECT id FROM sur_project_attendance_cfg WHERE project_id=#{projectId} AND sub_dept_id=#{subDeptId}
) group by workerid
)
</select>
<select id="queryAttendanceByUserIds" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
select workerid,attendance_type name,min(attendance_time) inTime,max(attendance_time) outTime from sur_project_attendance_data
where DATE(attendance_time)=date(#{createBy})
<if test="workerIds !=null and workerIds.size()>0">
and workerid in
<foreach collection="workerIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
group by workerid,attendance_type
</select>
<select id="queryAttendanceUsers" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
select u.* from sur_project_attendance_user u, sur_project_attendance_cfg c,view_sur_project_attendance_group g
where u.cfgid=c.id and u.state=0 and u.companyId=g.companyId
and u.workerid in(
SELECT workerid FROM sur_project_attendance_data WHERE DATE(attendance_time)=date(#{createBy}) AND cfgid IN (
SELECT id FROM sur_project_attendance_cfg WHERE project_id=#{projectId} AND sub_dept_id=#{subDeptId}
) group by workerid
)
order by u.id limit #{index},#{size}
</select>
<select id="countTodayAttendance" resultType="Long" parameterType="SurProjectAttendanceUser">
select count(1) cnt from sur_project_attendance_user u, sur_project_attendance_cfg c,view_sur_project_attendance_group g
where u.cfgid=c.id and u.state=0 and u.companyId=g.companyId
and u.workerid in(
SELECT workerid FROM sur_project_attendance_data WHERE DATE(attendance_time)=CURDATE() group by workerid
)
<if test="id==1">
and g.companyTypeId in (1,6)
</if>
<if test="id==2">
and g.companyTypeId in (0,2,3,4,5)
</if>
<if test="id==8">
and g.companyTypeId =8
</if>
<if test="projectId!=null and projectId>0">
and c.project_id=#{projectId}
</if>
<if test="deptId!=null and deptId>0">
and c.project_id in (SELECT id FROM sur_project WHERE deptid=#{deptId})
</if>
<if test="prjIds !=null and prjIds.size()>0">
and c.project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</select>
<select id="todayAttendanceOld" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
select a.* ,
(select min(attendance_time) from sur_project_attendance_data b where b.workerId=a.workerId and date(b.attendance_time)=CURDATE() and b.attendance_type='e') inTime,
(SELECT Max(attendance_time) FROM sur_project_attendance_data b WHERE b.workerId=a.workerId AND DATE(b.attendance_time)=CURDATE() AND b.attendance_type='l') outTime
from (
select u.* from sur_project_attendance_user u, sur_project_attendance_cfg c,view_sur_project_attendance_group g
where u.cfgid=c.id and u.state=0 and u.companyId=g.companyId
and u.workerid in(
SELECT workerid FROM sur_project_attendance_data WHERE DATE(attendance_time)=CURDATE()
)
<if test="id==1">
and g.companyTypeId in (1,6)
</if>
<if test="id==2">
and g.companyTypeId in (0,2,3,4,5)
</if>
<if test="id==8">
and g.companyTypeId =8
</if>
<if test="projectId!=null and projectId>0">
and c.project_id=#{projectId}
</if>
<if test="deptId!=null and deptId>0">
and c.project_id in (SELECT id FROM sur_project WHERE deptid=#{deptId})
</if>
<if test="prjIds !=null and prjIds.size()>0">
and c.project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
order by u.id limit #{index},#{size} ) a
</select>
<select id="todayAttendance" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
select u.* from sur_project_attendance_user u, sur_project_attendance_cfg c,view_sur_project_attendance_group g
where u.cfgid=c.id and u.state=0 and u.companyId=g.companyId
and u.workerid in(
SELECT workerid FROM sur_project_attendance_data WHERE DATE(attendance_time)=CURDATE() group by workerid
)
<if test="id==1">
and g.companyTypeId in (1,6)
</if>
<if test="id==2">
and g.companyTypeId in (0,2,3,4,5)
</if>
<if test="id==8">
and g.companyTypeId =8
</if>
<if test="projectId!=null and projectId>0">
and c.project_id=#{projectId}
</if>
<if test="deptId!=null and deptId>0">
and c.project_id in (SELECT id FROM sur_project WHERE deptid=#{deptId})
</if>
<if test="prjIds !=null and prjIds.size()>0">
and c.project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
order by u.id limit #{index},#{size}
</select>
<select id="todayAttendanceData" parameterType="java.util.List" resultMap="SurProjectAttendanceUserResult">
select workerid,attendance_type name,min(attendance_time) inTime,max(attendance_time) outTime from sur_project_attendance_data where DATE(attendance_time)=CURDATE()
<if test="list !=null and list.size()>0">
and workerid in
<foreach collection="list" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
group by workerid,attendance_type
</select>
<select id="todayAttendanceOtherData" parameterType="map" resultMap="SurProjectAttendanceUserResult">
select workerid,min(attendance_time) inTime,max(attendance_time) outTime from sur_project_attendance_data where cfgid=#{cfgid} and DATE(attendance_time)=#{date}
<if test="list !=null and list.size()>0">
and workerid in
<foreach collection="list" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
group by workerid
</select>
<select id="queryWorkerOnDuty" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
SELECT u.id,u.cfgid,u.app_id,u.vendors_code,u.workerId,u.laborWorkerId,u.workerCategory,u.qrCode,u.name,
u.ethnic,u.nativePlace,u.gender,u.birthDate,u.phone,u.photo,u.recentPhoto,
u.groupId,u.leader,u.workTypeCode,u.specWorkType,
u.hatCode,u.state,u.enterDate,u.exitDate,u.companyId,u.vendorId,
u.teamId,u.teamName,u.enterType,u.is_del,u.create_by,u.create_time,u.update_by,u.update_time,
b.project_id,b.sub_dept_id,u.companyName,u.workTypeName,u.groupName,
b.project_id,b.sub_dept_id, g.teamname remark,g.companyName degreeName
FROM sur_project_attendance_user u,sur_project_attendance_cfg b,view_sur_project_attendance_group g,sur_project sp
WHERE u.cfgid=b.id and u.state=0 and u.companyId=g.companyId and sp.isDel=0 and b.project_id = sp.id
<if test="id==101">
and g.companyTypeId in (1,6)
</if>
<if test="id==102">
and g.companyTypeId =8
</if>
<if test="id==103">
and g.companyTypeId in (0,2,3,4,5)
</if>
<if test="projectId!=null and projectId>0">
and b.project_id=#{projectId}
</if>
<if test="deptId!=null and deptId>0">
and sp.deptId=#{deptId}
</if>
<if test='proType != null and proType != "" and proType != "0"'> and sp.projectType = #{proType}</if>
<if test="prjIds !=null and prjIds.size()>0">
and b.project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</select>
<select id="attendanceUserList" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
SELECT u.id,u.cfgid,u.app_id,u.vendors_code,u.workerId,u.laborWorkerId,u.workerCategory,u.qrCode,u.name,
u.ethnic,u.nativePlace,u.gender,u.birthDate,u.phone,u.photo,u.recentPhoto,
u.groupId,u.leader,u.workTypeCode,u.specWorkType,
u.hatCode,u.state,u.enterDate,u.exitDate,u.companyId,u.vendorId,
u.teamId,u.teamName,u.enterType,u.is_del,u.create_by,u.create_time,u.update_by,u.update_time,
b.project_id,b.sub_dept_id,u.companyName,u.workTypeName,u.groupName,
b.project_id,b.sub_dept_id, g.teamname remark,g.companyName degreeName,g.companyTypeId
FROM sur_project_attendance_user u,sur_project_attendance_cfg b,view_sur_project_attendance_group g,sur_project sp
WHERE u.cfgid=b.id and u.companyId=g.companyId and sp.isDel=0 and b.project_id = sp.id
<if test="companyTypeId==101">
and g.companyTypeId in (1,6)
</if>
<if test="companyTypeId==102">
and g.companyTypeId =8
</if>
<if test="companyTypeId==103">
and g.companyTypeId in (0,2,3,4,5)
</if>
<if test="projectId!=null and projectId>0">
and b.project_id=#{projectId}
</if>
<if test="id != null"> and u.id = #{id}</if>
<if test="state != null "> and u.state = #{state}</if>
<if test="name != null and name != ''"> and u.name like concat('%', #{name}, '%')</if>
order by id
</select>
<select id="groupByWorkerOnDutyByDept" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
SELECT p.id, p.projectName NAME,c.dept_name groupName,g.companyTypeId companyId,COUNT(1) cfgid
FROM sur_project_attendance_user u,sur_project_attendance_cfg b,view_sur_project_attendance_group g,sur_project p,sys_dept c
where u.cfgid=b.id and u.state=0 and u.companyId=g.companyId and b.project_id=p.id and c.dept_id=b.sub_dept_id
and p.isDel=0
and g.companyTypeId in (1,6,0,2,3,4,5,8)
<if test="deptId!=null and deptId>0">
and p.deptId=#{deptId}
</if>
<if test='proType != null and proType != "" and proType != "0"'> and p.projectType = #{proType}</if>
<if test="prjIds !=null and prjIds.size()>0">
and b.project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
group by p.projectName,c.dept_name,g.companyTypeId,p.id
order by p.id
</select>
<select id="groupUserByParams" parameterType="SurProjectAttendanceUser" resultType="Map">
select '1' as type,g.companyTypeId,count(1) as total
from sur_project_attendance_user u
left join view_sur_project_attendance_group g on g.cfgid = u.cfgid and u.companyId=g.companyId
where u.cfgid in (select cfg.id from sur_project_attendance_cfg cfg where cfg.project_id=#{projectId} and cfg.is_del=0)
and g.companyTypeId in (0,1,2,3,4,5,6,8)
and u.state=0
<if test="name != null and name != ''"> and u.name like concat('%', #{name}, '%')</if>
group by g.companyTypeId
UNION ALL
select '2' as type,g.companyTypeId,count(1) as total
from sur_project_attendance_user u
left join view_sur_project_attendance_group g on g.cfgid = u.cfgid and u.companyId=g.companyId
where u.cfgid in (select cfg.id from sur_project_attendance_cfg cfg where cfg.project_id=#{projectId} and cfg.is_del=0)
and g.companyTypeId in (0,1,2,3,4,5,6,8)
and u.state=1
<if test="name != null and name != ''"> and u.name like concat('%', #{name}, '%')</if>
group by g.companyTypeId
</select>
<select id="findUserAllByDays" parameterType="Long" resultType="Map">
select '1' as type,g.companyTypeId,count(1) as total
from sur_project_attendance_user u
left join view_sur_project_attendance_group g on g.cfgid = u.cfgid and u.companyId=g.companyId
where u.cfgid in (select cfg.id from sur_project_attendance_cfg cfg where cfg.project_id=#{projectId} and cfg.is_del=0)
and g.companyTypeId in (0,1,2,3,4,5,6,8)
and u.state=0
group by g.companyTypeId
</select>
<select id="groupByWorkerByDept" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
SELECT p.id, p.projectName NAME,c.dept_name groupName,g.companyTypeId companyId,COUNT(1) cfgid
FROM sur_project_attendance_user u,sur_project_attendance_cfg b,view_sur_project_attendance_group g,sur_project p,sys_dept c
where u.cfgid=b.id and u.state= #{state} and u.companyId=g.companyId and b.project_id=p.id and c.dept_id=b.sub_dept_id
and p.isDel=0
and g.companyTypeId in (1,6,0,2,3,4,5,8)
<if test="deptId!=null and deptId>0">
and p.deptId=#{deptId}
</if>
<if test='proType != null and proType != "" and proType != "0"'> and p.projectType = #{proType}</if>
<if test="prjIds !=null and prjIds.size()>0">
and b.project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
group by p.projectName,c.dept_name,g.companyTypeId,p.id
order by p.id
</select>
<select id="queryWorkerByState" parameterType="SurProjectAttendanceUser" resultMap="SurProjectAttendanceUserResult">
SELECT u.id,u.cfgid,u.app_id,u.vendors_code,u.workerId,u.laborWorkerId,u.workerCategory,u.qrCode,u.name,
u.ethnic,u.nativePlace,u.gender,u.birthDate,u.phone,u.photo,u.recentPhoto,
u.groupId,u.leader,u.workTypeCode,u.specWorkType,
u.hatCode,u.state,u.enterDate,u.exitDate,u.companyId,u.vendorId,
u.teamId,u.teamName,u.enterType,u.is_del,u.create_by,u.create_time,u.update_by,u.update_time,
b.project_id,b.sub_dept_id,u.companyName,u.workTypeName,u.groupName,
b.project_id,b.sub_dept_id, g.teamname remark,g.companyName degreeName
FROM sur_project_attendance_user u,sur_project_attendance_cfg b,view_sur_project_attendance_group g,sur_project sp
WHERE u.cfgid=b.id and u.state=#{state} and u.companyId=g.companyId and sp.isDel=0 and b.project_id = sp.id
<if test="id==101">
and g.companyTypeId in (1,6)
</if>
<if test="id==102">
and g.companyTypeId =8
</if>
<if test="id==103">
and g.companyTypeId in (0,2,3,4,5)
</if>
<if test="projectId!=null and projectId>0">
and b.project_id=#{projectId}
</if>
<if test="deptId!=null and deptId>0">
and sp.deptId=#{deptId}
</if>
<if test='proType != null and proType != "" and proType != "0"'> and sp.projectType = #{proType}</if>
<if test="prjIds !=null and prjIds.size()>0">
and b.project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</select>
</mapper>

View File

@ -1,272 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yanzhu.xd.system.mapper.SurProjectMapper">
<resultMap type="SurProject" id="SurProjectResult">
<result property="id" column="id" />
<result property="deptId" column="deptId" />
<result property="projectName" column="projectName" />
<result property="projectCode" column="projectCode" />
<result property="paretProjectName" column="paretProjectName" />
<result property="paretProjectCode" column="paretProjectCode" />
<result property="simpleName" column="simpleName" />
<result property="projectType" column="projectType" />
<result property="projiectLevel" column="projiectLevel" />
<result property="projectRegional" column="projectRegional" />
<result property="projectAddress" column="projectAddress" />
<result property="projectNature" column="projectNature" />
<result property="licenceNumber" column="licenceNumber" />
<result property="projectApproval" column="projectApproval" />
<result property="projectPerson" column="projectPerson" />
<result property="projectPhone" column="projectPhone" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="projectTimeLimit" column="projectTimeLimit" />
<result property="totalInvestment" column="totalInvestment" />
<result property="floorArea" column="floorArea" />
<result property="totalOutputValue" column="totalOutputValue" />
<result property="plannedCompletionTime" column="plannedCompletionTime" />
<result property="scheduledStartTime" column="scheduledStartTime" />
<result property="actualOperatingTime" column="actualOperatingTime" />
<result property="actualCompletionTime" column="actualCompletionTime" />
<result property="contractAmount" column="contractAmount" />
<result property="paidAmount" column="paidAmount" />
<result property="onAccountAmount" column="onAccountAmount" />
<result property="projectSchedule" column="projectSchedule" />
<result property="projectSummarize" column="projectSummarize" />
<result property="prjPlanUrl" column="prjPlanUrl" />
<result property="prjRenderingUrl" column="prjRenderingUrl" />
<result property="isDel" column="isDel" />
<result property="projectStatus" column="projectStatus" />
<result property="servicePersonnel" column="servicePersonnel" />
<result property="supervisorPersonnel" column="supervisorPersonnel" />
<result property="generalContractor" column="generalContractor" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="weightType" column="weightType" />
<result property="projectSort" column="projectSort" />
<result property="progressVisible" column="progressVisible" />
</resultMap>
<sql id="selectSurProjectVo">
select id, deptId, projectName, projectCode, paretProjectName, paretProjectCode, simpleName, projectType, projiectLevel, projectRegional, projectAddress, projectNature, licenceNumber, projectApproval, projectPerson, projectPhone, longitude, latitude, projectTimeLimit, totalInvestment, floorArea, totalOutputValue, plannedCompletionTime, scheduledStartTime, actualOperatingTime, actualCompletionTime, contractAmount, paidAmount, onAccountAmount, projectSchedule, projectSummarize, prjPlanUrl, prjRenderingUrl, isDel, projectStatus, servicePersonnel, supervisorPersonnel, generalContractor, create_by, create_time, update_by, update_time, remark, weightType, projectSort, progressVisible from sur_project
</sql>
<select id="selectSurProjectList" parameterType="SurProject" resultMap="SurProjectResult">
<include refid="selectSurProjectVo"/>
<where>
<if test="deptId != null "> and deptId = #{deptId}</if>
<if test="projectName != null and projectName != ''"> and projectName like concat('%', #{projectName}, '%')</if>
<if test="projectCode != null and projectCode != ''"> and projectCode = #{projectCode}</if>
<if test="paretProjectName != null and paretProjectName != ''"> and paretProjectName like concat('%', #{paretProjectName}, '%')</if>
<if test="paretProjectCode != null and paretProjectCode != ''"> and paretProjectCode = #{paretProjectCode}</if>
<if test="simpleName != null and simpleName != ''"> and simpleName like concat('%', #{simpleName}, '%')</if>
<if test="projectType != null and projectType != ''"> and projectType = #{projectType}</if>
<if test="projiectLevel != null and projiectLevel != ''"> and projiectLevel = #{projiectLevel}</if>
<if test="projectRegional != null and projectRegional != ''"> and projectRegional = #{projectRegional}</if>
<if test="projectAddress != null and projectAddress != ''"> and projectAddress = #{projectAddress}</if>
<if test="projectNature != null and projectNature != ''"> and projectNature = #{projectNature}</if>
<if test="licenceNumber != null and licenceNumber != ''"> and licenceNumber = #{licenceNumber}</if>
<if test="projectApproval != null and projectApproval != ''"> and projectApproval = #{projectApproval}</if>
<if test="projectPerson != null and projectPerson != ''"> and projectPerson = #{projectPerson}</if>
<if test="projectPhone != null and projectPhone != ''"> and projectPhone = #{projectPhone}</if>
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
<if test="projectTimeLimit != null "> and projectTimeLimit = #{projectTimeLimit}</if>
<if test="totalInvestment != null and totalInvestment != ''"> and totalInvestment = #{totalInvestment}</if>
<if test="floorArea != null and floorArea != ''"> and floorArea = #{floorArea}</if>
<if test="totalOutputValue != null and totalOutputValue != ''"> and totalOutputValue = #{totalOutputValue}</if>
<if test="plannedCompletionTime != null and plannedCompletionTime != ''"> and plannedCompletionTime = #{plannedCompletionTime}</if>
<if test="scheduledStartTime != null and scheduledStartTime != ''"> and scheduledStartTime = #{scheduledStartTime}</if>
<if test="actualOperatingTime != null and actualOperatingTime != ''"> and actualOperatingTime = #{actualOperatingTime}</if>
<if test="actualCompletionTime != null and actualCompletionTime != ''"> and actualCompletionTime = #{actualCompletionTime}</if>
<if test="contractAmount != null and contractAmount != ''"> and contractAmount = #{contractAmount}</if>
<if test="paidAmount != null and paidAmount != ''"> and paidAmount = #{paidAmount}</if>
<if test="onAccountAmount != null and onAccountAmount != ''"> and onAccountAmount = #{onAccountAmount}</if>
<if test="projectSchedule != null and projectSchedule != ''"> and projectSchedule = #{projectSchedule}</if>
<if test="projectSummarize != null and projectSummarize != ''"> and projectSummarize = #{projectSummarize}</if>
<if test="prjPlanUrl != null and prjPlanUrl != ''"> and prjPlanUrl = #{prjPlanUrl}</if>
<if test="prjRenderingUrl != null and prjRenderingUrl != ''"> and prjRenderingUrl = #{prjRenderingUrl}</if>
<if test="isDel != null "> and isDel = #{isDel}</if>
<if test="projectStatus != null and projectStatus != ''"> and projectStatus = #{projectStatus}</if>
<if test="servicePersonnel != null "> and servicePersonnel = #{servicePersonnel}</if>
<if test="supervisorPersonnel != null "> and supervisorPersonnel = #{supervisorPersonnel}</if>
<if test="generalContractor != null "> and generalContractor = #{generalContractor}</if>
<if test="weightType != null and weightType != ''"> and weightType = #{weightType}</if>
<if test="projectSort != null "> and projectSort = #{projectSort}</if>
<if test="progressVisible != null and progressVisible != ''"> and progressVisible = #{progressVisible}</if>
</where>
</select>
<select id="selectSurProjectById" parameterType="Long" resultMap="SurProjectResult">
<include refid="selectSurProjectVo"/>
where id = #{id}
</select>
<insert id="insertSurProject" parameterType="SurProject" useGeneratedKeys="true" keyProperty="id">
insert into sur_project
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deptId != null">deptId,</if>
<if test="projectName != null">projectName,</if>
<if test="projectCode != null">projectCode,</if>
<if test="paretProjectName != null">paretProjectName,</if>
<if test="paretProjectCode != null">paretProjectCode,</if>
<if test="simpleName != null">simpleName,</if>
<if test="projectType != null">projectType,</if>
<if test="projiectLevel != null">projiectLevel,</if>
<if test="projectRegional != null">projectRegional,</if>
<if test="projectAddress != null">projectAddress,</if>
<if test="projectNature != null">projectNature,</if>
<if test="licenceNumber != null">licenceNumber,</if>
<if test="projectApproval != null">projectApproval,</if>
<if test="projectPerson != null">projectPerson,</if>
<if test="projectPhone != null">projectPhone,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="projectTimeLimit != null">projectTimeLimit,</if>
<if test="totalInvestment != null">totalInvestment,</if>
<if test="floorArea != null">floorArea,</if>
<if test="totalOutputValue != null">totalOutputValue,</if>
<if test="plannedCompletionTime != null">plannedCompletionTime,</if>
<if test="scheduledStartTime != null">scheduledStartTime,</if>
<if test="actualOperatingTime != null">actualOperatingTime,</if>
<if test="actualCompletionTime != null">actualCompletionTime,</if>
<if test="contractAmount != null">contractAmount,</if>
<if test="paidAmount != null">paidAmount,</if>
<if test="onAccountAmount != null">onAccountAmount,</if>
<if test="projectSchedule != null">projectSchedule,</if>
<if test="projectSummarize != null">projectSummarize,</if>
<if test="prjPlanUrl != null">prjPlanUrl,</if>
<if test="prjRenderingUrl != null">prjRenderingUrl,</if>
<if test="isDel != null">isDel,</if>
<if test="projectStatus != null">projectStatus,</if>
<if test="servicePersonnel != null">servicePersonnel,</if>
<if test="supervisorPersonnel != null">supervisorPersonnel,</if>
<if test="generalContractor != null">generalContractor,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="weightType != null">weightType,</if>
<if test="projectSort != null">projectSort,</if>
<if test="progressVisible != null">progressVisible,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deptId != null">#{deptId},</if>
<if test="projectName != null">#{projectName},</if>
<if test="projectCode != null">#{projectCode},</if>
<if test="paretProjectName != null">#{paretProjectName},</if>
<if test="paretProjectCode != null">#{paretProjectCode},</if>
<if test="simpleName != null">#{simpleName},</if>
<if test="projectType != null">#{projectType},</if>
<if test="projiectLevel != null">#{projiectLevel},</if>
<if test="projectRegional != null">#{projectRegional},</if>
<if test="projectAddress != null">#{projectAddress},</if>
<if test="projectNature != null">#{projectNature},</if>
<if test="licenceNumber != null">#{licenceNumber},</if>
<if test="projectApproval != null">#{projectApproval},</if>
<if test="projectPerson != null">#{projectPerson},</if>
<if test="projectPhone != null">#{projectPhone},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="projectTimeLimit != null">#{projectTimeLimit},</if>
<if test="totalInvestment != null">#{totalInvestment},</if>
<if test="floorArea != null">#{floorArea},</if>
<if test="totalOutputValue != null">#{totalOutputValue},</if>
<if test="plannedCompletionTime != null">#{plannedCompletionTime},</if>
<if test="scheduledStartTime != null">#{scheduledStartTime},</if>
<if test="actualOperatingTime != null">#{actualOperatingTime},</if>
<if test="actualCompletionTime != null">#{actualCompletionTime},</if>
<if test="contractAmount != null">#{contractAmount},</if>
<if test="paidAmount != null">#{paidAmount},</if>
<if test="onAccountAmount != null">#{onAccountAmount},</if>
<if test="projectSchedule != null">#{projectSchedule},</if>
<if test="projectSummarize != null">#{projectSummarize},</if>
<if test="prjPlanUrl != null">#{prjPlanUrl},</if>
<if test="prjRenderingUrl != null">#{prjRenderingUrl},</if>
<if test="isDel != null">#{isDel},</if>
<if test="projectStatus != null">#{projectStatus},</if>
<if test="servicePersonnel != null">#{servicePersonnel},</if>
<if test="supervisorPersonnel != null">#{supervisorPersonnel},</if>
<if test="generalContractor != null">#{generalContractor},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="weightType != null">#{weightType},</if>
<if test="projectSort != null">#{projectSort},</if>
<if test="progressVisible != null">#{progressVisible},</if>
</trim>
</insert>
<update id="updateSurProject" parameterType="SurProject">
update sur_project
<trim prefix="SET" suffixOverrides=",">
<if test="deptId != null">deptId = #{deptId},</if>
<if test="projectName != null">projectName = #{projectName},</if>
<if test="projectCode != null">projectCode = #{projectCode},</if>
<if test="paretProjectName != null">paretProjectName = #{paretProjectName},</if>
<if test="paretProjectCode != null">paretProjectCode = #{paretProjectCode},</if>
<if test="simpleName != null">simpleName = #{simpleName},</if>
<if test="projectType != null">projectType = #{projectType},</if>
<if test="projiectLevel != null">projiectLevel = #{projiectLevel},</if>
<if test="projectRegional != null">projectRegional = #{projectRegional},</if>
<if test="projectAddress != null">projectAddress = #{projectAddress},</if>
<if test="projectNature != null">projectNature = #{projectNature},</if>
<if test="licenceNumber != null">licenceNumber = #{licenceNumber},</if>
<if test="projectApproval != null">projectApproval = #{projectApproval},</if>
<if test="projectPerson != null">projectPerson = #{projectPerson},</if>
<if test="projectPhone != null">projectPhone = #{projectPhone},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="projectTimeLimit != null">projectTimeLimit = #{projectTimeLimit},</if>
<if test="totalInvestment != null">totalInvestment = #{totalInvestment},</if>
<if test="floorArea != null">floorArea = #{floorArea},</if>
<if test="totalOutputValue != null">totalOutputValue = #{totalOutputValue},</if>
<if test="plannedCompletionTime != null">plannedCompletionTime = #{plannedCompletionTime},</if>
<if test="scheduledStartTime != null">scheduledStartTime = #{scheduledStartTime},</if>
<if test="actualOperatingTime != null">actualOperatingTime = #{actualOperatingTime},</if>
<if test="actualCompletionTime != null">actualCompletionTime = #{actualCompletionTime},</if>
<if test="contractAmount != null">contractAmount = #{contractAmount},</if>
<if test="paidAmount != null">paidAmount = #{paidAmount},</if>
<if test="onAccountAmount != null">onAccountAmount = #{onAccountAmount},</if>
<if test="projectSchedule != null">projectSchedule = #{projectSchedule},</if>
<if test="projectSummarize != null">projectSummarize = #{projectSummarize},</if>
<if test="prjPlanUrl != null">prjPlanUrl = #{prjPlanUrl},</if>
<if test="prjRenderingUrl != null">prjRenderingUrl = #{prjRenderingUrl},</if>
<if test="isDel != null">isDel = #{isDel},</if>
<if test="projectStatus != null">projectStatus = #{projectStatus},</if>
<if test="servicePersonnel != null">servicePersonnel = #{servicePersonnel},</if>
<if test="supervisorPersonnel != null">supervisorPersonnel = #{supervisorPersonnel},</if>
<if test="generalContractor != null">generalContractor = #{generalContractor},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="weightType != null">weightType = #{weightType},</if>
<if test="projectSort != null">projectSort = #{projectSort},</if>
<if test="progressVisible != null">progressVisible = #{progressVisible},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSurProjectById" parameterType="Long">
delete from sur_project where id = #{id}
</delete>
<delete id="deleteSurProjectByIds" parameterType="String">
delete from sur_project where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -1,76 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yanzhu.xd.system.mapper.SysNativeMapper">
<resultMap type="SysNative" id="SysNativeResult">
<result property="id" column="id" />
<result property="address" column="address" />
<result property="provinces" column="provinces" />
<result property="citiy" column="citiy" />
<result property="areas" column="areas" />
</resultMap>
<sql id="selectSysNativeVo">
select id, address, provinces, citiy, areas from sys_native
</sql>
<select id="selectSysNativeList" parameterType="SysNative" resultMap="SysNativeResult">
<include refid="selectSysNativeVo"/>
<where>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="provinces != null and provinces != ''"> and provinces = #{provinces}</if>
<if test="citiy != null and citiy != ''"> and citiy = #{citiy}</if>
<if test="areas != null and areas != ''"> and areas = #{areas}</if>
</where>
</select>
<select id="selectSysNativeById" parameterType="Long" resultMap="SysNativeResult">
<include refid="selectSysNativeVo"/>
where id = #{id}
</select>
<insert id="insertSysNative" parameterType="SysNative">
insert into sys_native
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="address != null">address,</if>
<if test="provinces != null">provinces,</if>
<if test="citiy != null">citiy,</if>
<if test="areas != null">areas,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="address != null">#{address},</if>
<if test="provinces != null">#{provinces},</if>
<if test="citiy != null">#{citiy},</if>
<if test="areas != null">#{areas},</if>
</trim>
</insert>
<update id="updateSysNative" parameterType="SysNative">
update sys_native
<trim prefix="SET" suffixOverrides=",">
<if test="address != null">address = #{address},</if>
<if test="provinces != null">provinces = #{provinces},</if>
<if test="citiy != null">citiy = #{citiy},</if>
<if test="areas != null">areas = #{areas},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSysNativeById" parameterType="Long">
delete from sys_native where id = #{id}
</delete>
<delete id="deleteSysNativeByIds" parameterType="String">
delete from sys_native where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectSysNativeListById" parameterType="Long" resultMap="SysNativeResult">
SELECT * FROM sys_native WHERE id=#{id}
</select>
</mapper>

View File

@ -1,481 +0,0 @@
2024-10-25 22:12:02,670 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:02,672 - ResourceManager : found vm/html/edit.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,672 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:02,674 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:02,675 - ResourceManager : found vm/sql/sql.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,294 - ResourceManager : found vm/java/domain.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,296 - ResourceManager : found vm/java/mapper.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,296 - ResourceManager : found vm/java/service.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,297 - ResourceManager : found vm/java/serviceImpl.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,297 - ResourceManager : found vm/java/controller.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,298 - ResourceManager : found vm/xml/mapper.xml.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,300 - ResourceManager : found vm/html/list.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,302 - ResourceManager : found vm/html/add.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,302 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,302 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,302 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,302 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,302 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,302 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,302 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,302 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,303 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,304 - ResourceManager : found vm/html/edit.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,305 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,306 - ResourceManager : found vm/sql/sql.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,334 - ResourceManager : found vm/java/domain.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,335 - ResourceManager : found vm/java/mapper.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,336 - ResourceManager : found vm/java/service.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,337 - ResourceManager : found vm/java/serviceImpl.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,338 - ResourceManager : found vm/java/controller.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,338 - ResourceManager : found vm/xml/mapper.xml.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,341 - ResourceManager : found vm/html/list.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,342 - ResourceManager : found vm/html/add.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,342 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,342 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,342 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,342 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,342 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,342 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,342 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,342 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,342 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,343 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,344 - ResourceManager : found vm/html/edit.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,344 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,345 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,345 - ResourceManager : found vm/sql/sql.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,372 - ResourceManager : found vm/java/domain.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,374 - ResourceManager : found vm/java/mapper.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,374 - ResourceManager : found vm/java/service.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,375 - ResourceManager : found vm/java/serviceImpl.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,376 - ResourceManager : found vm/java/controller.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,376 - ResourceManager : found vm/xml/mapper.xml.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,378 - ResourceManager : found vm/html/list.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,379 - ResourceManager : found vm/html/add.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,380 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,381 - ResourceManager : found vm/html/edit.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,381 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,382 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,382 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,382 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,382 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,382 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,382 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,382 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,382 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,382 - ResourceManager : found vm/sql/sql.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,409 - ResourceManager : found vm/java/domain.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,410 - ResourceManager : found vm/java/mapper.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,411 - ResourceManager : found vm/java/service.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,412 - ResourceManager : found vm/java/serviceImpl.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,412 - ResourceManager : found vm/java/controller.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,413 - ResourceManager : found vm/xml/mapper.xml.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,415 - ResourceManager : found vm/html/list.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,416 - ResourceManager : found vm/html/add.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 10]
2024-10-25 22:12:23,416 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/add.html.vm[line 41, column 50]
2024-10-25 22:12:23,417 - ResourceManager : found vm/html/edit.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 10]
2024-10-25 22:12:23,418 - Right side ($treeParentCode) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. vm/html/edit.html.vm[line 42, column 50]
2024-10-25 22:12:23,418 - ResourceManager : found vm/sql/sql.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,447 - ResourceManager : found vm/java/domain.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,448 - ResourceManager : found vm/java/mapper.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,448 - ResourceManager : found vm/java/service.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,449 - ResourceManager : found vm/java/serviceImpl.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,450 - ResourceManager : found vm/java/controller.java.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,451 - ResourceManager : found vm/xml/mapper.xml.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,452 - ResourceManager : found vm/html/list.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2024-10-25 22:12:23,454 - ResourceManager : found vm/html/add.html.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader