|
@@ -210,7 +210,11 @@ public class FosterwxCashWorkClientController {
|
|
|
@PostMapping("/saveBoxInfo")
|
|
@PostMapping("/saveBoxInfo")
|
|
|
@ApiOperation(value = "保存小程序信息,已经保存过的小程序更新处理")
|
|
@ApiOperation(value = "保存小程序信息,已经保存过的小程序更新处理")
|
|
|
public Object saveBoxInfo(@RequestBody FosterwxCashWorkBoxClientInfo fosterwxCashWorkBoxClientInfo) {
|
|
public Object saveBoxInfo(@RequestBody FosterwxCashWorkBoxClientInfo fosterwxCashWorkBoxClientInfo) {
|
|
|
- fosterwxCashWorkBoxClientInfoService.saveOrUpdate(fosterwxCashWorkBoxClientInfo);
|
|
|
|
|
|
|
+ if (fosterwxCashWorkBoxClientInfoService.count(new LambdaQueryWrapper<FosterwxCashWorkBoxClientInfo>().eq(FosterwxCashWorkBoxClientInfo::getGhid, fosterwxCashWorkBoxClientInfo.getGhid())) == 0) {
|
|
|
|
|
+ fosterwxCashWorkBoxClientInfoService.save(fosterwxCashWorkBoxClientInfo);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ fosterwxCashWorkBoxClientInfoService.update(fosterwxCashWorkBoxClientInfo, new LambdaQueryWrapper<FosterwxCashWorkBoxClientInfo>().eq(FosterwxCashWorkBoxClientInfo::getGhid, fosterwxCashWorkBoxClientInfo.getGhid()));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
return "新增修改成功!";
|
|
return "新增修改成功!";
|
|
|
}
|
|
}
|