[baozhangchao] 2 yıl önce
ebeveyn
işleme
038b31a905

+ 1
- 0
pom.xml Dosyayı Görüntüle

@@ -147,6 +147,7 @@
147 147
 					<plugin>
148 148
 						<groupId>org.springframework.boot</groupId>
149 149
 						<artifactId>spring-boot-maven-plugin</artifactId>
150
+						<version>2.5.4</version>
150 151
 						<configuration>
151 152
 							<includeSystemScope>true</includeSystemScope>
152 153
 						</configuration>

+ 5
- 5
src/main/java/com/njyunzhi/invoice/controller/TaInvoiceDetailController.java Dosyayı Görüntüle

@@ -46,7 +46,7 @@ public class TaInvoiceDetailController extends BaseController {
46 46
      * @param pageSize
47 47
      * @return
48 48
      */
49
-    @RequestMapping(value="/taInvoiceDetail",method= RequestMethod.GET)
49
+    @RequestMapping(value="/admin/taInvoiceDetail",method= RequestMethod.GET)
50 50
     @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51 51
     public ResponseBean taInvoiceDetailList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52 52
 									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
@@ -64,7 +64,7 @@ public class TaInvoiceDetailController extends BaseController {
64 64
      * @param taInvoiceDetail 实体对象
65 65
      * @return
66 66
      */
67
-    @RequestMapping(value="/taInvoiceDetail",method= RequestMethod.POST)
67
+    @RequestMapping(value="/admin/taInvoiceDetail",method= RequestMethod.POST)
68 68
     @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69 69
     public ResponseBean taInvoiceDetailAdd(@ApiParam("保存内容") @RequestBody TaInvoiceDetail taInvoiceDetail) throws Exception{
70 70
 
@@ -79,7 +79,7 @@ public class TaInvoiceDetailController extends BaseController {
79 79
      * 根据id删除对象
80 80
      * @param id  实体ID
81 81
      */
82
-    @RequestMapping(value="/taInvoiceDetail/{id}", method= RequestMethod.DELETE)
82
+    @RequestMapping(value="/admin/taInvoiceDetail/{id}", method= RequestMethod.DELETE)
83 83
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84 84
     public ResponseBean taInvoiceDetailDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85 85
         if(iTaInvoiceDetailService.removeById(id)){
@@ -95,7 +95,7 @@ public class TaInvoiceDetailController extends BaseController {
95 95
      * @param taInvoiceDetail 实体对象
96 96
      * @return
97 97
      */
98
-    @RequestMapping(value="/taInvoiceDetail/{id}",method= RequestMethod.PUT)
98
+    @RequestMapping(value="/admin/taInvoiceDetail/{id}",method= RequestMethod.PUT)
99 99
     @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100 100
     public ResponseBean taInvoiceDetailUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101 101
                                         @ApiParam("更新内容") @RequestBody TaInvoiceDetail taInvoiceDetail) throws Exception{
@@ -111,7 +111,7 @@ public class TaInvoiceDetailController extends BaseController {
111 111
      * 根据id查询对象
112 112
      * @param id  实体ID
113 113
      */
114
-    @RequestMapping(value="/taInvoiceDetail/{id}",method= RequestMethod.GET)
114
+    @RequestMapping(value="/admin/taInvoiceDetail/{id}",method= RequestMethod.GET)
115 115
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116 116
     public ResponseBean taInvoiceDetailGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117 117
         return ResponseBean.success(iTaInvoiceDetailService.getById(id));

+ 5
- 5
src/main/java/com/njyunzhi/invoice/controller/TaInvoiceFillController.java Dosyayı Görüntüle

@@ -46,7 +46,7 @@ public class TaInvoiceFillController extends BaseController {
46 46
      * @param pageSize
47 47
      * @return
48 48
      */
49
-    @RequestMapping(value="/taInvoiceFill",method= RequestMethod.GET)
49
+    @RequestMapping(value="/admin/taInvoiceFill",method= RequestMethod.GET)
50 50
     @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51 51
     public ResponseBean taInvoiceFillList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52 52
 									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
@@ -64,7 +64,7 @@ public class TaInvoiceFillController extends BaseController {
64 64
      * @param taInvoiceFill 实体对象
65 65
      * @return
66 66
      */
67
-    @RequestMapping(value="/taInvoiceFill",method= RequestMethod.POST)
67
+    @RequestMapping(value="/admin/taInvoiceFill",method= RequestMethod.POST)
68 68
     @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69 69
     public ResponseBean taInvoiceFillAdd(@ApiParam("保存内容") @RequestBody TaInvoiceFill taInvoiceFill) throws Exception{
70 70
 
@@ -79,7 +79,7 @@ public class TaInvoiceFillController extends BaseController {
79 79
      * 根据id删除对象
80 80
      * @param id  实体ID
81 81
      */
82
-    @RequestMapping(value="/taInvoiceFill/{id}", method= RequestMethod.DELETE)
82
+    @RequestMapping(value="/admin/taInvoiceFill/{id}", method= RequestMethod.DELETE)
83 83
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84 84
     public ResponseBean taInvoiceFillDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85 85
         if(iTaInvoiceFillService.removeById(id)){
@@ -95,7 +95,7 @@ public class TaInvoiceFillController extends BaseController {
95 95
      * @param taInvoiceFill 实体对象
96 96
      * @return
97 97
      */
98
-    @RequestMapping(value="/taInvoiceFill/{id}",method= RequestMethod.PUT)
98
+    @RequestMapping(value="/admin/taInvoiceFill/{id}",method= RequestMethod.PUT)
99 99
     @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100 100
     public ResponseBean taInvoiceFillUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101 101
                                         @ApiParam("更新内容") @RequestBody TaInvoiceFill taInvoiceFill) throws Exception{
@@ -111,7 +111,7 @@ public class TaInvoiceFillController extends BaseController {
111 111
      * 根据id查询对象
112 112
      * @param id  实体ID
113 113
      */
114
-    @RequestMapping(value="/taInvoiceFill/{id}",method= RequestMethod.GET)
114
+    @RequestMapping(value="/admin/taInvoiceFill/{id}",method= RequestMethod.GET)
115 115
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116 116
     public ResponseBean taInvoiceFillGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117 117
         return ResponseBean.success(iTaInvoiceFillService.getById(id));

+ 5
- 5
src/main/java/com/njyunzhi/invoice/controller/TaInvoiceItemTplController.java Dosyayı Görüntüle

@@ -46,7 +46,7 @@ public class TaInvoiceItemTplController extends BaseController {
46 46
      * @param pageSize
47 47
      * @return
48 48
      */
49
-    @RequestMapping(value="/taInvoiceItemTpl",method= RequestMethod.GET)
49
+    @RequestMapping(value="/admin/taInvoiceItemTpl",method= RequestMethod.GET)
50 50
     @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51 51
     public ResponseBean taInvoiceItemTplList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52 52
 									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
@@ -64,7 +64,7 @@ public class TaInvoiceItemTplController extends BaseController {
64 64
      * @param taInvoiceItemTpl 实体对象
65 65
      * @return
66 66
      */
67
-    @RequestMapping(value="/taInvoiceItemTpl",method= RequestMethod.POST)
67
+    @RequestMapping(value="/admin/taInvoiceItemTpl",method= RequestMethod.POST)
68 68
     @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69 69
     public ResponseBean taInvoiceItemTplAdd(@ApiParam("保存内容") @RequestBody TaInvoiceItemTpl taInvoiceItemTpl) throws Exception{
70 70
 
@@ -79,7 +79,7 @@ public class TaInvoiceItemTplController extends BaseController {
79 79
      * 根据id删除对象
80 80
      * @param id  实体ID
81 81
      */
82
-    @RequestMapping(value="/taInvoiceItemTpl/{id}", method= RequestMethod.DELETE)
82
+    @RequestMapping(value="/admin/taInvoiceItemTpl/{id}", method= RequestMethod.DELETE)
83 83
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84 84
     public ResponseBean taInvoiceItemTplDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85 85
         if(iTaInvoiceItemTplService.removeById(id)){
@@ -95,7 +95,7 @@ public class TaInvoiceItemTplController extends BaseController {
95 95
      * @param taInvoiceItemTpl 实体对象
96 96
      * @return
97 97
      */
98
-    @RequestMapping(value="/taInvoiceItemTpl/{id}",method= RequestMethod.PUT)
98
+    @RequestMapping(value="/admin/taInvoiceItemTpl/{id}",method= RequestMethod.PUT)
99 99
     @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100 100
     public ResponseBean taInvoiceItemTplUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101 101
                                         @ApiParam("更新内容") @RequestBody TaInvoiceItemTpl taInvoiceItemTpl) throws Exception{
@@ -111,7 +111,7 @@ public class TaInvoiceItemTplController extends BaseController {
111 111
      * 根据id查询对象
112 112
      * @param id  实体ID
113 113
      */
114
-    @RequestMapping(value="/taInvoiceItemTpl/{id}",method= RequestMethod.GET)
114
+    @RequestMapping(value="/admin/taInvoiceItemTpl/{id}",method= RequestMethod.GET)
115 115
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116 116
     public ResponseBean taInvoiceItemTplGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117 117
         return ResponseBean.success(iTaInvoiceItemTplService.getById(id));

+ 5
- 5
src/main/java/com/njyunzhi/invoice/controller/TaInvoicePersonController.java Dosyayı Görüntüle

@@ -46,7 +46,7 @@ public class TaInvoicePersonController extends BaseController {
46 46
      * @param pageSize
47 47
      * @return
48 48
      */
49
-    @RequestMapping(value="/taInvoicePerson",method= RequestMethod.GET)
49
+    @RequestMapping(value="/admin/taInvoicePerson",method= RequestMethod.GET)
50 50
     @ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
51 51
     public ResponseBean taInvoicePersonList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
52 52
 									 @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize) throws Exception{
@@ -64,7 +64,7 @@ public class TaInvoicePersonController extends BaseController {
64 64
      * @param taInvoicePerson 实体对象
65 65
      * @return
66 66
      */
67
-    @RequestMapping(value="/taInvoicePerson",method= RequestMethod.POST)
67
+    @RequestMapping(value="/admin/taInvoicePerson",method= RequestMethod.POST)
68 68
     @ApiOperation(value="保存", notes = "保存", httpMethod = "POST", response = ResponseBean.class)
69 69
     public ResponseBean taInvoicePersonAdd(@ApiParam("保存内容") @RequestBody TaInvoicePerson taInvoicePerson) throws Exception{
70 70
 
@@ -79,7 +79,7 @@ public class TaInvoicePersonController extends BaseController {
79 79
      * 根据id删除对象
80 80
      * @param id  实体ID
81 81
      */
82
-    @RequestMapping(value="/taInvoicePerson/{id}", method= RequestMethod.DELETE)
82
+    @RequestMapping(value="/admin/taInvoicePerson/{id}", method= RequestMethod.DELETE)
83 83
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
84 84
     public ResponseBean taInvoicePersonDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85 85
         if(iTaInvoicePersonService.removeById(id)){
@@ -95,7 +95,7 @@ public class TaInvoicePersonController extends BaseController {
95 95
      * @param taInvoicePerson 实体对象
96 96
      * @return
97 97
      */
98
-    @RequestMapping(value="/taInvoicePerson/{id}",method= RequestMethod.PUT)
98
+    @RequestMapping(value="/admin/taInvoicePerson/{id}",method= RequestMethod.PUT)
99 99
     @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
100 100
     public ResponseBean taInvoicePersonUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101 101
                                         @ApiParam("更新内容") @RequestBody TaInvoicePerson taInvoicePerson) throws Exception{
@@ -111,7 +111,7 @@ public class TaInvoicePersonController extends BaseController {
111 111
      * 根据id查询对象
112 112
      * @param id  实体ID
113 113
      */
114
-    @RequestMapping(value="/taInvoicePerson/{id}",method= RequestMethod.GET)
114
+    @RequestMapping(value="/admin/taInvoicePerson/{id}",method= RequestMethod.GET)
115 115
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
116 116
     public ResponseBean taInvoicePersonGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117 117
         return ResponseBean.success(iTaInvoicePersonService.getById(id));

+ 14
- 0
src/main/resources/mapper/SysBankMapper.xml Dosyayı Görüntüle

@@ -2,4 +2,18 @@
2 2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 3
 <mapper namespace="com.njyunzhi.invoice.mapper.SysBankMapper">
4 4
 
5
+    <select id="getBankList" resultType="com.njyunzhi.invoice.entity.SysBank">
6
+        SELECT * FROM sys_bank WHERE LIMIT #{pageNum},#{pageSize}
7
+    </select>
8
+    <delete id="deleteBankId">
9
+        DELETE * FROM sys_bank WHERE id=#{id}
10
+    </delete>
11
+    <update id="updBankId">
12
+        UPDATE sys_bank SET
13
+        <if test="name!=null">name=#{name},</if>
14
+        <if test="card_no!=null">card_no=#{card_no},</if>
15
+        <if test="status!=null">status=#{status},</if>
16
+        <if test="create_date!=null">create_date=#{create_date},</if>
17
+        WHERE id=#{id}
18
+    </update>
5 19
 </mapper>

+ 1
- 6
src/main/resources/mapper/SysUserMapper.xml Dosyayı Görüntüle

@@ -3,11 +3,6 @@
3 3
 <mapper namespace="com.njyunzhi.invoice.mapper.SysUserMapper">
4 4
 
5 5
     <select id="getByLoginID" resultType="com.njyunzhi.invoice.entity.SysUser">
6
-        SELECT
7
-            *
8
-        FROM
9
-            sys_user t
10
-        WHERE
11
-            t.login_id = #{userName}
6
+        SELECT * FROM sys_user t WHERE t.login_id = #{userName}
12 7
     </select>
13 8
 </mapper>