登录注册问题修复
This commit is contained in:
parent
1015663e10
commit
4b2805f08a
|
|
@ -74,6 +74,7 @@ public class WorkerController extends BaseController {
|
|||
@ResponseBody
|
||||
public AjaxResult login(@RequestBody Worker worker){
|
||||
try {
|
||||
Assert.isNull(worker.getPhone(), "手机号码为空");
|
||||
List<Worker> workerList = workerService.getWorkList(worker);
|
||||
if(workerList.size() > 0){
|
||||
return AjaxResult.success(workerList.get(0));
|
||||
|
|
|
|||
|
|
@ -96,6 +96,8 @@
|
|||
<if test="status != null"> status = #{status},</if>
|
||||
<if test="account != null and account != ''"> account = #{account},</if>
|
||||
<if test="phone != null and phone != ''"> phone = #{phone},</if>
|
||||
<if test="password != null and password != ''"> password = #{password},</if>
|
||||
<if test="name != null and name != ''"> name = #{name},</if>
|
||||
<if test="leaderTeamRate != null and leaderTeamRate != ''"> leader_team_rate = #{leaderTeamRate},</if>
|
||||
<if test="leaderTeamMoney != null and leaderTeamMoney != ''"> leader_team_money = #{leaderTeamMoney},</if>
|
||||
</set>
|
||||
|
|
|
|||
Loading…
Reference in New Issue