Browse Source

二级市场整车新增店铺查询、注销账户修改为逻辑删除

linbl 1 month ago
parent
commit
5102a1700c

+ 1 - 0
sp-service/level-one-server/src/main/java/com/pj/ht_trade_settlement/HtTradeSettlementMapper.xml

@@ -103,6 +103,7 @@
         where order_count = on_sale_count
         and be_order_count=0  and i_e_flag='I' and check_pass_status=1
         <if test=' this.has("veNo") '>and ve_no like concat('%',#{veNo},'%')</if>
+		<if test=' this.has("shopName") '>and shop_name like concat('%',#{shopName},'%')</if>
         <if test=' this.has("productName") '>and goods_names like concat('%',#{productName},'%')</if>
         <if test=' this.has("dateBegin") '>and date_format(create_time,'%Y-%m-%d') &gt;=#{dateBegin}</if>
         <if test=' this.has("dateEnd") '>and date_format(create_time,'%Y-%m-%d') &lt;=#{dateEnd}</if>

+ 7 - 1
sp-service/sp-admin/src/main/java/com/pj/project/app_user/AppUserApiController.java

@@ -13,6 +13,7 @@ import com.pj.api.dto.AppUserDto;
 import com.pj.api.dto.PeopleDto;
 import com.pj.api.dto.UpdateAccountDTO;
 import com.pj.current.satoken.StpAPPUserUtil;
+import com.pj.enummj.DeleteStatus;
 import com.pj.face.factory.FaceFactory;
 import com.pj.project.app_user.dto.ForgetPasswordDto;
 import com.pj.project.app_user.dto.LoginDto;
@@ -213,7 +214,12 @@ public class AppUserApiController {
     /** 注销账户 */
     @RequestMapping("delete")
     public AjaxJson delete(Long id){
-        appUserService.delete(id);
+        AppUser appUser = new AppUser();
+        appUser.setId(id);
+        appUser.setDeleteStatus(DeleteStatus.DELETE_STATUS_OFF.getCode()); //被逻辑删除
+        appUser.setUpdateTime(new Date());
+        appUserService.update(appUser);
+
         return AjaxJson.getSuccess();
     }