[baozhangchao] 2 years ago
parent
commit
038b31a905

+ 1
- 0
pom.xml View File

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

+ 5
- 5
src/main/java/com/njyunzhi/invoice/controller/TaInvoiceDetailController.java View File

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

+ 5
- 5
src/main/java/com/njyunzhi/invoice/controller/TaInvoiceFillController.java View File

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

+ 5
- 5
src/main/java/com/njyunzhi/invoice/controller/TaInvoiceItemTplController.java View File

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

+ 5
- 5
src/main/java/com/njyunzhi/invoice/controller/TaInvoicePersonController.java View File

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

+ 14
- 0
src/main/resources/mapper/SysBankMapper.xml View File

2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
 <mapper namespace="com.njyunzhi.invoice.mapper.SysBankMapper">
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
 </mapper>
19
 </mapper>

+ 1
- 6
src/main/resources/mapper/SysUserMapper.xml View File

3
 <mapper namespace="com.njyunzhi.invoice.mapper.SysUserMapper">
3
 <mapper namespace="com.njyunzhi.invoice.mapper.SysUserMapper">
4
 
4
 
5
     <select id="getByLoginID" resultType="com.njyunzhi.invoice.entity.SysUser">
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
     </select>
7
     </select>
13
 </mapper>
8
 </mapper>