One financial APP system every day [Android end + front end + back end]

Yesterday, a fan friend also wanted to learn how to develop Web, applet and Android. He asked if he could learn it in college?

What I learned in school is really limited:

In many colleges and universities, some professors are academic, and they have not done much development work. In class, they just follow the book, and their knowledge points are outdated technologies, let alone take students to do projects.

Now many master and doctoral students help the teacher make courseware, and then the teacher reads it in class.

Of course, some teachers have strong development ability. They have development experience, can more comprehensively understand the technical knowledge points, and then pass them on to students. They can also get some scientific research projects, and then take students to practice.

However, there are few such teachers. I have tutored a large number of computer students at ordinary times, and there is also a VIP group. Many partners who study VIP projects are becoming stronger and stronger,

I conclude that most of the computer teaching level is really average:

1. The teaching materials are backward, and many Java courses are teaching Swing/SSH framework, which has been obsolete for many years.

2. Insufficient actual combat. During the University, students have very little code, which is pitiful, and there is no project practice. The requirements of job hunting and enterprises cannot match.

3. The way of teaching courses is extremely backward. This is a computer, not a report. What's the use of PPT in your whole course. Is it that students can understand ppt or give students practical exercises? Students can understand????

4. The after-school counseling is relatively poor. In some famous schools abroad, teachers set aside three hours a week as office hour s. Domestic teachers leave class, slap their asses directly, and there is no guidance after class.

Nothing happened yesterday. I developed an APP financial system. If you need to learn and develop, you can work together! Come on, Ollie!

1, Technology stack of the system

The mobile terminal is developed by Android, which is applied to the software and program development of Android system. It is launched by Google. At present, it has a wide range of applications and development environment in the international market. It does not limit the ability of researchers to modify the open source code to realize various used APP software. The developed software program has the characteristics of friendly interface and good stability. The architecture diagram of Android system is as follows:

The back-end uses Java for development, and the database uses Mysql.

Functional architecture of the system:

2, System interface



backstage:





3, System core code

/**
 * Xiao Meng v:jishulearn
 */
@Controller
@RequestMapping("/api")
public class ApiController {
    @Autowired
    private UsersService userService;
    @Autowired
    private ShouruService shouruService;
    @Autowired
    private ZhichuService zhichuService;
    @Autowired
    private GudingzhichuService gudingzhichuService;
    @Autowired
    private GudingzhichuleixService gudingzhichuleixService;
    @Autowired
    private ShourutypeService shourutypeService;
    @Autowired
    private ZhichutypeService zhichutypeService;
    @Autowired
    private WenzhangService wenzhangService;
    @Autowired
    private GonggaoService gonggaoService;

    @PostMapping("/userlogin")
    @ResponseBody
    public JsonResult login(String username, String password) {
        if (username == null || username.trim().isEmpty()) return JsonResult.error("Please enter the account number");
        if (password == null || password.trim().isEmpty()) return JsonResult.error("Please input a password");
        Users user = userService.getOne(new QueryWrapper<Users>().eq("username", username).eq("password", password));
        if (user != null) {
            return JsonResult.ok("Login successful").setData(user);
        } else {
            return JsonResult.error("Wrong user name or password");
        }
    }

    @PostMapping("/userreg")
    @ResponseBody
    public JsonResult reg(String username, String password, String nickname, String dianhua, String youxiang,String image) {
        if (username == null || username.trim().isEmpty()) return JsonResult.error("Please enter the account number");
        if (password == null || password.trim().isEmpty()) return JsonResult.error("Please input a password");
        if (nickname == null || nickname.trim().isEmpty()) return JsonResult.error("Please enter your real name");
        if (dianhua == null || dianhua.trim().isEmpty()) return JsonResult.error("Please enter the phone number");
        if (youxiang == null || youxiang.trim().isEmpty()) return JsonResult.error("Please enter email");
        Users user1 = new Users();
        user1.setUsername(username);
        user1.setNickname(nickname);
        user1.setPassword(password);
        user1.setDianhua(dianhua);
        user1.setYouxiang(youxiang);
        user1.setImage(image);
        Users user = userService.getOne(new QueryWrapper<Users>().eq("username", username));
        if (user!=null){
            return JsonResult.error("The user name already exists, please try again!");
        }
        if (userService.save(user1)) {
            return JsonResult.ok("login was successful");
        }
        return JsonResult.error("login has failed");
    }

    @PostMapping("/userupdate")
    @ResponseBody
    public JsonResult update(Integer id, String username, String password, String nickname) {
        if (username == null || username.trim().isEmpty()) return JsonResult.error("Please enter the account number");
        if (password == null || password.trim().isEmpty()) return JsonResult.error("Please input a password");
        if (nickname == null || nickname.trim().isEmpty()) return JsonResult.error("Please enter your real name");
        Users userone = userService.getById(id);
        if (userone == null) {
            return JsonResult.ok("User does not exist!");
        }
        userone.setUsername(username);
        userone.setPassword(password);
        userone.setNickname(nickname);
        if (userService.updateById(userone)) {
            return JsonResult.ok("Successfully modified");
        }
        return JsonResult.error("Modification failed");
    }

    @PostMapping("/userupdatePass")
    @ResponseBody
    public JsonResult updatePass(Integer id, String username, String password) {
        if (username == null || username.trim().isEmpty()) return JsonResult.error("Please enter the account number");
        if (password == null || password.trim().isEmpty()) return JsonResult.error("Please input a password");
        Users userone = userService.getById(id);
        if (userone == null) {
            return JsonResult.ok("User does not exist!");
        }
        userone.setUsername(username);
        userone.setPassword(password);
        if (userService.updateById(userone)) {
            return JsonResult.ok("Successfully modified");
        }
        return JsonResult.error("Modification failed");
    }

    @PostMapping("/userupdateImage")
    @ResponseBody
    public JsonResult updateImage(Integer id, String image) {

        Users userone = userService.getById(id);
        if (userone == null) {
            return JsonResult.ok("User does not exist!");
        }

        userone.setImage(image);
        if (userService.updateById(userone)) {
            return JsonResult.ok("Successfully modified");
        }
        return JsonResult.error("Modification failed");
    }

    @ResponseBody
    @RequestMapping("/shouru/list")
    public JsonResult ShouRuList(String username) {
        PageParam<Zhichu> pageParam = new PageParam<>();
        pageParam.put("username", username);
        List<Shouru> records = shouruService.listAll(pageParam.getNoPageParam());
        return JsonResult.ok().setData(records);
    }

    @ResponseBody
    @RequestMapping("/wenzhang/list")
    public JsonResult WenZhangList() {
        PageParam<Wenzhang> pageParam = new PageParam<>();
        List<Wenzhang> records = wenzhangService.listAll(pageParam.getNoPageParam());
        return JsonResult.ok().setData(records);
    }


    @ResponseBody
    @RequestMapping("/gonggao/list")
    public JsonResult GongGaoList() {
        PageParam<Gonggao> pageParam = new PageParam<>();
        List<Gonggao> records = gonggaoService.listAll(pageParam.getNoPageParam());
        return JsonResult.ok().setData(records);
    }



/**
 * Administration
 * Created by xiaomeng´╝îvx: jiushulearn
 */
@Controller
@RequestMapping("/caiwu/gonggao")
public class GonggaoController extends BaseController {
    @Autowired
    private GonggaoService gonggaoService;

    @RequestMapping()
    public String view() {
        return "caiwu/gonggao.html";
    }

    /**
     * Paging query
     */
    @ResponseBody
    @RequestMapping("/page")
    public PageResult<Gonggao> page(HttpServletRequest request) {
        PageParam<Gonggao> pageParam = new PageParam<>(request);
        return new PageResult<>(gonggaoService.page(pageParam, pageParam.getWrapper()).getRecords(), pageParam.getTotal());
        //return gonggaoService.listPage(pageParam);  //  Use associative queries
    }

    /**
     * Query all
     */
    @ResponseBody
    @RequestMapping("/list")
    public JsonResult list(HttpServletRequest request) {
        PageParam<Gonggao> pageParam = new PageParam<>(request);
        return JsonResult.ok().setData(gonggaoService.list(pageParam.getOrderWrapper()));
        //List<Gonggao> records = gonggaoService.listAll(pageParam.getNoPageParam());  //  Use associative queries
        //return JsonResult.ok().setData(pageParam.sortRecords(records));
    }

    /**
     * Query by id
     */
    @ResponseBody
    @RequestMapping("/get")
    public JsonResult get(Integer id) {
        return JsonResult.ok().setData(gonggaoService.getById(id));
		// Use associative queries
        //PageParam<Gonggao> pageParam = new PageParam<>();
		//pageParam.put("id", id);
        //List<Gonggao> records = gonggaoService.listAll(pageParam.getNoPageParam());
        //return JsonResult.ok().setData(pageParam.getOne(records));
    }

    /**
     * add to
     */
    @ResponseBody
    @RequestMapping("/save")
    public JsonResult save(Gonggao gonggao) {
        if (gonggaoService.save(gonggao)) {
            return JsonResult.ok("Successfully added");
        }
        return JsonResult.error("Add failed");
    }

    /**
     * modify
     */
    @ResponseBody
    @RequestMapping("/update")
    public JsonResult update(Gonggao gonggao) {
        if (gonggaoService.updateById(gonggao)) {
            return JsonResult.ok("Successfully modified");
        }
        return JsonResult.error("Modification failed");
    }

    /**
     * delete
     */
    @ResponseBody
    @RequestMapping("/remove")
    public JsonResult remove(Integer id) {
        if (gonggaoService.removeById(id)) {
            return JsonResult.ok("Successfully deleted");
        }
        return JsonResult.error("Delete failed");
    }

    /**
     * Batch add
     */
    @ResponseBody
    @RequestMapping("/saveBatch")
    public JsonResult saveBatch(@RequestBody List<Gonggao> list) {
        if (gonggaoService.saveBatch(list)) {
            return JsonResult.ok("Successfully added");
        }
        return JsonResult.error("Add failed");
    }

    /**
     * Batch modification
     */
    @ResponseBody
    @RequestMapping("/updateBatch")
    public JsonResult updateBatch(@RequestBody BatchParam<Gonggao> batchParam) {
        if (batchParam.update(gonggaoService, "id")) {
            return JsonResult.ok("Successfully modified");
        }
        return JsonResult.error("Modification failed");
    }



@Controller
@RequestMapping("/caiwu/gudingzhichu")
public class GudingzhichuController extends BaseController {
    @Autowired
    private GudingzhichuService gudingzhichuService;
    @Autowired
    private GudingzhichuleixService gudingzhichuleixService;
    private List<String> shijianleixing=new ArrayList<>();
    @RequestMapping()
    public String view(Model model) {
        model.addAttribute("leixing",gudingzhichuleixService.list());
        //Every week, every month, every year
        shijianleixing.add("weekly");
        shijianleixing.add("monthly");
        shijianleixing.add("annually");
        shijianleixing.add("always");
        model.addAttribute("shijianleixing", shijianleixing);
        return "caiwu/gudingzhichu.html";
    }

    /**
     * Paging query
     */
    @ResponseBody
    @RequestMapping("/page")
    public PageResult<Gudingzhichu> page(HttpServletRequest request) {
        PageParam<Gudingzhichu> pageParam = new PageParam<>(request);
        return new PageResult<>(gudingzhichuService.page(pageParam, pageParam.getWrapper()).getRecords(), pageParam.getTotal());
        //return gudingzhichuService.listPage(pageParam);  //  Use associative queries
    }

    /**
     * Query all
     */
    @ResponseBody
    @RequestMapping("/list")
    public JsonResult list(HttpServletRequest request) {
        PageParam<Gudingzhichu> pageParam = new PageParam<>(request);
        return JsonResult.ok().setData(gudingzhichuService.list(pageParam.getOrderWrapper()));
        //List<Gudingzhichu> records = gudingzhichuService.listAll(pageParam.getNoPageParam());  //  Use associative queries
        //return JsonResult.ok().setData(pageParam.sortRecords(records));
    }

    /**
     * Query by id
     */
    @ResponseBody
    @RequestMapping("/get")
    public JsonResult get(Integer id) {
        return JsonResult.ok().setData(gudingzhichuService.getById(id));
		// Use associative queries
        //PageParam<Gudingzhichu> pageParam = new PageParam<>();
		//pageParam.put("id", id);
        //List<Gudingzhichu> records = gudingzhichuService.listAll(pageParam.getNoPageParam());
        //return JsonResult.ok().setData(pageParam.getOne(records));
    }

    /**
     * add to
     */
    @ResponseBody
    @RequestMapping("/save")
    public JsonResult save(Gudingzhichu gudingzhichu) {
        if (gudingzhichuService.save(gudingzhichu)) {
            return JsonResult.ok("Successfully added");
        }
        return JsonResult.error("Add failed");
    }

    /**
     * modify
     */
    @ResponseBody
    @RequestMapping("/update")
    public JsonResult update(Gudingzhichu gudingzhichu) {
        if (gudingzhichuService.updateById(gudingzhichu)) {
            return JsonResult.ok("Successfully modified");
        }
        return JsonResult.error("Modification failed");
    }

4, Study together

Xiao Meng has opened up many projects for you. If you want to learn together, you can start them together.

Follow the pop-up official account below, reply: Project Encyclopedia

All dry goods.

??? Click the following picture to reply to the project Daquan to obtain???

Tags: Front-end Android Back-end Interview

Posted by skali on Thu, 04 Aug 2022 21:47:07 +0300