Commit e441f5b1 authored by R10's avatar R10

智写-立案申请-保存接口-bugfix

parent 4718d92c
......@@ -28,6 +28,10 @@ public interface BizAiLegislativeDocumentWritingRest extends BaseRest {
*/
LegislativeDocumentResult getLegislativeApplyDetail(String dialoguesId) throws Exception;
/**
* 保存立案调查
* @param legislativeDocumentDto
* @throws Exception
*/
void saveLegislativeApply(@RequestBody LegislativeDocumentDto legislativeDocumentDto) throws Exception;
}
\ No newline at end of file
......@@ -50,6 +50,11 @@ public class BizAiLegislativeDocumentWritingRestImpl implements BizAiLegislative
return service.getlegislativeApplyDetail(dialoguesId, userBaseEntity.getUserId());
}
/**
* 保存立案调查
*
* @param legislativeDocumentDto
*/
@Override
public void saveLegislativeApply(LegislativeDocumentDto legislativeDocumentDto) throws Exception {
UserBaseEntity userBaseEntity = BlContext.getCurrentUserNotException();
......
......@@ -232,6 +232,7 @@ public class BizAiLegislativeDocumentWritingServiceImpl extends BaseServiceImpl
@Override
public void saveLegislativeApply(String dialoguesId, LegislativeDocumentResult legislativeDocumentResult) throws Exception {
cn.com.poc.common.utils.Assert.notBlank(dialoguesId);
BizAiLegislativeDocumentWritingEntity example = new BizAiLegislativeDocumentWritingEntity();
example.setLegislativeDocumentWritingDialoguesId(dialoguesId);
example.setIsDeleted(CommonConstant.IsDeleted.N);
......@@ -242,7 +243,7 @@ public class BizAiLegislativeDocumentWritingServiceImpl extends BaseServiceImpl
BizAiLegislativeDocumentWritingEntity bizAiLegislativeDocumentWritingEntity = bizAiLegislativeDocumentWritingEntityList.get(0);
bizAiLegislativeDocumentWritingEntity.setLegislativeDocumentWritingDialoguesData(JsonUtils.serialize(legislativeDocumentResult));
bizAiLegislativeDocumentWritingService.update(example);
bizAiLegislativeDocumentWritingService.update(bizAiLegislativeDocumentWritingEntity);
}
private List<Message> buildMessages(String dialogsId, Long userId, String input, String fileUrl) throws Exception {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment