|
|
@ -410,7 +410,7 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
Integer result = terminalPhotoDao.updateOrInsertParams(vo);
|
|
|
|
Integer result = terminalPhotoDao.updateOrInsertParams(vo);
|
|
|
|
if (result>0) {
|
|
|
|
if (result>0) {
|
|
|
|
String cmd = "/usr/local/bin/xympadmn --server=127.0.0.1 --port=6891 --act=imgparams --clientid=10 --cmdid=" + vo.getCmdId() + "\t" + "--color=" + vo.getColor() + "\t" + "--resolution=" + vo.getResolution() + "\t"
|
|
|
|
String cmd = "/usr/local/bin/xympadmn --server=127.0.0.1 --port=6891 --act=imgparams --clientid=10 --cmdid=" + vo.getCmdId() + "\t" + "--color=" + vo.getColor() + "\t" + "--resolution=" + vo.getResolution() + "\t"
|
|
|
|
+ "--luminance=" + vo.getLuminance() + "\t" + "-contrast=" + vo.getContrast() + "\t" + "--saturation=" + vo.getSaturation()+ "\t" + "--reqid=" + Constants.REQUEST_ID;
|
|
|
|
+ "--luminance=" + vo.getLuminance() + "\t" + "-contrast=" + vo.getContrast() + "\t" + "--saturation=" + vo.getSaturation()+ "\t" + "--reqid=" + Constants.REQUEST_ID+ "\t" + "--channel=" + vo.getChannelId();
|
|
|
|
ProcessExecUtils.exec(cmd);
|
|
|
|
ProcessExecUtils.exec(cmd);
|
|
|
|
return Asserts.success(Constants.REQUEST_ID.addAndGet(1));
|
|
|
|
return Asserts.success(Constants.REQUEST_ID.addAndGet(1));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -426,7 +426,7 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
JSONObject resultObj = JSONObject.parseObject(result);
|
|
|
|
JSONObject resultObj = JSONObject.parseObject(result);
|
|
|
|
model = JSONObject.parseObject(resultObj.get("groupData").toString(), TerminalPhotosParamsModel.class);
|
|
|
|
model = JSONObject.parseObject(resultObj.get("groupData").toString(), TerminalPhotosParamsModel.class);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
PhotoParamsDto dto= terminalPhotoDao.selectPhotoParams(vo.getTermId());
|
|
|
|
PhotoParamsDto dto= terminalPhotoDao.selectPhotoParams(vo);
|
|
|
|
if(dto!=null) {
|
|
|
|
if(dto!=null) {
|
|
|
|
BeanUtils.copyProperties(dto, model);
|
|
|
|
BeanUtils.copyProperties(dto, model);
|
|
|
|
}
|
|
|
|
}
|
|
|
|