Browse Source

供销社xml desc 新增供销社

wangzhe 1 year ago
parent
commit
f14c86a511

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/controller/CooperativeController.java

@@ -73,7 +73,7 @@ public class CooperativeController extends BaseController
     /**
      * 新增供销合作社
      */
-    @PreAuthorize("@ss.hasPermi('highfrequency:cooperative:add')")
+//    @PreAuthorize("@ss.hasPermi('highfrequency:cooperative:add')")
     @Log(title = "供销合作社", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody Cooperative cooperative)

+ 1 - 1
sooka-jnb/src/main/resources/mapper/cooperative/CooperativeMapper.xml

@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="chargePhone != null  and chargePhone != ''"> and charge_phone = #{chargePhone}</if>
             <if test="imgUrl != null  and imgUrl != ''"> and img_url = #{imgUrl}</if>
         </where>
-        order by create_by desc
+        order by create_time desc
     </select>
     
     <select id="selectCooperativeById" parameterType="java.lang.Long" resultMap="CooperativeResult">