|
@@ -12,11 +12,7 @@ import com.szwl.service.TShandeMchService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
@@ -142,5 +138,25 @@ public class TShandeMchController {
|
|
|
return R.ok();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "查找杉德收款账户信息")
|
|
|
+ @GetMapping("/getShandeMch")
|
|
|
+ public ResponseModel<TShandeMch> getShandeMch(String adminId) {
|
|
|
+ LambdaQueryWrapper<TShandeMch> query = Wrappers.lambdaQuery();
|
|
|
+ query.eq(TShandeMch::getAdminId,adminId);
|
|
|
+ List<TShandeMch> list = tShandeMchService.list(query);
|
|
|
+ TShandeMch shandeMch = list.get(0);
|
|
|
+ return R.ok(shandeMch);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "ClientId查找设备")
|
|
|
+ @GetMapping("/updateShandeMch")
|
|
|
+ public void updateShandeMch(@RequestBody TShandeMch shandeMch) {
|
|
|
+ if(shandeMch!=null){
|
|
|
+ shandeMch.setModifyDate(new Date());
|
|
|
+ tShandeMchService.updateById(shandeMch);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|