Merge branch '0206czks' into 0205cmt

# Conflicts:
#	src/main/java/com/zcloud/service/czksbimap/impl/CzksBiMapServiceImpl.java
#	src/main/java/com/zcloud/util/HiddenExcelImgToSessionView.java
#	src/main/resources/mybatis/datasource/firemanager/FireCheckStandardMapper.xml
0927cmt
zhaoyu 2024-03-08 15:08:55 +08:00
commit c0245bdf3c
17 changed files with 139 additions and 66 deletions

View File

@ -196,6 +196,7 @@ public class AppSafetyEnvironmentalController extends BaseController {
} }
List<PageData> hiddenList = safetyenvironmentalService.edit(pd); List<PageData> hiddenList = safetyenvironmentalService.edit(pd);
pd.put("hiddenList", hiddenList); pd.put("hiddenList", hiddenList);
map.put("sendPicturesList", JSON.toJSONString(strings));
map.put("pd", pd); map.put("pd", pd);
map.put("sendPicturesList", JSON.toJSONString(strings)); map.put("sendPicturesList", JSON.toJSONString(strings));
map.put("result", errInfo); map.put("result", errInfo);

View File

@ -88,20 +88,21 @@ public class CorpPromiseController extends BaseController {
if (people.size() > 0) { //承诺人数据 if (people.size() > 0) { //承诺人数据
int num = 0; int num = 0;
for (int i = 0; i < people.size(); i++) { for (int i = 0; i < people.size(); i++) {
PageData promise = new PageData();
promise.put("PROMISE_ID", pd.getString("PROMISE_ID")); //外键ID
promise.put("DEPARTMENT_ID", people.get(i).get("DEPARTMENT_ID"));
promise.put("POST_ID", people.get(i).get("POST_ID"));
List<JSONObject> user = (List<JSONObject>) people.get(i).get("USER_ID"); //同部门、同岗位下有可能选择多个人 List<JSONObject> user = (List<JSONObject>) people.get(i).get("USER_ID"); //同部门、同岗位下有可能选择多个人
promise.put("ISSIGN", 0);
if (user.size() > 0) { if (user.size() > 0) {
for (int j = 0; j < user.size(); j++) { for (int j = 0; j < user.size(); j++) {
promise.put("USER_ID", user.get(j)); PageData peo = new PageData();
promise.put("PROMISEPEOPLE_ID", this.get32UUID()); //主键 peo.put("ISSIGN", 0);
promise.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); peo.put("PROMISE_ID", pd.getString("PROMISE_ID")); //外键ID
promise.put("ISPROMISE_PEOPLE", "0"); peo.put("DEPARTMENT_ID",people.get(i).get("DEPARTMENT_ID"));
corpPromisePeopleService.save(promise); peo.put("POST_ID",people.get(i).get("POST_ID"));
corpPromisePeoples.add(promise); peo.put("USER_ID",user.get(j));
peo.put("ISSIGN",0);
peo.put("PROMISEPEOPLE_ID", this.get32UUID()); //主键
peo.put("CORPINFO_ID",people.get(i).get("CORPINFO_ID"));
peo.put("ISPROMISE_PEOPLE","1");
corpPromisePeopleService.save(peo);
corpPromisePeoples.add(peo);
num++; num++;
} }
dockData.put("corpPromisePeopleSave",JSON.toJSONString(corpPromisePeoples)); dockData.put("corpPromisePeopleSave",JSON.toJSONString(corpPromisePeoples));
@ -114,20 +115,21 @@ public class CorpPromiseController extends BaseController {
List<JSONObject> coverpeople = (List<JSONObject>) JSON.parse(pd.getString("coverpeople")); List<JSONObject> coverpeople = (List<JSONObject>) JSON.parse(pd.getString("coverpeople"));
if (coverpeople.size() > 0) { //被承诺人数据 if (coverpeople.size() > 0) { //被承诺人数据
for (int i = 0; i < coverpeople.size(); i++) { for (int i = 0; i < coverpeople.size(); i++) {
PageData promise = new PageData();
promise.put("PROMISE_ID", pd.getString("PROMISE_ID")); //外键ID
promise.put("DEPARTMENT_ID", coverpeople.get(i).get("DEPARTMENT_ID"));
promise.put("POST_ID", coverpeople.get(i).get("POST_ID"));
List<JSONObject> user = (List<JSONObject>) coverpeople.get(i).get("USER_ID"); //同部门、同岗位下有可能选择多个人 List<JSONObject> user = (List<JSONObject>) coverpeople.get(i).get("USER_ID"); //同部门、同岗位下有可能选择多个人
promise.put("ISSIGN", 0);
if (user.size() > 0) { if (user.size() > 0) {
for (int j = 0; j < user.size(); j++) { for (int j = 0; j < user.size(); j++) {
promise.put("USER_ID", user.get(j)); PageData peo = new PageData();
promise.put("PROMISEPEOPLE_ID", this.get32UUID()); //主键 peo.put("ISSIGN", 0);
promise.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); peo.put("PROMISE_ID", pd.getString("PROMISE_ID")); //外键ID
promise.put("ISPROMISE_PEOPLE", "1"); peo.put("DEPARTMENT_ID",people.get(i).get("DEPARTMENT_ID"));
corpPromisePeopleService.save(promise); peo.put("POST_ID",people.get(i).get("POST_ID"));
coverPeoples.add(promise); peo.put("USER_ID",user.get(j));
peo.put("ISSIGN",0);
peo.put("PROMISEPEOPLE_ID", this.get32UUID()); //主键
peo.put("CORPINFO_ID",people.get(i).get("CORPINFO_ID"));
peo.put("ISPROMISE_PEOPLE","1");
corpPromisePeopleService.save(peo);
coverPeoples.add(peo);
} }
dockData.put("coverPeopleList",JSON.toJSONString(coverPeoples)); dockData.put("coverPeopleList",JSON.toJSONString(coverPeoples));
} }

View File

@ -1,7 +1,6 @@
package com.zcloud.controller.corpsystem; package com.zcloud.controller.corpsystem;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.zcloud.aspect.DockAnnotation;
import com.zcloud.controller.base.BaseController; import com.zcloud.controller.base.BaseController;
import com.zcloud.entity.Page; import com.zcloud.entity.Page;
import com.zcloud.entity.PageData; import com.zcloud.entity.PageData;

View File

@ -1,5 +1,7 @@
package com.zcloud.controller.gatemachine; package com.zcloud.controller.gatemachine;
import com.alibaba.fastjson.JSON;
import com.zcloud.aspect.DockAnnotation;
import com.zcloud.controller.base.BaseController; import com.zcloud.controller.base.BaseController;
import com.zcloud.entity.Page; import com.zcloud.entity.Page;
import com.zcloud.entity.PageData; import com.zcloud.entity.PageData;
@ -9,7 +11,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* TODO * TODO
@ -36,22 +40,33 @@ public class GateAreaController extends BaseController {
} }
@RequestMapping(value = "/edit") @RequestMapping(value = "/edit")
public ReturnMap edit() { @DockAnnotation
PageData pd = this.getPageData(); public Object edit() {
gateAreaService.edit(pd); PageData pageData = this.getPageData();
return ReturnMap.ok(); gateAreaService.edit(pageData);
Map map = new HashMap();
map.put("dockData", JSON.toJSONString(pageData));
return map;
} }
@RequestMapping(value = "/removeByIds") @RequestMapping(value = "/removeByIds")
public ReturnMap removeByIds() { @DockAnnotation
public Object removeByIds() {
PageData pageData = this.getPageData(); PageData pageData = this.getPageData();
gateAreaService.removeByIds(pageData); gateAreaService.removeByIds(pageData);
return ReturnMap.ok(); Map map = new HashMap();
map.put("dockData", JSON.toJSONString(pageData));
return map;
} }
@RequestMapping(value = "/add") @RequestMapping(value = "/add")
public ReturnMap add() { @DockAnnotation
public Object add() {
PageData pageData = this.getPageData(); PageData pageData = this.getPageData();
gateAreaService.save(pageData); gateAreaService.save(pageData);
return ReturnMap.ok(); Map map = new HashMap();
map.put("dockData", JSON.toJSONString(pageData));
return map;
} }
} }

View File

@ -101,4 +101,13 @@ public class GateCarIOController extends BaseController {
return ReturnMap.ok().put("data", gateCarIOService.getAllEQCount(this.getPageData())); return ReturnMap.ok().put("data", gateCarIOService.getAllEQCount(this.getPageData()));
} }
/**
*
* @return
*/
@RequestMapping(value = "/getTodayEQCountAllForOne")
public ReturnMap getTodayEQCountAllForOne() {
return ReturnMap.ok().put("data", gateCarIOService.getAllEQCountForOne(this.getPageData()));
}
} }

View File

@ -395,6 +395,7 @@ public class SafetyEnvironmentalController extends BaseController {
} }
List<PageData> hiddenList = safetyenvironmentalService.edit(pd); List<PageData> hiddenList = safetyenvironmentalService.edit(pd);
pd.put("hiddenList", hiddenList); pd.put("hiddenList", hiddenList);
map.put("sendPicturesList", JSON.toJSONString(strings));
map.put("pd", pd); map.put("pd", pd);
map.put("sendPicturesList",JSON.toJSONString(strings)); map.put("sendPicturesList",JSON.toJSONString(strings));
map.put("result", errInfo); map.put("result", errInfo);

View File

@ -7,6 +7,7 @@ import com.zcloud.entity.Page;
import com.zcloud.entity.PageData; import com.zcloud.entity.PageData;
import com.zcloud.service.keyProjects.PlatformvideomanagementService; import com.zcloud.service.keyProjects.PlatformvideomanagementService;
import com.zcloud.util.Jurisdiction; import com.zcloud.util.Jurisdiction;
import com.zcloud.util.ReturnMap;
import com.zcloud.util.Tools; import com.zcloud.util.Tools;
import com.zcloud.util.hk.HKUtil; import com.zcloud.util.hk.HKUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -127,10 +128,10 @@ public class PlatformvideomanagementController extends BaseController {
PageData pd =this.getPageData(); PageData pd =this.getPageData();
map = HKUtil.cameraSearch(pd); map = HKUtil.cameraSearch(pd);
if(ObjectUtils.isEmpty(map)){ if(ObjectUtils.isEmpty(map)){
map = new HashMap<String,Object>(); return ReturnMap.error("海康平台摄像头调用失败");
} }
HashMap<Object, Object> data = new HashMap<>(); //HashMap<Object, Object> data = new HashMap<>();
map.put("data", data); //map.put("data", data);
map.put("result", "success"); map.put("result", "success");
return map; return map;
} }

View File

@ -240,11 +240,12 @@ public class CmtMapController extends BaseController {
*/ */
@RequestMapping("/getGatesInAndOutNumById") @RequestMapping("/getGatesInAndOutNumById")
@ResponseBody @ResponseBody
public ReturnMap getGatesInAndOutNumById() { public ReturnMap getGatesInAndOutNumById(Page page) {
ReturnMap returnMap = new ReturnMap(); ReturnMap returnMap = new ReturnMap();
PageData pageData = this.getPageData(); page.setCurrentPage(1);
Map<String, Object> data = biMapService.getGatesInAndOutNumById(pageData); page.setShowCount(999);
returnMap.put("pd", data); page.setPd(this.getPageData());
returnMap.put("data", biMapService.getGatesInAndOutNumById(page).get("data"));
return returnMap; return returnMap;
} }

View File

@ -31,7 +31,7 @@ import java.util.Map;
* www.zcloudchina.com * www.zcloudchina.com
*/ */
@Controller @Controller
@RequestMapping("/map/Eight") @RequestMapping("/czksmap/Eight")
public class MapEightController extends BaseController { public class MapEightController extends BaseController {
@Autowired @Autowired

View File

@ -37,7 +37,7 @@ public interface CzksBiMapService {
// PageData getGatesInAndOutNumById(PageData pageData); // PageData getGatesInAndOutNumById(PageData pageData);
Map<String, Object> getGatesInAndOutNumById(PageData pageData); Map<String, Object> getGatesInAndOutNumById(Page page);
Map<String, Object> getPerpleCarGateMachineCount(PageData pageData); Map<String, Object> getPerpleCarGateMachineCount(PageData pageData);

View File

@ -5,9 +5,12 @@ import com.zcloud.entity.Page;
import com.zcloud.entity.PageData; import com.zcloud.entity.PageData;
import com.zcloud.mapper.datasource.bus.CorpInfoMapper; import com.zcloud.mapper.datasource.bus.CorpInfoMapper;
import com.zcloud.mapper.datasource.czksbimap.CzksBiMapMapper; import com.zcloud.mapper.datasource.czksbimap.CzksBiMapMapper;
import com.zcloud.mapper.datasource.gatemachine.CzksGateAreaMapper;
import com.zcloud.mapper.datasource.gatemachine.CzksGateCarIOMapper;
import com.zcloud.mapper.dsno2.fireresources.CzksFireResourcesMapper;
import com.zcloud.mapper.datasource.keyProjects.PlatformvideomanagementMapper; import com.zcloud.mapper.datasource.keyProjects.PlatformvideomanagementMapper;
import com.zcloud.mapper.dsno2.fireresources.CmtFireResourcesMapper;
import com.zcloud.service.czksbimap.CzksBiMapService; import com.zcloud.service.czksbimap.CzksBiMapService;
import com.zcloud.service.gatemachine.GateCarIOService;
import com.zcloud.util.czksBiMapFactory.AbsCzksFireSourcesHandel; import com.zcloud.util.czksBiMapFactory.AbsCzksFireSourcesHandel;
import com.zcloud.util.czksBiMapFactory.CzksAssemblyBeanFactory; import com.zcloud.util.czksBiMapFactory.CzksAssemblyBeanFactory;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
@ -28,11 +31,18 @@ import java.util.*;
@Service @Service
public class CzksBiMapServiceImpl implements CzksBiMapService { public class CzksBiMapServiceImpl implements CzksBiMapService {
@Resource
private CzksGateCarIOMapper czksGateCarIOMapper;
@Resource @Resource
private CzksBiMapMapper czksBiMapper; private CzksBiMapMapper czksBiMapper;
@Autowired
GateCarIOService gateCarIOService;
@Autowired
CzksGateAreaMapper czksGateAreaMapper;
@Resource @Resource
private CmtFireResourcesMapper czksfireResourcesMapper; private CzksFireResourcesMapper czksfireResourcesMapper;
@Autowired @Autowired
private RestTemplate restTemplate; private RestTemplate restTemplate;
@Value("${perLoc.url}") @Value("${perLoc.url}")
@ -182,24 +192,35 @@ public class CzksBiMapServiceImpl implements CzksBiMapService {
}*/ }*/
@Override @Override
public Map<String, Object> getGatesInAndOutNumById(PageData pd) { public Map<String, Object> getGatesInAndOutNumById(Page page) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String fendDate = simpleDateFormat.format(new Date());
Calendar now = Calendar.getInstance();
now.add(Calendar.MINUTE, -1);
Date before = now.getTime();
String fstartDate = simpleDateFormat.format(before);
Map<String,Object> result = new HashMap<>(); Map<String,Object> result = new HashMap<>();
if (pd.getString("TYPE").equals("PERSON")){ PageData pd = page.getPd();
result = restTemplate.getForObject(url2+"/region/access/bayonetPersonnelEntryAndExitRecords?fstartDate="+fstartDate+"&fendDate="+fendDate+"&workNumber=&accId="+pd.getString("id"),Map.class); List<PageData> datalistPage = czksGateAreaMapper.getDatalistPage(page);
}else { String gateAreaName = (String) datalistPage.get(0).get("GATE_AREA_NAME");
result = restTemplate.getForObject(url2+"/region/access/bayonetVehicleEntryAndExitRecords?fstartDate="+fstartDate+"&fendDate="+fendDate+"&carsign=&accId="+pd.getString("id"),Map.class); if (gateAreaName != null && "矿石作业区域".equals(gateAreaName)) {
pd.put("GATE_AREA_TYPE", "1");
} else if (gateAreaName != null && "杂货作业区域".equals(gateAreaName)) {
pd.put("GATE_AREA_TYPE", "2");
} }
Object msg = result.get("msg"); Calendar calendar = Calendar.getInstance();
if (msg!=null && msg.equals("success")) { calendar.setTime(new Date());
result.remove("msg"); calendar.set(Calendar.HOUR_OF_DAY, 0);
result.put("result","success"); calendar.set(Calendar.MINUTE, 0);
calendar.set(Calendar.SECOND, 0);
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(calendar.getTime());
pd.put("startTime", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(calendar.getTime()));
calendar.set(Calendar.HOUR_OF_DAY, 23);
calendar.set(Calendar.MINUTE, 59);
calendar.set(Calendar.SECOND, 59);
pd.put("endTime", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(calendar.getTime()));
page.setPd(pd);
List<PageData> ioRecord = new ArrayList<>();
if (page.getPd().get("GATE_AREA_TYPE") != null && "1".equals(page.getPd().get("GATE_AREA_TYPE"))) {
ioRecord = czksGateCarIOMapper.getMineralDatalistPage(page);
} else if (page.getPd().get("GATE_AREA_TYPE") != null && "2".equals(page.getPd().get("GATE_AREA_TYPE"))) {
ioRecord = czksGateCarIOMapper.getGroceryDatalistPage(page);
} }
result.put("data", ioRecord);
return result; return result;
} }

View File

@ -19,5 +19,6 @@ public interface GateCarIOService {
PageData getTodayEQCount(PageData pageData); PageData getTodayEQCount(PageData pageData);
PageData getAllEQCount(PageData pageData); PageData getAllEQCount(PageData pageData);
PageData getAllEQCountForOne(PageData pageData);
} }

View File

@ -2,10 +2,12 @@ package com.zcloud.service.gatemachine.impl;
import com.zcloud.entity.Page; import com.zcloud.entity.Page;
import com.zcloud.entity.PageData; import com.zcloud.entity.PageData;
import com.zcloud.mapper.datasource.gatemachine.CzksGateAreaMapper;
import com.zcloud.mapper.datasource.gatemachine.CzksGateCarIOMapper; import com.zcloud.mapper.datasource.gatemachine.CzksGateCarIOMapper;
import com.zcloud.service.gatemachine.GateCarIOService; import com.zcloud.service.gatemachine.GateCarIOService;
import com.zcloud.util.InitPageDataUtil; import com.zcloud.util.InitPageDataUtil;
import com.zcloud.util.UuidUtil; import com.zcloud.util.UuidUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -21,7 +23,11 @@ public class GateCarIOServiceImpl implements GateCarIOService {
@Resource @Resource
private CzksGateCarIOMapper czksGateCarIOMapper; private CzksGateCarIOMapper czksGateCarIOMapper;
@Autowired
GateCarIOService gateCarIOService;
@Autowired
CzksGateAreaMapper czksGateAreaMapper;
@Resource @Resource
private InitPageDataUtil initPageDataUtil; private InitPageDataUtil initPageDataUtil;
@ -128,4 +134,18 @@ public class GateCarIOServiceImpl implements GateCarIOService {
pageData.put("mineral", czksGateCarIOMapper.countMineralEnterAndQuitAll(pd)); pageData.put("mineral", czksGateCarIOMapper.countMineralEnterAndQuitAll(pd));
return pageData; return pageData;
} }
@Override
public PageData getAllEQCountForOne(PageData pd) {
Page page = new Page();
page.setPd(pd);
List<PageData> datalistPage = czksGateAreaMapper.getDatalistPage(page);
String gateAreaName = (String) datalistPage.get(0).get("GATE_AREA_NAME");
if (gateAreaName != null && "矿石作业区域".equals(gateAreaName)) {
pd = czksGateCarIOMapper.countMineralEnterAndQuitAll(pd);
} else if (gateAreaName != null && "杂货作业区域".equals(gateAreaName)) {
pd = czksGateCarIOMapper.countGroceryEnterAndQuitAll(pd);
}
return pd;
}
} }

View File

@ -19,7 +19,6 @@ import org.apache.poi.ss.usermodel.VerticalAlignment;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.apache.shiro.session.Session; import org.apache.shiro.session.Session;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.view.document.AbstractXlsView; import org.springframework.web.servlet.view.document.AbstractXlsView;
import com.zcloud.entity.PageData; import com.zcloud.entity.PageData;
@ -31,11 +30,11 @@ import net.coobird.thumbnailator.Thumbnails;
* luoxiaobao * luoxiaobao
* www.qdkjchina.com * www.qdkjchina.com
*/ */
@Component
public class HiddenExcelImgToSessionView extends AbstractXlsView{ public class HiddenExcelImgToSessionView extends AbstractXlsView{
@Value("${http.file.url}") @Value("${http.file.url}")
private String fileUrl; private String fileUrl;
@Override @Override
protected void buildExcelDocument(Map<String, Object> model, protected void buildExcelDocument(Map<String, Object> model,
Workbook workbook, HttpServletRequest request, Workbook workbook, HttpServletRequest request,

View File

@ -106,6 +106,7 @@ public class HKUtil {
path.put("https://", getCamsApi); path.put("https://", getCamsApi);
// post请求application/json类型参数 // post请求application/json类型参数
String result =ArtemisHttpUtil.doPostStringArtemis(path,jsonBody.toJSONString(),null,null,"application/json",null); String result =ArtemisHttpUtil.doPostStringArtemis(path,jsonBody.toJSONString(),null,null,"application/json",null);
JSONObject parseObject = JSONArray.parseObject(result); JSONObject parseObject = JSONArray.parseObject(result);
return parseObject; return parseObject;
} }

View File

@ -165,7 +165,8 @@
<select id="countGroceryEnterAndQuitAll" resultType="pd" parameterType="pd"> <select id="countGroceryEnterAndQuitAll" resultType="pd" parameterType="pd">
select select
count(case when g.PASS_TYPE = '0' then 0 end) as `entered`, count(case when g.PASS_TYPE = '0' then 0 end) as `entered`,
count(case when g.PASS_TYPE = '1' then 1 end) as `quited` count(case when g.PASS_TYPE = '1' then 1 end) as `quited`,
count(case when g.PASS_TYPE = '0' then 0 end) - count(case when g.PASS_TYPE = '1' then 1 end) as present
from from
`qa-czks-prevention`.`work_grocery_io_record` g `qa-czks-prevention`.`work_grocery_io_record` g
where where
@ -174,7 +175,8 @@
<select id="countMineralEnterAndQuitAll" resultType="pd" parameterType="pd"> <select id="countMineralEnterAndQuitAll" resultType="pd" parameterType="pd">
select select
count(case when m.PASS_TYPE = '0' then 0 end) as `entered`, count(case when m.PASS_TYPE = '0' then 0 end) as `entered`,
count(case when m.PASS_TYPE = '1' then 1 end) as `quited` count(case when m.PASS_TYPE = '1' then 1 end) as `quited`,
count(case when m.PASS_TYPE = '0' then 0 end) - count(case when m.PASS_TYPE = '1' then 1 end) as present
from from
`qa-czks-prevention`.`work_mineral_io_record` m `qa-czks-prevention`.`work_mineral_io_record` m
where where
@ -211,7 +213,7 @@
<if test="pd.CAR_TEAM_NAME!=null and pd.CAR_TEAM_NAME!='' "> <if test="pd.CAR_TEAM_NAME!=null and pd.CAR_TEAM_NAME!='' ">
and f.CAR_TEAM_NAME like CONCAT(CONCAT('%',#{pd.CAR_TEAM_NAME}),'%') and f.CAR_TEAM_NAME like CONCAT(CONCAT('%',#{pd.CAR_TEAM_NAME}),'%')
</if> </if>
order by f.OPERATTIME desc order by f.JGSJ desc
</select> </select>
<select id="getGroceryDatalistPage" resultType="pd" parameterType="com.zcloud.entity.Page"> <select id="getGroceryDatalistPage" resultType="pd" parameterType="com.zcloud.entity.Page">
select * select *
@ -243,6 +245,6 @@
<if test="pd.CAR_TEAM_NAME!=null and pd.CAR_TEAM_NAME!='' "> <if test="pd.CAR_TEAM_NAME!=null and pd.CAR_TEAM_NAME!='' ">
and f.CAR_TEAM_NAME like CONCAT(CONCAT('%',#{pd.CAR_TEAM_NAME}),'%') and f.CAR_TEAM_NAME like CONCAT(CONCAT('%',#{pd.CAR_TEAM_NAME}),'%')
</if> </if>
order by f.OPERATTIME desc order by f.JGSJ desc
</select> </select>
</mapper> </mapper>

View File

@ -79,7 +79,7 @@
<select id="getVideoLocation" parameterType="pd" resultType="pd"> <select id="getVideoLocation" parameterType="pd" resultType="pd">
SELECT SELECT
'camera' TYPE, 'VIDEO' TYPE,
v.VIDEOMANAGER_ID id, v.VIDEOMANAGER_ID id,
v.LONGITUDE, v.LONGITUDE,
v.LATITUDE, v.LATITUDE,