锁定,解锁案件

This commit is contained in:
18792927508
2023-10-20 14:47:58 +08:00
parent c2c4d71d37
commit 3d36f05cf9
7 changed files with 58 additions and 3 deletions
@@ -235,6 +235,18 @@ public class CaseApplication extends BaseEntity {
private List<CaseAttach> payOrderList;
// 导入校验失败信息
private StringBuilder errorMsg;
/**
* 是否锁定,0-否,1-是
*/
private Integer lockStatus;
public Integer getLockStatus() {
return lockStatus;
}
public void setLockStatus(Integer lockStatus) {
this.lockStatus = lockStatus;
}
public Integer getPayTypeCode() {
return payTypeCode;
@@ -60,4 +60,12 @@ public interface CaseApplicationMapper {
ToDoCount selectTodoCountByRole(CaseApplication caseApplication);
/**
* 修改案件锁定状态
* @param id
* @param lockStatus
* @return
*/
int updateCaseLockStatus(@Param("id")Long id,@Param("lockStatus") Integer lockStatus);
}
@@ -64,4 +64,11 @@ public interface ICaseApplicationService {
AjaxResult selectCaseProgress(CaseApplication caseApplication);
int updateHeardate(CaseApplication caseApplication);
/**
* 修改案件锁定状态
* @param caseApplication
* @return
*/
int updateCaseLockStatus(CaseApplication caseApplication);
}
@@ -241,6 +241,11 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
return rows;
}
@Override
public int updateCaseLockStatus(CaseApplication caseApplication) {
return caseApplicationMapper.updateCaseLockStatus(caseApplication.getId(),caseApplication.getLockStatus());
}
private List<CaseLogRecord> getNofinishCasenode(Integer caseStatus) {
CaseLogRecord caseLogRecord1 = new CaseLogRecord();
caseLogRecord1.setCaseNodeName("立案审查");
@@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
@Service
public class CaseLogRecordServiceImpl implements ICaseLogRecordService {
@@ -29,7 +30,7 @@ public class CaseLogRecordServiceImpl implements ICaseLogRecordService {
caseNodeTime= DateUtil.format(record.getCaseNodeTime(), DatePattern.NORM_DATETIME_FORMATTER);
}
contentBuilder.append(record.getCreateNickName()).append("(").append(record.getCreateBy()).append(")").append("于").append(caseNodeTime);
contentBuilder.append(Optional.ofNullable(record.getCreateNickName()).orElse("")).append("(").append(record.getCreateBy()).append(")").append("于").append(caseNodeTime);
if(StrUtil.isNotEmpty(record.getContent())){
contentBuilder.append(record.getContent());
}