#20230510 欣影管理平台装置信息查询代码

master
18616268358 2 years ago
parent e6704a0ef8
commit 496990423c

@ -1,17 +1,11 @@
package com.shxy.xymanager_admin;
import com.shxy.xymanager_common.entity.TerminalSchedulesTemp;
import com.shxy.xymanager_common.enums.CommonStatus;
import com.shxy.xymanager_common.model.TerminalScheduleRuleTimeListModel;
import com.shxy.xymanager_common.util.SaltUtil;
import com.shxy.xymanager_dao.dao.*;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@SpringBootTest
class XymanagerAdminApplicationTests {
@ -127,8 +121,6 @@ class XymanagerAdminApplicationTests {
requestidlist.add(3);
List<TerminalSchedulesTemp> terminalSchedulesTemps = terminalSchedulesTempDao.updateStatusByRequestIdList(requestidlist, CommonStatus.EFFECTIVE.value(), new Date());
System.out.println(terminalSchedulesTemps.toArray());
}

@ -446,7 +446,7 @@
mark_id = #{id,jdbcType=VARCHAR},
</if>
</set>
where id = #{photoId}
where term_id = #{termId} and channel_id = #{channelId}
</update>
<delete id="deleteByMarkId">

@ -427,7 +427,7 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
@Override
public ServiceBody<GetModel> getPhotoQueryParam(ReturnedPhotoParamsGetVo vo) {
GetModel model = new GetModel();
String cmd = Constants.CMD + "act=imgparams --cmdid=" + vo.getCmdId() + "\t" + "--clientid=10 --reqid=" + Constants.REQUEST_ID + "\t" + "--flag=0 --rf=7 --channel=" + vo.getChannelId();
String cmd = Constants.CMD + "imgparams --cmdid=" + vo.getCmdId() + "\t" + "--clientid=10 --reqid=" + Constants.REQUEST_ID + "\t" + "--flag=0 --rf=7 --channel=" + vo.getChannelId();
ProcessExecUtils.exec(cmd);
model.setRequestId(Integer.parseInt(Constants.REQUEST_ID.toString()));
Constants.REQUEST_ID.addAndGet(1);

@ -326,7 +326,6 @@ public class TerminalServiceImpl implements TerminalService {
@Override
@Transactional
public ServiceBody<String> updateCoordinate(PhotoMarkVo vo) {
int result = 0;
Date date = new Date();
vo.setCreateTime(date);
if(null!=vo.getId()) {
@ -337,7 +336,7 @@ public class TerminalServiceImpl implements TerminalService {
}
if(CollectionUtil.isNotEmpty(vo.getList())) {
result = terminalPhotoDao.addPhotoMarkPath(vo.getList(), vo.getId());
terminalPhotoDao.addPhotoMarkPath(vo.getList(), vo.getId());
}
terminalPhotoDao.updatePhotoMarkId(vo);

Loading…
Cancel
Save