|
|
|
@ -1420,12 +1420,17 @@ public class PushToCityGridServiceImpl implements PushToCityGridService { |
|
|
|
@Override |
|
|
|
public void receive(String processId) { |
|
|
|
|
|
|
|
Date date = new Date(); |
|
|
|
|
|
|
|
ItemHandleProcessEntity item = itemHandleProcessDao.selectById(processId); |
|
|
|
if (item == null) { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (item.getState() == 1111){ |
|
|
|
|
|
|
|
LambdaQueryWrapper<ItemHandleProcessEntity> entityLambdaQueryWrapper = new LambdaQueryWrapper<ItemHandleProcessEntity>().eq(ItemHandleProcessEntity::getItemId,item.getItemId()).eq(ItemHandleProcessEntity::getState,1111); |
|
|
|
List<ItemHandleProcessEntity> list = itemHandleProcessDao.selectList(entityLambdaQueryWrapper); |
|
|
|
|
|
|
|
if (list.size()>0){ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1433,7 +1438,7 @@ public class PushToCityGridServiceImpl implements PushToCityGridService { |
|
|
|
dto.setSqid(getSqid(item.getItemId())); |
|
|
|
dto.setCzbs("01"); |
|
|
|
//终验时间
|
|
|
|
dto.setCzsj(DateUtils.format(item.getCreatedTime(), DateUtils.DATE_TIME_PATTERN)); |
|
|
|
dto.setCzsj(DateUtils.format(date, DateUtils.DATE_TIME_PATTERN)); |
|
|
|
|
|
|
|
//终验人员
|
|
|
|
ReceiveResultDTO.CzrBean czr = new ReceiveResultDTO.CzrBean(); |
|
|
|
@ -1455,8 +1460,10 @@ public class PushToCityGridServiceImpl implements PushToCityGridService { |
|
|
|
|
|
|
|
saveLog(item.getItemId(), item.getId(), "响应接收", PushToCityGridConstant.RECEIVE, JSONObject.toJSONString(dto), result); |
|
|
|
|
|
|
|
item.setId(null); |
|
|
|
item.setState(1111); |
|
|
|
itemHandleProcessDao.updateById(item); |
|
|
|
item.setCreatedTime(date); |
|
|
|
itemHandleProcessDao.insert(item); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|