|
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
7
|
7
|
import com.huiju.estateagents.base.BaseController;
|
8
|
8
|
import com.huiju.estateagents.base.ResponseBean;
|
9
|
9
|
import com.huiju.estateagents.bo.request.PresecretRecordRequestBO;
|
|
10
|
+import com.huiju.estateagents.common.DateUtils;
|
10
|
11
|
import com.huiju.estateagents.entity.TaPreselectionRecord;
|
11
|
12
|
import com.huiju.estateagents.service.ITaPreselectionRecordService;
|
12
|
13
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -17,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
17
|
18
|
import org.springframework.web.bind.annotation.*;
|
18
|
19
|
|
19
|
20
|
import javax.servlet.http.HttpServletRequest;
|
|
21
|
+import java.time.LocalDateTime;
|
20
|
22
|
import java.util.List;
|
21
|
23
|
|
22
|
24
|
/**
|
|
@@ -132,9 +134,12 @@ public class TaPreselectionRecordController extends BaseController {
|
132
|
134
|
*/
|
133
|
135
|
@RequestMapping(value = "/taPreselectionRecord/{id}", method = RequestMethod.PUT)
|
134
|
136
|
public ResponseBean taPreselectionRecordUpdate(@PathVariable Integer id,
|
135
|
|
- @RequestBody TaPreselectionRecord taPreselectionRecord) {
|
|
137
|
+ @RequestBody TaPreselectionRecord taPreselectionRecord,
|
|
138
|
+ HttpServletRequest request) {
|
136
|
139
|
ResponseBean responseBean = new ResponseBean();
|
137
|
140
|
try {
|
|
141
|
+ taPreselectionRecord.setUpdateDate(LocalDateTime.now());
|
|
142
|
+ taPreselectionRecord.setUpdateUser(getUserId(request));
|
138
|
143
|
if (iTaPreselectionRecordService.updateById(taPreselectionRecord)) {
|
139
|
144
|
responseBean.addSuccess(taPreselectionRecord);
|
140
|
145
|
} else {
|