|
|
|
@ -137,6 +137,9 @@ public class LandListedController {
|
|
|
|
|
LandListed landListed = new LandListed(); |
|
|
|
|
BeanUtil.copyProperties(landListedVo, landListed); |
|
|
|
|
landListed.setLandListedId(DateUtil.landListedIdfromDate(LocalDateTime.now(),"yyyyMMddHHmmssSSS")); |
|
|
|
|
if (landListed.getDeal() == null){ |
|
|
|
|
landListed.setDeal(0); |
|
|
|
|
} |
|
|
|
|
landListedService.save(landListed); |
|
|
|
|
return R.ok(landListed.getLandListedId()); |
|
|
|
|
} |
|
|
|
@ -152,6 +155,9 @@ public class LandListedController {
|
|
|
|
|
public R<Boolean> updateLandListed(@RequestBody LandListedVo landListedVo) { |
|
|
|
|
LandListed landListed = new LandListed(); |
|
|
|
|
BeanUtil.copyProperties(landListedVo, landListed); |
|
|
|
|
if (landListed.getDeal() == null){ |
|
|
|
|
landListed.setDeal(0); |
|
|
|
|
} |
|
|
|
|
return R.ok(landListedService.updateById(landListed)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|